Send data from LM over IP - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Send data from LM over IP (/showthread.php?tid=4080) |
Send data from LM over IP - Dré - 06.06.2022 I'm using the next script p1-smart-metering for reading out my smart meter over P1 port. This is working fine. I also want use this data on another server and want sent it over IP. part of the script to show what i mean. *rule 9 and 16 Code: if data then This is the first time i use a IP command. I hope someone can help me with how to do this. RE: Send data from LM over IP - admin - 06.06.2022 Is it TCP or UDP? Is there some specific protocol or the value should be sent as a string without any conversion? RE: Send data from LM over IP - Dré - 06.06.2022 What i want is sent these data to another server with 'Domoticz' aka 'Home Assistent'. and read this value with these servers. there is no conversion needed. UDP is enough RE: Send data from LM over IP - admin - 06.06.2022 Use this: Code: data = tostring(tarief_1) RE: Send data from LM over IP - Dré - 06.06.2022 Yes thanks, it is working |