You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Johannes Stefan 1180bad170 init 6 months ago
usr_local_bin init 6 months ago
LICENSE Initial commit 6 months ago
README.md init 6 months ago

README.md

Description

Starts up the PC (Server) after shutdown at a specific time of day.

When stopped before 4:00, it will restart at 12:00 at the same day. When stopped after 4:00, it will restart at 12:00 the next day.

Idea/Technology from here

Prerequisits

apt install python3

Installation

copy the two scripts in /usr/local/bin

Usage

execute the shell script every 5 minutes

*/5 * * * *	root	/usr/local/bin/setWakealarm.sh

Test

You can see the timestamp of planned restart when you execute

cat /sys/class/rtc/rtc0/wakealarm