Logic Machine Forum
JSON Import object with tag? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: JSON Import object with tag? (/showthread.php?tid=3172)



JSON Import object with tag? - Mardav - 16.02.2021

Hi,

I am attempting to convert a KNXPROJ file created from ETS into JSON to import objects into LM.
This is seemingly working correct, but i am wondering if the JSON import can also create data in the tag property of the objects in LM?

If possible, what variable in ETS corresponds to the tag variable in LM?
Or, can i adjust the JSON file itself to insert the tag into LM?

Example of one object:
Code:
{"objects":{"45078":{"name":"81.1311 - LGT_DLY_OFF","datatype":7005,"description":">:P=-1;R=81.1311 - Sluse;F=0;"}



RE: JSON Import object with tag? - Daniel - 16.02.2021

Which FW do you use? in RC3 json import was replaced by the knxproj import.


RE: JSON Import object with tag? - Mardav - 17.02.2021

(16.02.2021, 09:27)Daniel. Wrote: Which FW do you use? in RC3 json import was replaced by the knxproj import.

I have not yet updated the firmware to this, as it is still in a pre-release state afaik.
Is the JSON import functionality removed in this version? Sad


RE: JSON Import object with tag? - Daniel - 17.02.2021

Yes as it is not needed anymore as we converting directly the knxproj file


RE: JSON Import object with tag? - Mardav - 18.02.2021

(17.02.2021, 14:38)Daniel. Wrote: Yes as it is not needed anymore as we converting directly the knxproj file

Oh well, but is there any property in ETS that will importĀ its value to the tag property in LM?


RE: JSON Import object with tag? - admin - 18.02.2021

There are no tags there. If you to import some custom object definition you can use a script that parses your data and calls grp.create with the required parameters. This way you can add tags to the newly created objects.


RE: JSON Import object with tag? - Mardav - 18.02.2021

(18.02.2021, 10:13)admin Wrote: There are no tags there. If you to import some custom object definition you can use a script that parses your data and calls grp.create with the required parameters. This way you can add tags to the newly created objects.

Alright, thanks. This is how i solve it per now, but i had a slight hope thatĀ this information could come directly from the ETS import.