read value of http

Moderator: leecollings

Post Reply
Drees
Posts: 8
Joined: Monday 06 June 2022 16:00
Target OS: Windows
Domoticz version:
Contact:

read value of http

Post 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.
User avatar
waltervl
Posts: 5716
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: read value of http

Post by waltervl »

Better start with dzvents then.
Lots of examples to learn viewforum.php?f=72
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest