Updated readme
This commit is contained in:
parent
b2fce3c122
commit
2e1e5b919a
25
README.md
25
README.md
|
|
@ -0,0 +1,25 @@
|
||||||
|
READ ME FOR WEBPAGE UPDATING CHECKER CREATED BY JACOB DAVIS 1/7/2026
|
||||||
|
|
||||||
|
This is a set of scripts that will check the the date and time published on the Clarion02 webpage.
|
||||||
|
If the time has not updated in 15 minutes, it will send an email to the sender list held in the sendEmailAlert.sh file.
|
||||||
|
|
||||||
|
Before running, make sure the appropriate mail utilities are installed.
|
||||||
|
>>sudo apt install mailutils
|
||||||
|
|
||||||
|
You will also need the msmtp packages
|
||||||
|
>>sudo apt install msmtp msmtp-mta
|
||||||
|
|
||||||
|
Next, copy the .msmtprc file to your home directory. It is a hidden file, so if you don't see it in the folder, check that you can see hidden files.
|
||||||
|
|
||||||
|
AFTER .msmtprc file is in your home directory, give it appropriate security permissions with:
|
||||||
|
>>chmod 600 ~/.msmtprc
|
||||||
|
|
||||||
|
Next, make sendEmailAlert.sh an executable with (instide the WebPageChecker folder)
|
||||||
|
>>chmod +x sendEmailAlert.sh
|
||||||
|
|
||||||
|
Finally, run the script with
|
||||||
|
>>python3 WebPageUpdateChecker.py
|
||||||
|
|
||||||
|
Other files: There is an email sending script using python that is a bit more complicated but will work as well if you'd rather use that. Just change the subprocess.run() line in the main script.
|
||||||
|
|
||||||
|
Other info: This is all being handled through the gmail account I set up specifically to recieve Clarion Alerts. It may be worth changing that to some other address. If that is done, we will need to edit the .msmtprc file.
|
||||||
Loading…
Reference in New Issue
Block a user