Commit graph

21 commits

Author SHA1 Message Date
Vincent Bernat
8c7118ee35 polybar-weather: more compact 2021-10-22 07:23:39 +02:00
Vincent Bernat
ac6410af1a polybar-weather: use country if city is unavailable 2021-10-22 07:21:26 +02:00
Vincent Bernat
6be90d5830 polybar-weather: switch to MaxMind for location
In the future, I can get a key from here:
https://support.maxmind.com/getting-started-with-geolite2/. The issue
with ip-api.com is that the city is often wrong.
2021-09-29 08:04:13 +02:00
Vincent Bernat
6b0c7b4c1d polybar-weather: try harder to wait to be online 2021-08-13 23:01:13 +02:00
Vincent Bernat
481b258fe0 polybar-weather: wait a bit longer when not online 2021-08-13 22:06:21 +02:00
Vincent Bernat
dce67c7d60 polybar-weather: use onecall API
The daily forecast is not available for free.
2021-08-13 18:43:20 +02:00
Vincent Bernat
da6f9ff7aa polybar-weather: show daily forecast instead of hourly forecast 2021-08-13 16:50:54 +02:00
Vincent Bernat
97f44f09b1 polybar-weather: don't use nm-online -s flag
It only checks if network manager was online at some point in the
past.
2021-08-12 07:51:37 +02:00
Vincent Bernat
eda39cbd22 polybar-weather: switch to Font Awesome for weather
This way, we only use one font. It seems good enough.
2021-08-11 18:28:42 +02:00
Vincent Bernat
6207bc2c7e polybar-weather: wait longer before checking nm-online 2021-08-11 15:55:25 +02:00
Vincent Bernat
8fd82af49f polybar-weather: discard first forecast if in less than two hours 2021-08-11 10:15:00 +02:00
Vincent Bernat
0129d85f70 polybar-weather: also log first forecast time 2021-08-11 08:32:28 +02:00
Vincent Bernat
7c39cfb940 polybar-weather: also use current weather
I was under the impression the first forecast value may include the
current weather. This is not the case. Times provided in forecast are
in UTC. So, also include the current weather.
2021-08-11 08:28:15 +02:00
Vincent Bernat
77db51b12c polybar-weather: fix missing import 2021-08-11 07:55:12 +02:00
Vincent Bernat
62645d0a66 polybar-weather: gracefully handle connection error when waking up
nm-online may think we are still online, but we are not, just try a
location request and if it fails, wait to be online.
2021-08-10 21:45:09 +02:00
Vincent Bernat
af1e3135cf polybar-weather: log city, just in case 2021-08-10 17:20:18 +02:00
Vincent Bernat
9e55aa23b9 polybar-weather: make number of forecasts configurable 2021-08-10 17:15:25 +02:00
Vincent Bernat
e88352aa67 polybar-weather: tell where to find weather icons 2021-08-10 13:35:16 +02:00
Vincent Bernat
78004178e4 polybar-weather: use different icons when day/night
Also, on hot days, switch to a specific icon.
2021-08-10 13:34:17 +02:00
Vincent Bernat
85b56cd2d5 weather: remove dupes in forecast if no change 2021-08-10 13:14:22 +02:00
Vincent Bernat
0559c830ef polybar: display current weather 2021-08-10 13:08:15 +02:00