read value of http
Posted: Wednesday 15 June 2022 17:11
i'm a noob about domoticz and scripting.
I try to read out a value from a http command with sent it over a port.
This script i use to sent the value over IP (this is working, tested by another server device).
it is sent it by to adres of my domoticz RPI with port 19928
Now i try to read this value with domoticz and want to see it on the dashboard.
It looks very easy to make it, but i really don't know how.
I try to read out a value from a http command with sent it over a port.
This script i use to sent the value over IP (this is working, tested by another server device).
it is sent it by to adres of my domoticz RPI with port 19928
Code: Select all
data = tostring(tarief_1)
sock = require('socket').udp()
sock:sendto(tarief_1, '192.168.11.231', 19928)
sock:close()
It looks very easy to make it, but i really don't know how.