Netatmo Weather Station plugin

Just installed the update and pressure has 2 digits now :slight_smile:

One nit pick that probably is best ignored:

Perhaps ClientID could come before ClientSecret in the Advanced setting so it matches the Netatmo oAuth settings order on the Netatmo website?

also thanks for having timeformat available on the device.
My American eyes prefer: %I:%M %m/%d

It shall be done.

also thanks for having timeformat available on the device. My American eyes prefer: %I:%M %m/%d
I lived there on and off for over eight years... I know you're weird. I'm almost bilingual.

the plugin look great! :wink:

just a question

i don’t have the netatmo yet, but wanted to know if there is a problem using the US ver with the euro ver of vera, this connected to the vera with wifi not rf right ?

and this is a little off topic but, anyone know if amazon us selling the new ver with the waterproof outdoor unit ?

thanks!

Actually Vera uses the cloud to talk to NetAtmo, so it should work. However, the specs say that the NetAtmo modules talk to each other using RF 915 MHz or 868 MHz, so I’m guessing that the RF is different per region, so while it would work with Vera, you may be violating some RF laws in your country.

yes i know the rf is different that’s why i wanted to know how the plugin works

about the law, in my country (israel) both 868 and 915 and all other zwave frequency are prohibited from use, so this is not really a problem, its always take forever to release the frequencies in here, even for bluetooth we waited few years, also netatmo only ship to Europe (and the US ver is cheaper even after reduction the VAT when shipping to israel)

anyway thanks! :slight_smile:

(if anyone order lately from AMAZON US and know if the have the new ver please let me know)

Release 1 of the Netatmo plugin is now available from the App Store - thanks to very quick work from MCV.
It has a few minor changes from the Beta 3 version:

[ul][li]units display on child device panels for Pressure, Noise, and CO[sub]2[/sub] (pressure units set by Netatmo configuration)[/li]
[li]Pressure, Noise, and CO[sub]2[/sub] sensors are category 12 (Generic Sensors) and appear under “Sensors” device tab (with Humidity)[/li]
[li]user-defined JSON library variable - “json-dm” is the default (so you need dataMine installed for it to work out of the box)[/li][/ul]

If you like it, please add a review. Thanks!

For reference, typical log entries on startup are:

50   09/04/13 13:14:44.825   luup_log:307: Netatmo: creating child devices... 
50   09/04/13 13:14:44.827   luup_log:307: Netatmo: Child = 308 02:00:00:01:4c:2c-Temperature, units = C <0x2b8f5680>
50   09/04/13 13:14:44.828   luup_log:307: Netatmo: Child = 309 02:00:00:01:4c:2c-Humidity, units = % <0x2b8f5680>
50   09/04/13 13:14:44.829   luup_log:307: Netatmo: Child = 310 70:ee:50:01:55:06-Temperature, units = C <0x2b8f5680>
50   09/04/13 13:14:44.830   luup_log:307: Netatmo: Child = 311 70:ee:50:01:55:06-Humidity, units = % <0x2b8f5680>
50   09/04/13 13:14:44.832   luup_log:307: Netatmo: Child = 313 70:ee:50:01:55:06-CO2, units = ppm <0x2b8f5680>
50   09/04/13 13:14:44.833   luup_log:307: Netatmo: Child = 315 70:ee:50:01:55:06-Noise, units = dB <0x2b8f5680>
50   09/04/13 13:14:44.835   luup_log:307: Netatmo: Child = 314 70:ee:50:01:55:06-Pressure, units = mbar <0x2b8f5680>
50   09/04/13 13:14:44.836   luup_log:307: Netatmo: ...child devices created <0x2b8f5680>
50   09/04/13 13:14:44.836   luup_log:307: Netatmo: Device initialised <0x2b8f5680>
50   09/04/13 13:14:54.664   luup_log:307: Netatmo: Access tokens rotated <0x2def5680>
50   09/04/13 13:15:05.849   luup_log:307: Netatmo: Measurements polled <0x2def5680>
50   09/04/13 13:15:05.910   luup_log:307: Netatmo: Luup variables updated <0x2def5680>

Note the later timing for the last three entries. By default the “Access tokens rotated” action subsequently occurs every two hours, and the “Measurements polled” / “Luup variables updated” happens every 10 minutes.

I installed your plug-in several minutes ago and I am very impressed. My Netatmo system consists of one Indoor Module, one Outdoor Module, and one additional indoor Module. Your plug-in discovered and created child devices for each parameter available from all three modules.

One suggestion for improvement is to coordinate with the PLEG plug-in developer to make your children devices for CO2, Noise, and Pressure to be available for use in PLEG as triggers. Currently the PLEG plug-in only allows your children devices created for Temperature and Humidity to be selected as input triggers.

Another suggestion is to modify your plug-in to provide Notification functionality for the children devices for CO2, Noise, and Pressure. Currently your plug-in only provides Notification functionality for the children devices created for Temperature and Humidity.

Thank you for your effort with this plug-in to date.

Glad you like it and it works for you.

