-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently, all weather stations will be searched and potentially be used to store data (if they are the closest to the location).
While it makes sense conceptually that weather stations are public (to be used by all accounts on a FlexMeasures server), it doesn't have to be like that. Maybe two accounts use different weather services. It can lead to unwanted data situations, in any case.
Sensor.find_closest() already supports adding an account_id argument. We could support this from this plugin, by configuring an account_id (as CLI parameter or a setting - I prefer the former, but the latter might be convenient).
It would also be good to query only public weather stations per default, however, the account_id parameter has no effect when set to None. Maybe we'd need to add our own filter (disregarding non-public) in this case.
Note: this is for fetching existing weather stations only, not anything new (or new accounts)