7. Software Usage
The main executable (wittyPi.sh) is a bash script, and you can run it like this:
This interactive script displays the status of the device, and accepts your input to make configuration
accordingly.
There are 13 options in the main menu, and you can input the number and press ENTER to confirm.
Every time you press ENTER, the script will re-print the device status so you can see if the change
has taken affect.
7.1 Write system time to RTC
This option will copy the time from your Raspberry Pi system to the Realtime Clock on Witty Pi. This
pi@raspberrypi:~/wittypi $ ./wittyPi.sh
pi@raspberrypi ~/wittypi $ ./wittyPi.sh
================================================================================
| |
| Witty Pi - Realtime Clock + Power Management for Raspberry Pi |
| |
| < Version 4.00 > by Dun Cat B.V. (UUGear) |
| |
================================================================================
>>> Current temperature: 35.625°C / 96.125°F
>>> Your system time is: 2022-05-15 11:14:18 CEST
>>> Your RTC time is: 2022-05-15 11:14:17 CEST
>>> Vout=5.00V, Iout=0.51A
Now you can:
1. Write system time to RTC
2. Write RTC time to system
3. Synchronize with network time
4. Schedule next shutdown
5. Schedule next startup
6. Choose schedule script
7. Set low voltage threshold
8. Set recovery voltage threshold
9. Set over temperature action
10. Set below temperature action
11. View/change other settings...
12. Reset data...
13. Exit
What do you want to do? (1~13)