15.05.2023, 10:24
Use an event script for writing:
log() call is just for debugging, remove it if script is working correctly.
Code:
http = require('socket.http')
value = event.getvalue()
url = 'https://192.168.2.113/endpoints/call?key=CO@100_0_1&method=set&value=' .. value .. '&user=XXXX&pw=XXXX'
res, err = http.request(url)
log(res, err)
log() call is just for debugging, remove it if script is working correctly.