I can see apart from creating a schedule.wpi and placing my script inside it, that I can set the scheduler via ./wittyPi.sh.
If I add values this way I do not see a schedule.wpi with those new values inside it.
Which brings me to the 2nd part of my question.. is there a way to clear these entries? All I can see to do is option 12: reset data.
But obviously, this will reset everything.
thanks
If I add values this way I do not see a schedule.wpi with those new values inside it.
What did you do exactly? Using wittyPi.sh to specify a schedule script is a standard way to use schedule script, are you saying it doesn't work for you?
If you check the source code, you can see the option 12 does three things. It clear the scheduled time by resetting some I2C registers and then delete the schedule.wpi file.
If you create a new schedule.wpi file and then run the "runScript.sh", it will take effect.
Hi
What did you do exactly? Using wittyPi.sh to specify a schedule script is a standard way to use schedule script, are you saying it doesn't work for you?
Typed ./wittyPi.sh
Added some dates/times.
Exited menu/program
Looked in schedule.wpi file. These had the old values I had manually tpyed in still.
If you check the source code, you can see the option 12 does three things. It clear the scheduled time by resetting some I2C registers and then delete the schedule.wpi file.
Useful. I wil take a look. I am confident i will find what I need there.
If you create a new schedule.wpi file and then run the "runScript.sh", it will take effect.
Yes, appreciate that.
Typed ./wittyPi.sh
Added some dates/times.
Exited menu/program
wittyPi.sh doesn't have the ability to modify the schedule script file. You may use it to specify a new schedule script file, but not to edit the file directly.
@admin Hi, using one of your samples - on 5 mins every 20 mins:
BEGIN 2015-08-01 00:00:00
END 2025-07-31 23:59:59
ON M5
OFF M15
I left it running. It turned off. Then, later it turned back on. But that was it. It just did it once. Should it not be running the script?
Your function:
delete_schedule_script() { log ' Deleting "schedule.wpi" file...' '-n' if [ -f "$my_dir/schedule.wpi" ]; then rm "$my_dir/schedule.wpi" log ' done :-)' else log ' file does not exist' fi }
Only deletes that file and nothing else?