Closed aolik08 closed 11 months ago
Assuming they are valid, what you should double check, ensure that the station_mac you are supplying as well as the module_id are all in lowercase
The weather2file was not changed in 3 years and, from what I remember, some big changes were performed on Netatmo API side. From what I can understand it seems that on line 471 d = self._get_field_dict(station_mac, "station_mac" is having the value devices.station_name from Netatmo API, instead of devices._id
in my case, i don't know why this field is composed from the following fields: "home_name" + " " + "(" + device.module_name + ")" it has a space char between home_name and device.module_name
If i just hard-code the station_mac of my weather station, just before, i get some values, but the weather2filescript is havin issues interpreting it:
"something fishy is going on..."
Unfortunately, this sample code was developped by @joebe975 and being just a sample code I did not invest time on it to update it with netatmo evolution.
May be I will have to remove it if @joebe975 can no longer maintain it...
ah, ok... thank you for that
I will try to look into it sometime the coming weeks.
trying to use weather2file to try to download old data seems it is not working. even if the {module_name} is properly identified it seems it returns ERROR: code=404, reason=Not Found, body=b'{"error":{"code":9,"message":"Device not found"}}'
it seems that the issue is from here, but i am not an expert on python
is there something that i do wrong?