aalcala07 / home_dashboard

Home dashboard built with Pygame
MIT License
0 stars 1 forks source link

Weather lat/long is configured at global level; should be at component and service level #11

Open snoyes opened 2 years ago

snoyes commented 2 years ago

If you wish to show the weather_panel twice, there is no way to configure it to show weather from different places.

If the location is made part of the service, then it will overwrite the cached data. Each service instance will need its own cache file, and each component instance will need to know which one of those cache files to query.

Use cases:

snoyes commented 2 years ago

A similar issue exists for the clock. For example, the start and end of my work shift are set by the current time in Helsinki. The U.S. and Finland start and end daylight savings time on different days, so for two weeks every spring and again every fall, I'm supposed to sign in to work an hour earlier or later than usual. It would therefore be useful to have the dashboard display the current time in two different timezones (which are not a fixed number of hours apart).

aalcala07 commented 2 years ago

As of v0.2.0 it is now possible to get weather data for multiple locations. See https://homedashboard.aalcala.com/#getting-weather-for-multiple-locations