View Issue Details

IDProjectCategoryView StatusLast Update
0000552Internet RadioBugpublic2026-05-17 09:53
Reportermikee Assigned Tomikee  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformPCOSLinuxOS VersionOS
Summary0000552: Dates in alarm_list are wrong
Description

This prevents alarms playing that are incorrectly flagged as being in the future.
Specifically if the alarms are remade by toggling the alarm switch and it's after midnight the alarm will not play.
Because the start time is now yesterday and dp.parse returns a date of "today" when just given a time.
In the case here we need "yesterday".
So if "now" is < start + duration we need to decrement the day by 1

Steps To Reproduce

Toggle the alarms switch after midnight when an alarm (station) is playing.

TagsNo tags attached.
Attach Tags
GitLab/Hub Issue

Relationships

related to 0000406 closedmikee When switching back to alarm mode, the alarm is not played if the alarm is past due time and it's after midnight.. 

Activities

git

2026-05-16 12:40

updater   ~0002181

Branch Bug-406 - commit de1d311f9432bb3568c4796d746c1cb37b66d0da
Author: Mike Evans <mikee@saxicola.co.uk>
Date: Sat May 16 08:27:12 2026 +0100

Add a new module to do the alarm handling exept playing.

The alarms handling is the most complicated part of radio,
Pulling it out as a module will aid testing anf debugging.

The current issues are described in Bug-406 and Bug-552.

src/alarms.py

mikee

2026-05-17 09:53

administrator   ~0002185

004bf4f1c2

git

2026-05-17 09:53

updater   ~0002187

Branch main - commit de1d311f9432bb3568c4796d746c1cb37b66d0da
Author: Mike Evans <mikee@saxicola.co.uk>
Date: Sat May 16 08:27:12 2026 +0100

Add a new module to do the alarm handling exept playing.

The alarms handling is the most complicated part of radio,
Pulling it out as a module will aid testing anf debugging.

The current issues are described in Bug-406 and Bug-552.

src/alarms.py

Issue History

Date Modified Username Field Change
2026-05-16 02:38 mikee New Issue
2026-05-16 02:38 mikee Status new => assigned
2026-05-16 02:38 mikee Assigned To => mikee
2026-05-16 02:42 mikee Relationship added related to 0000406
2026-05-16 10:24 mikee Description Updated
2026-05-16 10:24 mikee Steps to Reproduce Updated
2026-05-16 12:40 git Note Added: 0002181
2026-05-17 09:53 mikee Status assigned => closed
2026-05-17 09:53 mikee Resolution open => fixed
2026-05-17 09:53 mikee Note Added: 0002185
2026-05-17 09:53 git Note Added: 0002187