@DerIng said:
The plugin description string (“The plugin description”) needs an “improvement”.
Good spot. It has been changed already in the package descriptor and will be visible with the next package release.
New plugin pimatic-netatmo
@DerIng said:
The plugin description string (“The plugin description”) needs an “improvement”.
Good spot. It has been changed already in the package descriptor and will be visible with the next package release.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Where to get the device_id and module_id?
EDIT:
Ok I found it in Pimatic Messages> Info.
Nice work. Are there weather warnings within? You must get something like “meteo_alarms”.
Have not seen any reference to them in the netatmo api. I think that is a seperate function in the app which is not related to the data of your own netatmo station. I disabled it in the netatmo app, triggered many “falsealarms” for me.
First of all: The new pimatic-netatmo plugin is running here for more than 5 days without any problems/bugs!!!
@thex: The API contains indeed meteo_alarms. If you look into my php-script and add some debug code:
print_r($deviceList["devices"][0]["meteo_alarms"]);
You get (for my location of course):
(
[0] => Array
(
[_id] => Array
(
[$id] => 570cef3249c75f56bb8b4569
)
[area] => Baden-Württemberg
[begin] => 1460461080
[end] => 1460466000
[title] => __MA_ALARM_RAIN_TITLE
[type] => ALARM_RAIN
[text_field] => __MA_ALARM_RAIN_LEVEL_2
[level] => 2
[url] => http://www.meteoalarm.eu/handheld.php?level=2&area=DE002&day=0
[descr] => %lng="de_GE" Von Südwesten ziehen Gewitter auf. Dabei gibt es Sturmböen mit Geschwindigkeiten um 70 km/h (20m/s, 38kn, Bft 8) sowie Starkregen mit Niederschlagsmengen um 15
l/m² pro Stunde und kleinkörnigen Hagel.
[status] => new
[alarm_id] => 264218
[time_generated] => 1460465458
[origin] => meteoalarm
)
[1] => Array
(
[_id] => Array
(
[$id] => 570cef3249c75f56bb8b456a
)
[area] => Baden-Württemberg
[begin] => 1460461080
[end] => 1460466000
[title] => __MA_ALARM_WIND_TITLE
[type] => ALARM_WIND
[text_field] => __MA_ALARM_WIND_LEVEL_2
[level] => 2
[url] => http://www.meteoalarm.eu/handheld.php?level=2&area=DE002&day=0
[descr] => %lng="de_GE" Von Südwesten ziehen Gewitter auf. Dabei gibt es Sturmböen mit Geschwindigkeiten um 70 km/h (20m/s, 38kn, Bft 8) sowie Starkregen mit Niederschlagsmengen um 15
l/m² pro Stunde und kleinkörnigen Hagel.
[status] => new
[alarm_id] => 264220
[time_generated] => 1460465458
[origin] => meteoalarm
)
)
Don’t know if this is valuable information but …
Great to hear that it is working.
In your PHP script you are using devicelist from the API which is deprecated by netatmo so it could be disabled any point in time.
I’m gathering the module names and such with
https://developer.netatmo.com/doc/methods/getstationsdata
which doesn’t contain the information (but it also is not documented in “devicelist” that this info is contained)
For the actual measurements I use
https://developer.netatmo.com/doc/methods/getmeasure
which also doesn’t have any mention of metro alarms.
Maybe you could use an RRS feed: http://www.meteoalarm.eu/documents/rss/de/DE006.rss
Is there an RSS plugin yet?
@thex
Mmmh after long time running a lot of warnings. No update for more than 5 days now…
warn [pimatic-netatmo]: Netatmo API warning: getMeasure error: Status code500 06:27:29
warn [pimatic-netatmo]: Netatmo API warning: getMeasure error: Status code500 22:09:22
Any idea?
Hmm wired 500 is for “internal server error” which looks like a problem on the netatmo backend side.
Just took a look and they reworked the documentation but I don’t know about any changes which would affect the plugin. Do you see the values Online?
@thex: Yes strange indeed. At the webapp (https://www.netatmo.com/de-DE/weathermap) the measured tempereratures are up to date. In Pimatic the last update is from May 17th, But only the outdoor data is not updated anymore. Indoor is working fine. Strange.
My “old” php-script based approached is still working without flaws.
Did a pimatic restart now (by sudo service pimatic restart
). Now everything is working fine.
Let’s see how long
Cheers,
DerIng
Hi,
I am thinking about buying netatmo welcome.
Does this plugins work also with the welcome?
Do you have any experience with it?
Thank you,
Camillo