I just read the README's of sleeplogalarm and sleepphasealarmand both describe the behavior you say you want. So it seems they should already implement it. 🙂
hmm, doesn't seem like the case for me, unless I have a very regular light sleep stage which is at the exact interval the early smart alarm period is set at :S
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just read the README's of
sleeplogalarm
andsleepphasealarm
and both describe the behavior you say you want. So it seems they should already implement it. 🙂