13. Migrating from Witty Pi 3 to Witty Pi 4
If you have been using Witty Pi 3 before, migrating to Witty Pi 4 will be quite easy to you. Witty Pi 4
has the same shape factor like Witty Pi 3, and the locations of button and connectors are the same.
They are physically exchangeable.
In Witty Pi 3, you cannot specify the “seconds” in scheduled shutdown time, and that was due to the
limitation from RTC hardware. In Witty Pi 4, the alarms for startup and shutdown are implemented by
the firmware, and you can specify the “seconds” in both scheduled times.
The “??” wildcards are no longer supported in Witty Pi 4. This is because implementing “??”
wildcards need more resources than what MCU has. However, you can still use schedule script to
achieve the same result. The table below shows how to use schedule to replace the “??” wildcards.
Equivalent with Schedule Script
Startup: ?? 09:45:00
Shutdown: ?? 22:30:00
Turn on at 9:45, and turn
off at 22:30 every day.
BEGIN 2022-05-10 09:45:00
END 2025-07-31 23:59:59
ON H12 M45
OFF H11 M15
Startup: ?? 09:45:00
Shutdown: no plan
Turn on at 9:45 every
day, and do not schedule
the shutdown.
BEGIN 2022-05-10 09:45:00
END 2025-07-31 23:59:59
ON M5 WAIT
OFF H23 M55
Startup: no plan
Shutdown: ?? 22:30:00
Turn off at 22:30 every
day, and do not schedule
the startup.
BEGIN 2022-05-10 22:25:00
END 2025-07-31 23:59:59
ON M5
OFF H23 M55 WAIT
Startup: ?? ??:40:00
Shutdown: ?? ??:55:00
Turn on at 40 minutes
and turn off at 55 minutes
every hour.
BEGIN 2022-05-10 00:40:00
END 2025-07-31 23:59:59
ON M15
OFF M45
Startup: ?? ??:40:00
Shutdown: no plan
Turn on at 40 minutes
every hour, and do not
schedule the shutdown.
BEGIN 2022-05-10 00:40:00
END 2025-07-31 23:59:59
ON M5 WAIT
OFF M55
Startup: no plan
Shutdown: ?? ??:30:00
Turn off at 30 minutes
every hour, and do not
schedule the startup.
BEGIN 2022-05-10 00:25:00
END 2025-07-31 23:59:59
ON M5
OFF M55 WAIT