Skip to content

eugenetsi/pi_temp_monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi_temp_monitoring

Python 3.6

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.

Set up

Run the following commands:

cd pi_temp_monitoring
pip install -r requirements.txt

to 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 creds

Usage

python3 monitor.py

for normal runs,

python3 monitor.py -h

for usage details, or

python3 monitor.py -l 90 # or python3 monitor.py --limit=90

to set a limit. If no limit is provided it defaults to 80.

About

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.

Topics

Resources

Stars

Watchers

Forks

Contributors