Display wind direction does no work  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
kroonp
Posts: 43
Joined: Friday 17 July 2020 11:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Display wind direction does no work

Post by kroonp »

Good morning,

I have a problem showing the wind direction value. What variable could I use to make this work?



Device 166
name:Wind gives: 202.00;SSW;49;76;12.8;12.8

['166','Direction', gives 202 is ok

['166’,’?????’, HERE IK WANT TO DISPLAY: SSW

['166','Speed', gives 49 is ok
['166','Gust', gives 76 is ok
['166','Chill', gives 12.8 is ok
['166','Temp', gives 12.8 is ok

Thanks
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Display wind direction does no work

Post by waaren »

kroonp wrote: Sunday 25 October 2020 11:41 I have a problem showing the wind direction value. What variable could I use to make this work?
It would make it easier to help if you shared your complete code but hopefully below copy / paste from the dzVents wiki will give you enough information to continue.

Wind
chill: Number.
direction: Number. Degrees.
directionString: String. Formatted wind direction like N, SE.
gust: Number. ( in meters / second, might change in future releases to Meters/Counters settings for Wind Meter )
gustMs: Number. Gust ( in meters / second ) 2.4.9
temperature: Number
speed: Number. Windspeed ( in the unit set in Meters/Counters settings for Wind Meter )
speedMs: Number. Windspeed ( in meters / second ) 2.4.9
updateWind(bearing, direction, speed, gust, temperature, chill): Function. Bearing in degrees, direction in N, S, NNW etc, speed in m/s, gust in m/s, temperature and chill in Celsius. Use domoticz.toCelsius() to convert a Fahrenheit temperature to Celsius. Supports command options.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
kroonp
Posts: 43
Joined: Friday 17 July 2020 11:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Display wind direction does no work  [Solved]

Post by kroonp »

Thankx, waaren!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest