Commit Graph

11 Commits

Author SHA1 Message Date
André Jaenisch fa4ff8b40d
feat: configuration option for hover forecast
Based on a request this is now configurable.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-30 10:50:56 +01:00
André Jaenisch 449f2dbb39
fix: inverse logic
I only need to add a prefix when it is not day.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-24 11:14:00 +02:00
André Jaenisch 6f4c1deac2
chore: add icons
I removed the executable flag from all of them.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-22 10:55:27 +02:00
André Jaenisch a9a33b5d4d
feat: consider day/night information
This was highly requested. I hope I catched all cases.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-22 09:28:56 +02:00
André Jaenisch d64dd366f3
chore: track example_response.json
This should ease the job of updating this widget.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-22 09:14:51 +02:00
André Jaenisch 87259502cf
feat: add preview on hover
This was a nice contribution!

Co-authored-by: trap000d

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-22 09:04:01 +02:00
André Jaenisch f5e81dea79
fix: remove superfluous quotation mark
NeoVim tried to be helpful.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-11 08:51:24 +02:00
André Jaenisch 9604aef6ba
feat: show hourly forecast
This took me quite some trial and error to figure out.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-10-10 16:27:23 +02:00
André Jaenisch 27727f0ccc
feat: show daily forecast
Each day is also including hourly forecast, but this PR lays the
groundwork by talking to the right endpoint.

Instead of day and night values (like in the old weather-widget) I'm
showing min and max temperature as forecasted here.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-09-27 19:20:37 +02:00
André Jaenisch d9e9ee6938
chore: include screenshot of popup
Unlike weather widget I only have the current weather in place here.
I'm okay with the default font so I have not created another screenshot.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-07-02 08:37:36 +02:00
André Jaenisch f0cb75f40f
refactor: extract WeatherAPI widget into its own
This was done to allow for choice. In the first step I copied over the
existing code into a new folder and accompanied it with icons and
locales. There is no indicator of night in the JSON responses, which
made me delete the respective icons.

I copied and updated the README to fit the current implementation.
I will need to add screenshots before I can ask for another round of
review.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-25 08:24:07 +02:00