You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,16 +66,28 @@ Install Python.
66
66
67
67
If any library is missing do `pip install`*library*.
68
68
69
-
Create a cron job to run the script on every boot.
69
+
To test the script output run with `python3 monitor.py`.
70
70
71
-
To test the script output run with `python3 monitor.py` or to run in background use `pythonw monitor.py` for PC and `python3 monitor.py &` for Linux.
71
+
### Linux Autostart
72
72
73
-
### Creating Cron Job
73
+
Create a cron job to run the script on every boot.
74
74
75
75
Edit cron with `crontab -e`.
76
76
77
77
Add the script at the bottom of the cron list as `@reboot python3 /path/to/script/monitor.py &`.
78
78
79
+
### Windows Autostart
80
+
81
+
`Windows/monitor.bat` and `Windows/monitor.vbs` scripts are included.
82
+
83
+
`monitor.bat` will call python to launch `monitor.py`.
84
+
85
+
`monitor.vbs` silently calls `monitor.bat` to run in the background.
86
+
87
+
To create an autostart for Windows open the startup folder with keyboard `Windows + R`, enter `shell:startup` and create a shortcut here to `monitor.vbs`.
88
+
89
+
This will run the script in the background on every boot.
0 commit comments