18.04.2021, 18:40
(06.04.2021, 06:23)admin Wrote: Put your JSON data into the script and run once. It will log all objects that are present in JSON but not in LM and objects that have mismatching names.
Code:1234567891011121314151617181920require('json') data = [[ PUT_JSON_DATA_HERE ]] objects = json.decode(data).objects for id, obj in pairs(objects) do id = tonumber(id) curr = grp.find(id) addr = buslib.decodega(id) if curr then if obj.name and curr.name ~= obj.name then log('name mismatch ' .. addr, curr.name, obj.name) end else log('missing object ' .. addr) end end
Thank you
BR
Kai-Roger
Kai-Roger