by google user
Version 2 (November 14, 2024)
Download (40 downloads)
plan recurring daily alarms for different types of schedules:
* students
* normie workers
* shift workers¹
* ...?
~1) randomly assigned workshifts (to fullfill contractual workhours normal schedule doesnt cover) or random rest days outside of the schedule you put down will require manual intervention.
[MANUAL]
1 dnrr means dayshift, nightshift, restday, restday. enter schedule by day, with unique single letters for every type (T would overlap tuesday and thursday, S saturday an sunday). numbers are verboten, they break my code
2 after schedule entry, the letter R is preselected as Restday by code, when present.
3a enter long names for alarm label (dayshift,monday,etc)
3b set alarmtime to wake
note: if today is an alarm day, alarm will be set if not in past. if alarm not today but tomorrow, alarm will be set when its less than 24 hours until alarm, otherwise waits until then. further checks happen one minute past midnight every day.
4 set shunt: "push" the schedule to align properly without having to enter crap like rdnr, rrdn, nrrd
5 automatic dnd mode: sets disturbance mode to alarms this far in advance. if alarm sets for 0400, 8:00h enables sleep mode at 2000
6a flow remembers last schedule set if you dont edit the flow (atomic variable) and offers the option to hardcode schedules by pasting into the 2nd block (#30: variable set, erase the "null" value *AFTER* the ":"). it writes the created data into the clipboard by default on block #29 for this.
6b note: the existing equation prioritizes the atomic store (if set) over the hardcoded data.
7 disclaimer: scheduled alarms in the range of DST (2-3am) and 23-0h may act up on dst-change days.
- - - -
employed logic:
round(timemerge(now)/time(24))=days since 1970-1-1
days % #cyclelength = n (0 to #cyclelength-1)
cycle[n] = todays schedule
Q&A
why dont you merge the keys times and names?
i'd have to index the resulting dictionary by number then instead of cycle[n], but the dict is not guaranteed to be orderly, theres a risk indexing for a 0400 shift could return alarm time for 1600 then
5 stars | 1 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.