Code: Select all
on System#Boot do
timerSet,1,10
endon
On Rules#Timer=1 do
SendToHTTP 192.168.3.109,3480,/data_request?id=variableset&DeviceNum=64&serviceId=urn:upnp-org:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=[LRmedia#Temperature]
timerSet,1,60
endon
but it adds a few extra line breaks in the sendhttp seen here (this is in the rules editor)
on System#Boot do
timerSet,1,10
endon
On Rules#Timer=1 do
SendToHTTP 192.168.3.109,3480,/data_request?
id=variableset&DeviceNum=64&serviceId=urn:upnp-
org:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=[LRmedia#Temperature]
timerSet,1,60
endon
Code: Select all
log shows as :
86983000 : EVENT: Rules#Timer=1
86983004 : ACT : SendToHTTP 192.168.3.109,3480,/data_request?
86983221 : ACT : id=variableset&DeviceNum=64&serviceId=urn:upnp-
86983230 : ACT : org:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=71.24
86983253 : ACT : timerSet,1,60
Thanks