Skip to content

introduce weekdays to fixed_hours tariff#3252

Open
tpd-opitz wants to merge 3 commits into
openWB:masterfrom
tpd-opitz:fixed-hours-per-weekday
Open

introduce weekdays to fixed_hours tariff#3252
tpd-opitz wants to merge 3 commits into
openWB:masterfrom
tpd-opitz:fixed-hours-per-weekday

Conversation

@tpd-opitz

@tpd-opitz tpd-opitz commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

https://forum.openwb.de/viewtopic.php?t=11934

  • extend config fail save
  • update overlap detection
  • update current price fetch
TODO: update UI
  • add list of weekdays a time frame should be active
  • values in this list range from 0 (monday) to 6 (sunday) eg:
                [
                    {
                        "name": "tariff1",
                        "price": 100,
                        "active_times": {
                            "dates": [("01-01", "31-12")],
                            "times": [("08:00", "12:00")],
                            "weekdays": [0, 1, 2, 3, 4],  # active on weekdays
                        },
                    },
                    {
                        "name": "tariff1",
                        "price": 200,
                        "active_times": {
                            "dates": [("01-01", "31-12")],
                            "times": [("08:00", "12:00")],
                            "weekdays": [5, 6],  # active on weekends
                        },
                    },
                ]

@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from bd6cec9 to 0e4119e Compare March 29, 2026 11:19
@tpd-opitz tpd-opitz changed the title introduce weekdas to fixed_hours tariff introduce weekdays to fixed_hours tariff Mar 29, 2026
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 0e4119e to c481cb0 Compare March 29, 2026 11:23
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from c481cb0 to 9bf5891 Compare April 1, 2026 18:20
@tpd-opitz tpd-opitz requested a review from LKuemmel April 1, 2026 20:47
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 59dd24c to 815c526 Compare May 1, 2026 10:29
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch 3 times, most recently from 7f1470b to ac0ddc9 Compare May 12, 2026 12:26
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 337d511 to 76c8b09 Compare May 19, 2026 13:31
@LKuemmel LKuemmel added this to the 2.2.1 milestone May 19, 2026
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch 2 times, most recently from 718b2d6 to 0c354c9 Compare June 5, 2026 10:15
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 0c354c9 to eaf7052 Compare June 5, 2026 10:17
@tpd-opitz

Copy link
Copy Markdown
Contributor Author

Ich habe jetzt die DATASTORE_VERSION zum fünften mal angepasst. Mit meiner originalen Failsafe-Implementierung wäre dass nicht notwendig gewesen. Die nächste Anpassung bitte ich euch selbst zu machen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants