Search found 3 matches

by Swokey
Friday 13 May 2016 13:23
Forum: Temperature and Weather
Topic: Humidity dummy sensor
Replies: 3
Views: 3058

Re: Humidity dummy sensor

I solved it with JSON, see below code for someone who is looking for the same: --script_device_Tempdroogkast.lua local sensorcr = 'Cresta' --name of the sensor that gets created when you add the Cresta device (and that contains multiple values like temperature, humidi$ local idx = 189 --idx of the ...
by Swokey
Friday 13 May 2016 10:05
Forum: Temperature and Weather
Topic: Humidity dummy sensor
Replies: 3
Views: 3058

Re: Humidity dummy sensor

I'm also trying to do it with JSON, but i don't understand how to add that in LUA. When I execute the following url (http://192.168.2.21:8080/json.htm?type=command&param=udevice&idx=189&nvalue=25) within a browser the dummy sensor is updated. How can I add this (with variable sCrestaHumidity) to LUA?
by Swokey
Friday 13 May 2016 8:55
Forum: Temperature and Weather
Topic: Humidity dummy sensor
Replies: 3
Views: 3058

Humidity dummy sensor

I'm trying to update an dummy sensor with the current humidity from a Cresta TX320 I'have the following lua script: --script_device_Tempdroogkast.lua local sensorcr = 'Cresta' --name of the sensor that gets created when you add t$ local idx = 189 --idx of the humidity sensor you created for ...