philippelt / netatmo-api-python

Netatmo connect API python client (for Netatmo information, see https://dev.netatmo.com)
GNU General Public License v3.0
186 stars 118 forks source link

Add favorite data #74

Closed ricky074 closed 4 months ago

ricky074 commented 7 months ago

Hello,

Thanks for your script and thanks for your last update. I have a question. Is it possible to get data from favorite station in your script ? I saw that we have to add get_favorites = True in the postParams... It would be perfect !

Thanks a lot for your job.

Eric

philippelt commented 7 months ago

I just checked the returned information from WeatherStationData (reesult of getstationdata API call) and, unfortunately, there is nowhere any "favorite" property in the returned info. I can't determine which one should be the default station.

As all lastData for all stations are collected at once with this call in the dashboard property, I can only use information from this call to further assign properties or behavior.

May be one day Netatmo will add this property to stations informations.

rvk01 commented 7 months ago

I just checked the returned information from WeatherStationData (reesult of getstationdata API call) and, unfortunately, there is nowhere any "favorite" property in the returned info. I can't determine which one should be the default station.

Doesn't the endpoint /homesdata provide that info? https://dev.netatmo.com/apidocumentation/weather#homesdata

JurgenLB commented 7 months ago

I think @rvk01 is talking about https://api.netatmo.com/api/getstationsdata?get_favorites=false

https://api.netatmo.com/api/getstationsdata?get_favorites=true

But I don't know what the respons is.

ricky074 commented 7 months ago

In the netatmo api documentation, I found this :

https://dev.netatmo.com/apidocumentation/weather#getstationsdata

2023-12-06 08_20_33-Netatmo Connect _ Weather API Documentation et 4 pages de plus - Travail – Micro