One suggestion for improvement is to coordinate with the PLEG plug-in developer to make your children devices for CO2, Noise, and Pressure to be available for use in PLEG as triggers. Currently the PLEG plug-in only allows your children devices created for Temperature and Humidity to be selected as input triggers.
No need for coordination with PLEG development... the fact that it doesn't work is strictly due to my JSON-phobia.
Another suggestion is to modify your plug-in to provide Notification functionality for the children devices for CO2, Noise, and Pressure. Currently your plug-in only provides Notification functionality for the children devices created for Temperature and Humidity.
Same as above. This is nothing to do with the plugin itself, but with my shoddy implementation of the child device type for the new measurements. I just did enough for them to display the readings. This will be fixed, but I am away from my development system for the next two weeks, so it may take a little while... unless someone else wants to modify the device files for them.
Thank you for your effort with this plug-in to date.
You're welcome. A review in the App Store is always acceptable!

Bien jou? Akbooer,

Perso j’obtiens un “Startup Lua Failed” malgr?? une bonne authentification. As-tu une id?e ?
Je joins mon jeu d’ic?nes dans l’esprit Netatmo. Tu peux l’utiliser … Je n’ai jamais eu le temps de finir mon plugin mais j’aimerai bien que le tien fonctionne…

@captainigloo

mon inspiration! Je suis d?sol? que vous rencontrez des probl?mes . vous n’?tes pas le seul. quelques id?es ? essayer ici

[url=http://forum.micasaverde.com/index.php/topic,16399.0.html]http://forum.micasaverde.com/index.php/topic,16399.0.html[/url]


My inspiration!

I am sorry that you are having problems. You are not the only one. Some ideas to try here

Sur un d?sinstallation et r?installation une multiplication de modules enfants :

Pour la multiplication des objets enfants c’est simplement en raison du partage Netatmo (plusieurs stations).

Donc, vous avez acc?s ? quatre stations Netatmo dans votre installation? Je crois que la raison de l’erreur de d?marrage Lua parce qu’il essaie de cr?er des noms de variables ill?gales en utilisant les noms de modules .


So you have access to four Netatmo stations in your setup?

I believe the reason for the Lua startup error is because it is trying to create illegal variable names using the module names.

J’ai supprim? le partage des diff?rentes stations, puis r?install? le plugin,. Un seule station cr??e avec ses objets enfants. J’ai renomm? les modules sans accents et sans espace (plus de probl?me unicode). Par contre rien n’est stock? dans les variables des objets enfants.

50 09/08/13 19:03:55.996 luup_log:82: Netatmo: creating child devices… LEAK this:233472 start:958464 to 0x1288000 <0x2bc07680>
50 09/08/13 19:03:55.998 luup_log:82: Netatmo: Child = 83 70:ee:50:00:1f:f2-Temperature, units = C <0x2bc07680>
06 09/08/13 19:03:55.998 Device_Variable::m_szValue_set device: 83 service: urn:akbooer-com:serviceId:Netatmo1 variable: CalibrationOffset was: EMPTY now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.020 Device_Variable::m_szValue_set device: 83 service: urn:akbooer-com:serviceId:Netatmo1 variable: Units was: EMPTY now: C #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.021 Device_Variable::m_szValue_set device: 83 service: urn:akbooer-com:serviceId:Netatmo1 variable: UnitsDisplay was: EMPTY now: (C) #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
50 09/08/13 19:03:56.021 luup_log:82: Netatmo: Child = 84 70:ee:50:00:1f:f2-Humidity, units = % <0x2bc07680>
06 09/08/13 19:03:56.022 Device_Variable::m_szValue_set device: 84 service: urn:akbooer-com:serviceId:Netatmo1 variable: CalibrationOffset was: EMPTY now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.022 Device_Variable::m_szValue_set device: 84 service: urn:akbooer-com:serviceId:Netatmo1 variable: Units was: EMPTY now: % #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.023 Device_Variable::m_szValue_set device: 84 service: urn:akbooer-com:serviceId:Netatmo1 variable: UnitsDisplay was: EMPTY now: (%) #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
50 09/08/13 19:03:56.023 luup_log:82: Netatmo: Child = 85 70:ee:50:00:1f:f2-CO2, units = ppm <0x2bc07680>
06 09/08/13 19:03:56.024 Device_Variable::m_szValue_set device: 85 service: urn:akbooer-com:serviceId:Netatmo1 variable: CalibrationOffset was: EMPTY now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.024 Device_Variable::m_szValue_set device: 85 service: urn:akbooer-com:serviceId:Netatmo1 variable: Units was: EMPTY now: ppm #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
06 09/08/13 19:03:56.025 Device_Variable::m_szValue_set device: 85 service: urn:akbooer-com:serviceId:Netatmo1 variable: UnitsDisplay was: EMPTY now: (ppm) #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bc07680>
01 09/08/13 19:03:56.026 LuaInterface::CallFunction_Startup-1 device 82 function init failed [string “…”]:459: attempt to index field ‘?’ (a nil value) <0x2bc07680>
01 09/08/13 19:03:56.027 LuImplementation::StartLua running startup code for 82 I_Netatmo.xml failed <0x2bc07680>

Excellent! Enfin , un message d’ erreur dans le journal que je peux utiliser !


Excellent! At last, an error message in the log that I can use!

pourriez-vous changer le variable ChildSensors ? juste TH, puis sur Enregistrer, et voyez si cela fonctionne pour juste temp?rature et l’humidit? ?

Cela fonctionne, mais les autres modules ont disparu.

Alors tous les variables sont charg?es dans le module p?re.

Ok, donc en testant chaque module un par un, je vois que seul l’affichage de la pression Atm g?n?re une erreur.