Scaping single values from virtual weather device
Posted: Friday 29 December 2017 12:49
Hi,
I'm new here and I'm playing a couple of days with Domoticz on a Rasperry Pi. I don't know before anything about LUA and I'm learning it by doing it.
I have found serveral forum item about scaping the temperature ( eg http://www.domoticz.com/wiki/Virtual_we ... emperature) and it works!
Now I'm searching for the wind sensor and rarely I doesn't work as it should be. Also for the pressure there is something wrong.
I think I must search for the right command because in the example it isn't clear:
Which seperators do I have to use for Pressure, Wind Direction, Windspeed, ...?
I search the net and I found several times the same script about the temperature.
Otherwhise my values in "Devices" where updated but there are no devices in "weather" or "temperature" (for pressure) and for the wind sensor there are 2 values in devices and never updated in the Weather tab.
Can anyone help me or suggest something?
I'm new here and I'm playing a couple of days with Domoticz on a Rasperry Pi. I don't know before anything about LUA and I'm learning it by doing it.
I have found serveral forum item about scaping the temperature ( eg http://www.domoticz.com/wiki/Virtual_we ... emperature) and it works!
Now I'm searching for the wind sensor and rarely I doesn't work as it should be. Also for the pressure there is something wrong.
I think I must search for the right command because in the example it isn't clear:
Code: Select all
commandArray[1] = {['UpdateDevice'] = idxt .. '|0|' .. sWeatherTemp}
-- a zero between |
commandArray[2] = {['UpdateDevice'] = idxh .. '|' .. tostring(sWeatherHumidity) .. '|' .. tostring(sHumFeelsLike)}
-- a | between 2 values
commandArray[3] = {['UpdateDevice'] = idxp .. '|0|' .. tostring(sWeatherPressure) .. ';' .. tostring(sWeatherPressForcast)}
-- first a zero between | and afterwards a ;
I search the net and I found several times the same script about the temperature.
Otherwhise my values in "Devices" where updated but there are no devices in "weather" or "temperature" (for pressure) and for the wind sensor there are 2 values in devices and never updated in the Weather tab.
Can anyone help me or suggest something?