Add Electricity spot price widget #24

Merged
dancek merged 1 commits from electricity-price-widget into master 2024-05-06 10:08:27 -04:00
dancek commented 2024-05-06 02:44:25 -04:00 (Migrated from github.com)

This widget supports showing electricity spot price for many areas in Europe. However, there's no configuration UI yet. I'm hoping there will be native support for editing the values in prefs later, but I'm also open to implementing the configuration UI in the widget if I get some help.

The chart would be better if displayed with timestamps, but that doesn't currently work when the timestamps span two days.

This widget supports showing electricity spot price for many areas in Europe. However, there's no configuration UI yet. I'm hoping there will be native support for editing the values in `prefs` later, but I'm also open to implementing the configuration UI in the widget if I get some help. The chart would be better if displayed with timestamps, but that doesn't currently work when the timestamps span two days.
dancek commented 2024-05-06 02:51:01 -04:00 (Migrated from github.com)

Samples of how it looks folded and expanded, late in the evening so the data spans two days. The one-line representation lists hours and prices such that there's a major change from the earlier price (configurable with the oneline_threshold_* parameters).
Screenshot_2024-04-29-23-07-43-50_c483b0a08a3d13961f22556f3195da20~2
Screenshot_2024-04-29-23-07-50-84_c483b0a08a3d13961f22556f3195da20~2

Samples of how it looks folded and expanded, late in the evening so the data spans two days. The one-line representation lists hours and prices such that there's a major change from the earlier price (configurable with the `oneline_threshold_*` parameters). ![Screenshot_2024-04-29-23-07-43-50_c483b0a08a3d13961f22556f3195da20~2](https://github.com/zobnin/aiolauncher_scripts/assets/245394/0e147515-e55d-4312-9875-616f7d55dd74) ![Screenshot_2024-04-29-23-07-50-84_c483b0a08a3d13961f22556f3195da20~2](https://github.com/zobnin/aiolauncher_scripts/assets/245394/03e3b58f-6500-43f5-a1aa-9f389150d3e8)
zobnin commented 2024-05-06 04:32:44 -04:00 (Migrated from github.com)

Thank you for your script. Looks cool. And I will help you with configuration. But please change script directory from main to community.

Thank you for your script. Looks cool. And I will help you with configuration. But please change script directory from main to community.
dancek commented 2024-05-06 06:49:14 -04:00 (Migrated from github.com)

Oops! Done.

I assume a configuration UI would be done by overriding on_settings and creating a dialog, but I didn't understand how to create a dialog with multiple fields.

Oops! Done. I assume a configuration UI would be done by overriding `on_settings` and creating a dialog, but I didn't understand how to create a dialog with multiple fields.
zobnin commented 2024-05-06 10:09:33 -04:00 (Migrated from github.com)

Thank you.
About settings: yes, there is no rich ui dialog right now. But I will add it soon.

Thank you. About settings: yes, there is no rich ui dialog right now. But I will add it soon.
Stalker5335 (Migrated from github.com) approved these changes 2024-05-07 08:12:36 -04:00
zobnin commented 2024-05-25 07:07:04 -04:00 (Migrated from github.com)

In AIO Launcher 5.3.0, an API for automatically generating a settings window from prefs fields has been introduced. I have already added support for this in your script, so you don't need to do anything.

In AIO Launcher 5.3.0, an API for automatically generating a settings window from prefs fields has been introduced. I have already added support for this in your script, so you don't need to do anything.
Sign in to join this conversation.
No description provided.