S_WIND / V_DIRECTION gives wrong value

Moderator: leecollings

Post Reply
AWI
Posts: 16
Joined: Monday 01 September 2014 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

S_WIND / V_DIRECTION gives wrong value

Post by AWI »

A full fledge wind sensor with values (V_WIND, V_DIRECTION, V_TEMP) sends all the values to Domoticz. The values are combined in a 'combined' wind device which shows all the values.
Weather.JPG
Weather.JPG (21.33 KiB) Viewed 1878 times
All values are shown but the value for direction makes no sense. The value is sent in Degrees (0..359) and arrives at its destination. Below al list of values sent and values displayed on the domoticz panel/ device-data panel. It looks like the value is multiplied by 22 or 23 in Domoticz. Also the number seems to be treated as an integer internally (not Domoticz (JSON) default).
Wind Directionl.JPG
Wind Directionl.JPG (27.24 KiB) Viewed 1878 times
Anyone who has other results?
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by gizmocuz »

360/16 = 22.5
Quality outlives Quantity!
AWI
Posts: 16
Joined: Monday 01 September 2014 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by AWI »

Thanks for the clarification. So for Domoticz we need to send wind_direction /16 ? I would suggest to use the 360 scale.
AWI
Posts: 16
Joined: Monday 01 September 2014 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by AWI »

Sounds like I'm the only one testing the S_WIND device... another hick-up that confuses me and my Domoticz installation. It consistently hangs domoticz when the wind sensor reports itself. Two wind devices are created and 'something' goes wrong in the process. When I remove the devices which does not get updated (the "Weather Station" subtype) it returns when the sensor reports itself again.
Wind devices 2.JPG
Wind devices 2.JPG (42.34 KiB) Viewed 1832 times
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by sundberg84 »

@awi - not going to hijack your thread but just mention that Domoticz created two devices is quite common in other weather nodes as well. For example temp/hum/baro
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
AWI
Posts: 16
Joined: Monday 01 September 2014 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by AWI »

@sundberg84 - thanks, I know but this one keeps popping up and seems to hang the domoticz installation. Now running a 'fresh' domoticz installation to get to the root cause..
Joshuapr
Posts: 4
Joined: Sunday 15 May 2016 6:28
Target OS: Windows
Domoticz version:
Location: Seychelles
Contact:

S_WIND / V_DIRECTION gives wrong value

Post by Joshuapr »

sorry I did misunderstand. So, my function using the wind direction does not give the same results as the function using AI? Is that what you mean? Paul
EDsteve
Posts: 26
Joined: Thursday 13 October 2016 11:43
Target OS: Linux
Domoticz version:
Contact:

Re: S_WIND / V_DIRECTION gives wrong value

Post by EDsteve »

I also experience problems with V_Direction values. Domoticz never updates any changes of the direction. It always shows 20NNE and i have no idea where the number 20 comes from. More details in this post:
https://www.domoticz.com/forum/viewtopi ... 42&t=16720

Hope it's okay to ask here again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests