With the Witty Pi 5, what happens if I set a wake-up date 3 hours in the past? Will it wake-up in a month?
No, it should not wake up in a month. The wake-up date/time should be set to a future time. If the specified time is already in the past, it is normally ignored rather than rolled over to the next month.
@admin But since the wakeup time is set as dd HH:MM:SS (no month), how a "past date" can exist?
If, as you said, I set a wakeup date as 29 08:00:00 it will never starts, how the SW knows the date is in "the past"? Is it because it assumes that the day 29 is for the current month (May)? If so, how can I wakeup in 3 days on Monday the 1st of June? (If I set 01 08:00:00 will it assume it's a past date too and never start on Monday?)
You are right. The wake-up setting only contains day/hour/minute/second, and the RTC alarm itself matches the next occurrence of that day/time.
If today is May 29th and you set 01 08:00:00, the intended behavior is to wake up on June 1st at 08:00.
We tested this and also found a firmware bug in the helper logic that calculates the next occurrence before programming the RTC alarm. In some month-boundary cases, the wake-up alarm may not be programmed correctly.
We have fixed this in the firmware v1.4, so dd HH:MM:SS will consistently mean the next future occurrence of that day/time. Details can be found here:
https://github.com/uugear/Witty-Pi-5-Firmware/releases/tag/v1.4
@admin Great! Thanks a lot for your prompt replies and fast fixes!
