Page 1 of 1

S_WIND / V_DIRECTION gives wrong value

Posted: Saturday 09 April 2016 13:54
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 1881 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 1881 times
Anyone who has other results?

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Saturday 09 April 2016 14:49
by gizmocuz
360/16 = 22.5

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Monday 11 April 2016 22:16
by AWI
Thanks for the clarification. So for Domoticz we need to send wind_direction /16 ? I would suggest to use the 360 scale.

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Friday 15 April 2016 11:33
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 1835 times

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Saturday 16 April 2016 13:41
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

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Saturday 16 April 2016 16:12
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..

S_WIND / V_DIRECTION gives wrong value

Posted: Monday 29 August 2016 13:16
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

Re: S_WIND / V_DIRECTION gives wrong value

Posted: Tuesday 21 March 2017 15:28
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.