Commit Graph

1222 Commits

Author SHA1 Message Date
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
streetturtle 4d05c96f65
Merge pull request #433 from Luka5W/master
logout-menu: fixed widget button bg color, fixed rows fg color
2024-10-05 15:55:05 -04:00
streetturtle c9c1d6bde0
Merge pull request #454 from Ryuno-Ki/weather-api-forecast
feat: show daily forecast
2024-10-05 15:51:48 -04: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
streetturtle 68ddbd9812
Merge pull request #452 from maverick1872/patch-1
feat(calendar): add auto hide functionality
2024-08-08 21:55:57 -04:00
Jonathon Terry f421ed6c89
docs: document new user customization options 2024-08-03 14:55:58 -07:00
Jonathon Terry 5cf75b13d4
fix: indentation fix 2024-08-03 14:53:50 -07:00
Jonathon Terry 1be1419ab4
fix: ensure timer is stopped if visibility is manually toggled 2024-08-03 14:53:09 -07:00
Jonathon Terry 2063b0e8e2
feat: add auto hide functionality to calendar widget 2024-08-03 14:49:30 -07:00
streetturtle effc902821
Merge pull request #451 from JSONCarrillo/master
fixed typo mentioned in #443
2024-07-25 17:50:26 -04:00
jason 60814f93e8 fixed typo mentioned in #443 2024-07-25 14:16:53 -06:00
streetturtle df6bc4a260
Merge pull request #445 from lomereiter/mpris_widget_improvements
MPRIS widget improvements
2024-07-06 17:33:59 -04:00
streetturtle 09feeaaafd
Merge pull request #448 from Ryuno-Ki/weather-migration
feat: migrate weather.lua to use WeatherAPI
2024-07-06 17:33:12 -04: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 df7260503d
refactor: restore original implementation
This is going to be marked as deprecated by streetturtle going forward.
As of today, I am still able to successfully call the v2.5 API.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-25 08:33:30 +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
streetturtle d646bb6db9
Merge pull request #447 from radiodee1/icon-control-readme
modify readme for icon-control
2024-06-21 21:04:03 -04:00
André Jaenisch 9abce7fa9a
chore: remove dead code
Luacheck fails over this unused code. Streetturtle gave me green light
to remove it as part of this PR.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-19 08:17:19 +02:00
André Jaenisch ebcf76ae17
fix: missed a blank line
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-18 18:21:34 +02:00
André Jaenisch 11c62fb80b
fix: drop unused variables
Let's make Luacheck happy!

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-18 18:19:23 +02:00
André Jaenisch c734c05614
feat: safeguard against invalid JSON
It appears that OpenWeatherMap sometimes sent out bad JSON.
Learn from the lesson and do better in this PR.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-18 18:16:54 +02:00
André Jaenisch 39d72e4c0d
refactor: rewrite weather.lua to use WeatherAPI
When I looked into OpenWeatherMap 3.0 API they demanded credit card
information even for their free tier. Therefore I decided to move to
another provider with a generous tier.

In a first step I rewrote the current weather report (i.e. no forecast)
to use it.

I haven't received any commentary on #442 so I don't know where your
mind was going. If OpenWeatherMap phases out its 2.5 API and nobody else
intends to use their 3.0 one, I offer to take this implementation
instead.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-06-17 16:56:10 +02:00
David Liebman 4941ac59de modify readme for icon-control 2024-06-13 14:56:31 -04:00
Artem Tarasov 0adeedfe99 formatting with stylua (Spaces, AutoPreferSingle, NoSingleTable, FunctionOnly) 2024-06-01 09:43:13 +02:00
Artem Tarasov cb150775ec avoid passing nil to string.sub 2024-06-01 09:17:10 +02:00
Artem Tarasov d58ed66d0a extra protection against division by zero 2024-05-26 22:46:04 +02:00
Artem Tarasov 0391d98acb swap play and pause icons to indicate intended action instead of the status 2024-05-23 08:05:59 +02:00
Artem Tarasov a69682b240 use more standard progressbar direction 2024-05-23 08:04:51 +02:00
Artem Tarasov 5a1cef608c allow to override default player 2024-05-20 20:26:56 +02:00
Artem Tarasov 10aeeb71ad handle absence of year in the metadata 2024-05-20 20:20:56 +02:00
Artem Tarasov 08b401442e put back forced_height (useful for long album names) 2024-05-20 20:07:57 +02:00
Artem Tarasov cc3e74e099 show album year in the popup 2024-05-20 20:06:14 +02:00
Artem Tarasov 182f80349d customizable popup width 2024-05-20 19:58:40 +02:00
Artem Tarasov 2e422691d2 fix duration function, allow to override icons and font 2024-05-20 19:55:06 +02:00
Artem Tarasov f944270602 refactoring + fix player selection 2024-05-20 19:05:59 +02:00
Artem Tarasov d8376f7bec minor improvements 2024-05-19 18:34:45 +02:00
Artem Tarasov 484eb68671 show cover art in the popup 2024-05-19 14:38:46 +02:00
Artem Tarasov a11ee2ec8a working progressbar 2024-05-19 12:42:49 +02:00
streetturtle 5e3cbf93e6
Merge pull request #437 from radiodee1/apt-widget-icon-control
apt-widget icon-control
2024-05-18 12:42:04 -04:00
streetturtle 8ab87d20bf
Merge pull request #444 from Stasky745/master
Allow setting up logout-popup-widget button keybindings and ignore case
2024-05-18 12:41:01 -04:00
streetturtle 7dd0041315
Merge pull request #400 from FerrielMelarpis/fix-brightnessctl-displayed-value
fixed brightnessctl get command to get percentage value
2024-05-17 13:47:39 -04:00
Stasky745 60a262fb39 Add the argument to ignore CAPS LOCK 2024-05-17 17:17:00 +02:00
Stasky745 4d161f8583 Add the argument to ignore CAPS LOCK 2024-05-17 17:14:56 +02:00
Stasky745 f147c600e5 Fix bug where it wouldn't work with uppercase 2024-05-17 17:03:49 +02:00
Stasky745 3a9990f8b0 Allow setting up logout-popup-widget button keybindings and ignore case 2024-05-17 16:48:25 +02:00
streetturtle 6f89bdbf18
Merge pull request #440 from florent-haxhiu/master
fix: import statement had typo
2024-03-31 10:40:31 -04:00
Florent Haxhiu cee3a13df4
fix: import statement had typo 2024-03-31 16:22:42 +01:00
David Liebman d45bdd5a40 apt-widget icon-control 2024-01-16 11:18:29 -05:00
streetturtle 85fbddf6d9
Merge pull request #435 from Ryuno-Ki/fix-apt
fix: repair APT widget
2024-01-06 20:58:41 -05:00
André Jaenisch 73e983e782
fix: repair APT widget
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2023-12-27 10:28:40 +01:00