Skip to main content

alarm_decide

Function alarm_decide 

Source
pub(crate) fn alarm_decide(key: &str) -> String
Expand description

At a dose’s time, Android’s alarm asks what to say (alarms), maybe with nothing on the screen. What your other devices marked is read first (share::exchange_here: Sioul’s own pull from the server while it works, else the sync app asked to bring it; an exchange without notes and papers, which never holds a dose back); then, as the window would: taken, not taken said, or reminded already: nothing; kept by another device you use: its turn, asked again after the wait for news; not known: after that wait, reminded with the doubt said first; else the dose. Recorded reminded only when shown, so that another device still reminds what was not. JSON {show, title, body, again_at (Unix ms, 0: never)}.