Page 1 of 1

read value of http

Posted: Wednesday 15 June 2022 17:11
by Drees
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

Code: Select all

data = tostring(tarief_1)
sock = require('socket').udp()
sock:sendto(tarief_1, '192.168.11.231', 19928)
sock:close()
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.

Re: read value of http

Posted: Wednesday 15 June 2022 18:40
by waltervl
Better start with dzvents then.
Lots of examples to learn viewforum.php?f=72