Skip to content

At same home, two stations with same name #53

Description

@vheat

I'm running Netatmo Weather since 2015 now. By some reason I had to replace my first station by a new one (2017) but kept the data of the first one at Netatmo. Somehow I was able to give the second on the same name like the first one. Now in every interface (web/app) I see two stations with same name where I can chose either. The first one does not show me any recent data, the second one does. This means in the web/app interface there is a way to differentiate (N.B. when I try to rename, I rename always both at the same time, so somewhat frustrated by this). I'm using grafana to record the data myself. This was working fine until the recent change concerning REFRESH_TOKEN.
After updating lnetatmo I always select the old one (with no data returned) and the simpleLastData script fails by an error (as selecting the wrong station for default). I'm not able to address the station by station="station_name" as both stations share the same name.

Would it be an option to additionally have the station key "_id" as a further selector? This mac address is unique and is an intrinsic selector identifying the hardware.
Thanks

I took the User class to find the different _id strings for the stations.

Further looking around, the lnetatmo is organized around the names, even building the raw_data hides one of the duplicates because station_name is used for key. So a potential change looks to become bigger effort as not only the station_name would have to be replaced by _id , the same applies for all modules which may have same names as well... I wonder how common the issue is, whether it might be more simple to delete my netatmo account fully and rebuild it again.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions