Remotely monitoring the temperature on a Raspberry Pi and recieve warnings if the temperature exceeds a limit via a matrix-element client. Basically the pi texts you if it gets hot.
Run the following commands:
cd pi_temp_monitoringpip install -r requirements.txtto install the necessary packages in order for the scripts to run.
As far as the matrix-element client; I recommend creating 2 accounts. The first account being your own personal account that you can use to sign in in your phone for example, and another account that will be the bot account. This will allow you to create a room that the aforementioned will join, such that they can text each other. The account credentials that are needed for the script if this is followed, are the bot account credentials.
The credentials should be in environment variables. An example files is included in creds.
After this is filled in (in the same directory), run:
source credspython3 monitor.pyfor normal runs,
python3 monitor.py -hfor usage details, or
python3 monitor.py -l 90 # or python3 monitor.py --limit=90to set a limit. If no limit is provided it defaults to 80.