Netatmo Wind Gauge

Just added the wind gauge to my Netatmo weather station, would be great if we could add it to the netatmo app, particularly living on top of a hill!!!

Ah, you got one. Where from?

I’ll certainly add it.

Bought mine from www.danholt.de in Germany together with a mounting bracket, free delivery to UK and rest of EU.

How cool, as it aint released yet in my country NL

Sounds good. I take it that you have it plugged in, but it’s not appearing on Vera. I’m hoping that everything else works OK, as before.

If this is the case, I’d be very interested if you could PM me a copy of the Netatmo configuration from the diagnostics link on the control panel. This will help a lot (since I haven’t got one yet.)

Thanks if possible.

Here’s a modified L_Netatmo.lua file to try. It uses the new API as well as adding some support for the wind gauge.

Also attached is a file (server.lua) to fix the openLuup (Release 6) blank diagnostics page error (goes into openLuup’s /etc/cmh-ludl/openLuup directory, if you’re using it.)

This doesn’t give you the D_NetatmoWind.xml or .json files, so there will be no measurement display or icon, just a generic device, but I’m interested in what you find under the main Netatmo device variables. Also, if it works, the Netatmo diagnostics page.

You will also need to add ‘W’ to the list of Netatmo ChildSensors device variable.

I’m doing this without a device, so it may well not work too well.

Thanks

Ooops! You’ll also need this for openLuup.

Updated file to address “Can’t get child device for wind gauge” issue…

akbooer

luaUPnP.log as requested.

David

Thanks… and could you try the new file too?

The log is encouraging - it shows that the plugin is downloading the data from the wind gauge…

2015-12-05 09:27:03.320   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeTimeUtc was: 1449297166 now: 1449307387 #hooks:0
2015-12-05 09:27:03.321   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeGustAngle was: 252 now: 290 #hooks:0
2015-12-05 09:27:03.322   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeGustStrength was: 38 now: 37 #hooks:0
2015-12-05 09:27:03.323   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeWindStrength was: 15 now: 13 #hooks:0
2015-12-05 09:27:03.323   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeWindHistoric was: table: 0xf96070 now: table: 0x2077800 #hooks:0
2015-12-05 09:27:03.324   luup.variable_set:22: 22.urn:micasaverde-com:serviceId:GenericSensor1.Wind GaugeWindAngle was: 259 now: -1 #hooks:0

It’s just not creating the child device. Latest file may fix that.

Tried updated file, no success. Had a look at the lua file in bbedit and noticed you’re declaring D_NetatmoWind.xml, something I don’t have on my machine. Where do I get it from?

Here.

OK added files and reloaded. No wind device got this error in luaUPnP.log

“2015-12-05 15:10:09.536 luup_log:22: Netatmo: Netatmo initialisation…
2015-12-05 15:10:11.213 luup_log:22: Netatmo: user.administrative.unit = 0
2015-12-05 15:10:11.216 luup_log:22: Netatmo: user.administrative.pressureunit = 0
2015-12-05 15:10:11.217 luup_log:22: Netatmo: user.administrative.windunit = 1
2015-12-05 15:10:11.217 luup_log:22: Netatmo: station name: DSR_Home
2015-12-05 15:10:11.218 luup_log:22: Netatmo: module name: Outdoor
2015-12-05 15:10:11.219 luup_log:22: Netatmo: module name: Main Bedroom
2015-12-05 15:10:11.220 luup_log:22: Netatmo: module name: Conservatory
2015-12-05 15:10:11.221 luup_log:22: Netatmo: module name: Rain gauge
2015-12-05 15:10:11.221 luup_log:22: Netatmo: module name: Wind Gauge
2015-12-05 15:10:11.222 luup_log:22: Netatmo: creating child devices…
2015-12-05 15:10:11.223 openLuup.context_switch:: ERROR: [string “[22] I_Netatmo.xml”]:818: table index is nil
2015-12-05 15:10:11.223 openLuup.scheduler:: job aborted : [string “[22] I_Netatmo.xml”]:818: table index is nil”
Edit 06/12/15

Added W to strings around line 818 in I_Netatmo.xml, now getthis in log
“2015-12-06 10:01:23.821 openLuup.scheduler:: [7] device startup completed: status=nil, msg=nil, name=nil
2015-12-06 10:01:23.821 openLuup.scheduler:: [22] device startup
2015-12-06 10:01:23.823 luup_log:22: Netatmo: Netatmo initialisation…
2015-12-06 10:01:24.666 luup_log:22: Netatmo: user.administrative.unit = 0
2015-12-06 10:01:24.669 luup_log:22: Netatmo: user.administrative.pressureunit = 0
2015-12-06 10:01:24.670 luup_log:22: Netatmo: user.administrative.windunit = 1
2015-12-06 10:01:24.670 luup_log:22: Netatmo: station name: DSR_Home
2015-12-06 10:01:24.671 luup_log:22: Netatmo: module name: Outdoor
2015-12-06 10:01:24.672 luup_log:22: Netatmo: module name: Main Bedroom
2015-12-06 10:01:24.673 luup_log:22: Netatmo: module name: Conservatory
2015-12-06 10:01:24.674 luup_log:22: Netatmo: module name: Rain gauge
2015-12-06 10:01:24.674 luup_log:22: Netatmo: module name: Wind Gauge
2015-12-06 10:01:24.675 luup_log:22: Netatmo: creating child devices…
2015-12-06 10:01:24.676 openLuup.context_switch:: ERROR: [string “[22] I_Netatmo.xml”]:817: attempt to index global ‘THCPNRW’ (a nil value)
2015-12-06 10:01:24.676 openLuup.scheduler:: job aborted : [string “[22] I_Netatmo.xml”]:817: attempt to index global ‘THCPNRW’ (a nil value)”

Edit 06/12 12:45pm GMT
solved the failure to create child sensors missed a “W”, doh!!! STILL can’t create Wind child!!!

This is work in progress. I don’t think the units conversion for wind speed is correct yet, but if you’re using default units it may be.

However, it should create a child device (if you ask it to) with windspeed and direction. Under the child device (as for the main one) you will find relevant other information relating to gusts, times, etc…

Please to hear any feedback.

Any thoughts on a favourite icon for the Wind Gauge? Suggestions attached. Perhaps I should start a poll?

The first one looks good to me :wink: :wink:

working fine so far, units are fine for me. Sorry for delay had to rebuild my raspberry pi before trying new file.

First one for me also

The Wind Sensor was delivered to my door today and since I’m on vacation I included it to my weather station right away.

Then I uploaded the following latest files I found from this thread:

D_NetatmoWind.json
D_NetatmoWind.xml
L_Netatmo.lua

also added ‘W’ to the list of Netatmo ChildSensors device variable.

The Wind strength device showed up in the Vera UI (UI5) with a generic icon and shows the same value as Netatmo online site.

All is well so far!!

To bad it is now to cold to mount it on my roof.