Python script for Netatmo weather station
Moderator: leecollings
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Does anyone else also has the problem his Netatmo_settings.xml file is being reset to default?
Every x days (mostly 3/4) the settings file is filled with my devices but ist overwritten with black values.
To fix this I need to re-enter my client_id, password, hardware id's ..etc.
This is happening since last week...
:/
Every x days (mostly 3/4) the settings file is filled with my devices but ist overwritten with black values.
To fix this I need to re-enter my client_id, password, hardware id's ..etc.
This is happening since last week...
:/
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
-
- Posts: 27
- Joined: Thursday 03 April 2014 21:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sandnes / Norway
- Contact:
Re: Python script for Netatmo weather station
Hi,
I have tried several times now to include my netatmo sensors in Domoticz. I am not able to get the sensors in "devices" in domotics. I have no idea what im doing wrong. Please can someone help me out?
This is how my netatmo_settings.xml looks like, also with the error message:
Thanks a lot in advance. I really look forward to finally have my netatmo sensors avilable in Domoticz!!
Now I'm able to run the script with no errors:
root@domoticzpi:~# python /home/pi/domoticz/scripts/netatmo.py
root@domoticzpi:~#
However there are still no "NetAtmo" devices in http://domo_ip:8080/#/Devices
I have tried several times now to include my netatmo sensors in Domoticz. I am not able to get the sensors in "devices" in domotics. I have no idea what im doing wrong. Please can someone help me out?
This is how my netatmo_settings.xml looks like, also with the error message:
Thanks a lot in advance. I really look forward to finally have my netatmo sensors avilable in Domoticz!!
Now I'm able to run the script with no errors:
root@domoticzpi:~# python /home/pi/domoticz/scripts/netatmo.py
root@domoticzpi:~#
However there are still no "NetAtmo" devices in http://domo_ip:8080/#/Devices
Last edited by panser on Monday 01 June 2015 20:40, edited 1 time in total.
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
It all looks OK to me.panser wrote:Hi,
I have tried several times now to include my netatmo sensors in Domoticz. I am not able to get the sensors in "devices" in domotics. I have no idea what im doing wrong. Please can someone help me out?
This is how my netatmo_settings.xml looks like, also with the error message:
Thanks a lot in advance. I really look forward to finally have my netatmo sensors avilable in Domoticz!!
Are u 110% sure your hardware ID of your dummy hardware is correct?
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
-
- Posts: 27
- Joined: Thursday 03 April 2014 21:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sandnes / Norway
- Contact:
Re: Python script for Netatmo weather station
Yes, it should be "5" - i have Even tried to add a second one "6" - same result
Code: Select all
{
"Address" : "",
"DataTimeout" : 0,
"Enabled" : "true",
"Mode1" : 0,
"Mode2" : 0,
"Mode3" : 0,
"Mode4" : 0,
"Mode5" : 0,
"Mode6" : 0,
"Name" : "NetAtmo",
"Password" : "",
"Port" : 1,
"SerialPort" : "1",
"Type" : 15,
"Username" : "",
"idx" : "5"
}
Last edited by panser on Monday 01 June 2015 21:01, edited 1 time in total.
-
- Posts: 27
- Joined: Thursday 03 April 2014 21:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sandnes / Norway
- Contact:
Re: Python script for Netatmo weather station
krazny wrote:Does anyone else also has the problem his Netatmo_settings.xml file is being reset to default?
Every x days (mostly 3/4) the settings file is filled with my devices but ist overwritten with black values.
To fix this I need to re-enter my client_id, password, hardware id's ..etc.
This is happening since last week...
:/
I have no clue, but maybe you could try to write protect the file?
chattr +i netatmo_settings.xml
Not sure if the Python script needs write permission to xml every run?
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Thnx for your suggestion.panser wrote:krazny wrote:Does anyone else also has the problem his Netatmo_settings.xml file is being reset to default?
Every x days (mostly 3/4) the settings file is filled with my devices but ist overwritten with black values.
To fix this I need to re-enter my client_id, password, hardware id's ..etc.
This is happening since last week...
:/
I have no clue, but maybe you could try to write protect the file?
chattr +i netatmo_settings.xml
Not sure if the Python script needs write permission to xml every run?
I've now reset the rights to 0444 (read only).
So far, so good.
* It's still weird though..
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Hmzz...after a full update of my rPi (sudo apt-get update, sudo apt-get upgrade, sudo rpi-update) and a reboot the problem seems to be gone.krazny wrote:Does anyone else also has the problem his Netatmo_settings.xml file is being reset to default?
Every x days (mostly 3/4) the settings file is filled with my devices but ist overwritten with black values.
To fix this I need to re-enter my client_id, password, hardware id's ..etc.
This is happening since last week...
:/
Edit:
Nope!
It's still s*cks. After a few hours the netatmo_settings.xml is missing my credentials, etc again.
Last edited by krazny on Thursday 04 June 2015 21:53, edited 2 times in total.
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
Re: Python script for Netatmo weather station
Hi,
I started using this app 26. may, and it worked untill 1. june.
Then it suddenly stopped working, and won't give me any feedback no matter what I do.
Have this happened to somebody else? Did something change?
Running on Domoticz 2.2492, under Debian Jessie in a VM.
I started using this app 26. may, and it worked untill 1. june.
Then it suddenly stopped working, and won't give me any feedback no matter what I do.
Have this happened to somebody else? Did something change?
Running on Domoticz 2.2492, under Debian Jessie in a VM.
-
- Posts: 41
- Joined: Tuesday 11 February 2014 18:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python script for Netatmo weather station
Probably the netatmo api. I'll check it. Thank you
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Check your netatmo_settings.xml file. Is it also missing your credentials?alfredo wrote:Hi,
I started using this app 26. may, and it worked untill 1. june.
Then it suddenly stopped working, and won't give me any feedback no matter what I do.
Have this happened to somebody else? Did something change?
Running on Domoticz 2.2492, under Debian Jessie in a VM.
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
Re: Python script for Netatmo weather station
Can it be that though, since it works for others?fwehrle wrote:Probably the netatmo api. I'll check it. Thank you
The same "gibberish" there now that was there before!krazny wrote:Check your netatmo_settings.xml file. Is it also missing your credentials?
I tried deleting token.xml, and re-ran the script - token is generated but nothing happens on domoticz-end.
I'm not sure if theres a debug-switch or the likes I can use? There's no output from the script what-so-ever....
-
- Posts: 28
- Joined: Friday 13 March 2015 12:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python script for Netatmo weather station
Hello,
Netatmo doesn't work since fews days Domoticz 2516
All devices are off, no data. and xml file doesn't generate ...
Netatmo doesn't work since fews days Domoticz 2516
All devices are off, no data. and xml file doesn't generate ...
- Mediacj
- Posts: 74
- Joined: Wednesday 11 February 2015 16:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
For me the same since june 1 I think Netatmo has changed the api.
I have looked in the program but couldn't find anything myself, hopefully someone else can find it.
I have looked in the program but couldn't find anything myself, hopefully someone else can find it.
- krazny
- Posts: 27
- Joined: Saturday 01 November 2014 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Last monday I started all over again and at first it worked. XML is filled with my devices and the hardware was added to Domoticz.alfredo wrote:I tried deleting token.xml, and re-ran the script - token is generated but nothing happens on domoticz-end.fwehrle wrote:Probably the netatmo api. I'll check it. Thank you
I'm not sure if theres a debug-switch or the likes I can use? There's no output from the script what-so-ever....
After a few hours its broken again...no updates.
Mostly because the XML file is missing my credentials. These are overwritten b with blank values.
Really hope someone can fix this or knows how to fix this.
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
-
- Posts: 15
- Joined: Monday 16 March 2015 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.6395
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Hallo,
I also had the problem that my sensors in Domoticz recieved no values.
Also no error was shown.
However, recently Netatmo only accepts https calls and does not support http anymore.
In the netatmo.py script, there are two records with http (line 20 and 21 in my script). I changed that to https and my problem was solved.
Hope this will do the trick for you as well.
I did not have the problem that my settings where gone.
I also had the problem that my sensors in Domoticz recieved no values.
Also no error was shown.
However, recently Netatmo only accepts https calls and does not support http anymore.
In the netatmo.py script, there are two records with http (line 20 and 21 in my script). I changed that to https and my problem was solved.
Hope this will do the trick for you as well.
I did not have the problem that my settings where gone.
-
- Posts: 15
- Joined: Monday 16 March 2015 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.6395
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
Hello,
I just updated Domoticz from version 2.2514 to version 2.2525. With version 2.2525, Domoticz does not receive any values.
Restart and so on does not help.
I restored a previous version (restore an image) and the Domoticz (version 2.2418) does recieve the information again.
So may something in Domoticz has changed?
I just updated Domoticz from version 2.2514 to version 2.2525. With version 2.2525, Domoticz does not receive any values.
Restart and so on does not help.
I restored a previous version (restore an image) and the Domoticz (version 2.2418) does recieve the information again.
So may something in Domoticz has changed?
Re: Python script for Netatmo weather station
Just for the "fun" of it, I updated to latest SVN (2.2525) and it still doesn't work.
Nothing in the log from domoticz either...
I'm thinking that a debug-log/option somewhere would have helped?
Nothing in the log from domoticz either...
I'm thinking that a debug-log/option somewhere would have helped?
-
- Posts: 41
- Joined: Tuesday 11 February 2014 18:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python script for Netatmo weather station
Ho yes !!RFAH wrote:Hallo,
I also had the problem that my sensors in Domoticz recieved no values.
Also no error was shown.
However, recently Netatmo only accepts https calls and does not support http anymore.
In the netatmo.py script, there are two records with http (line 20 and 21 in my script). I changed that to https and my problem was solved.
Hope this will do the trick for you as well.
I did not have the problem that my settings where gone.
I completly forget it. You're right : netatmo sent me an email few weeks ago.
Replacing http by https in the 2 url do the trick. Thank you
-
- Posts: 15
- Joined: Monday 16 March 2015 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.6395
- Location: Netherlands
- Contact:
Re: Python script for Netatmo weather station
I just found a topic (Json call fail after update) which could be the problem we have if no values are recieved anymore in Domoticz
and if you are using https in stead of http.
http://www.domoticz.com/forum/viewtopic ... ate#p45060
Accoording to this topic, you now need to add the idx if you have Domoticz version 2.2523 or higher.
Because netatmo.py also uses json calls this may be the problem.
I'm not a programmer, so i'm not sure.
and if you are using https in stead of http.
http://www.domoticz.com/forum/viewtopic ... ate#p45060
Accoording to this topic, you now need to add the idx if you have Domoticz version 2.2523 or higher.
Because netatmo.py also uses json calls this may be the problem.
I'm not a programmer, so i'm not sure.
-
- Posts: 1
- Joined: Wednesday 27 May 2015 21:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python script for Netatmo weather station
I can confirm this as well. The following call with fails. Note the url below is used by the netatmo script to update the value.
http://192.168.178.31:8080/json.htm?typ ... value=21.2
{
status: "ERR"
}
the following is successfull
http://192.168.178.31:8080/json.htm?typ ... .2&idx=206
{
status: "OK",
title: "Update Device"
}
I have been trying to see if i can get the idx in there but unfortunately the only thing i know about python is they live in the zoo
http://192.168.178.31:8080/json.htm?typ ... value=21.2
{
status: "ERR"
}
the following is successfull
http://192.168.178.31:8080/json.htm?typ ... .2&idx=206
{
status: "OK",
title: "Update Device"
}
I have been trying to see if i can get the idx in there but unfortunately the only thing i know about python is they live in the zoo
Who is online
Users browsing this forum: averter and 0 guests