I have uploaded a .wpi files, however, when I click to activate a script nothing happens.
What am I doing wrong here?
Please provide a screenshot showing where you “click to activate” the script. Witty Pi 5 software (wp5) uses an interactive command-line interface, so I’m not sure which interface you are referring to.
If you are using wp5, please also copy and paste the complete terminal output when you try to activate the script.
It would also be helpful if you list the content of your script file and the WittyPi5.log file (in "log" directory of Witty Pi 5 emulated USB drive).
------------------------------------------------------------------------------- [1] Upload schedule script... [2] Activate schedule script... [3] Download schedule script... [4] Delete schedule script... [5] Return to main menu Please input 1~5: 1 Available schedule files in current directory: [1] schedule--test.wpi Input a filename, or choose a number from the list above: 1 Uploaded schedule--test.wpi to Witty Pi. -------------------------------------------------------------------------------- Manage schedule scripts... -------------------------------------------------------------------------------- [1] Upload schedule script... [2] Activate schedule script... [3] Download schedule script... [4] Delete schedule script... [5] Return to main menu Please input 1~5: 2 No files are available for activation. --------------------------------------------------------------------------------
# Test Schedule: Shut down at 10:00 PM, boot back up at 10:05 PM daily
BEGIN 2026-08-16 22:00:00
OFF M5
ON H23 M55
I can't seem to find the emulated USB drive so I can not access the log file.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID cafe:4003 UUGear Witty Pi 5
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 2G 0 loop
sda 8:0 1 0B 0 disk
mmcblk0 179:0 0 119.4G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 118.9G 0 part /
zram0 254:0 0 2G 0 disk [SWAP]
I am not sure why the script isn't activating.
When the Pi is turned on, the Pi doesn't recognise the WP5 until I press the button on the WP5. Once I hit the WP5 button, the emulated USB appears, however, once I upload the script using the CLI UI the emulated USB appears to be removed from the Pi.
@james-raptis93
Currently the "schedule" prefix is reserved by the wp5 software and the purpose is to avoid overwriting these file on Witty Pi 5 disk:
schedule.wpi schedule.act schedule.skd
Please rename your script file and do not use "schedule" as file name prefix.
However even if the script file name is good, your script file doesn't declare the END time and hence the script will be rejected by parser.
The USB drive disappears after uploading file via software, that is a designed behavior. The firmware has to unmount the USB drive before writing the file data into FAT partition. Otherwise the FAT partition may be corrupted when multiple sources are writing into it.
How do you power the deivce? Please make sure only connect power supply to Witty Pi 5, and do not power Raspberry Pi directly. If you found the Witty Pi 5 I2C device is missing and taping the button can have it detected, then maybe you directly powered your Raspberry Pi and did not power Witty Pi 5.
When your Witty Pi 5 is detected, running wp5 will tell you which firmware version it is. Please provide this information if you still have "USB drive missing" issue.
Thanks - I will make those changes and report back.
Once the script has been activated the WP5 has been set up, does it still need to be directly powered or can I power the Raspberry Pi directly?
You should always power Witty Pi 5 only, and do not directly power your Raspberry Pi. That is how Witty Pi works - it controls the power path to your Pi. If you power your Pi directly, that will totally bypass Witty Pi.
Thanks @admin appreciate your advice and support.
Could you please do me a favour and edit your previous post so my name is removed? I have updated my username in the settings.
