Monitoring and alerting for your RaspberryPi
Project description
raspimonitor
Monitoring and alerting to your Discord server for your RaspberryPi
Installation
You will need to set up a Discord server and webhook, see how here. After that, proceed to install the package in your raspberry:
pip3 install raspimonitor
Usage
Direct usage
# raspimonitor YOURHOOKHERE THRESHOLD_TEMP_IN_CELSIUS
# Example
raspimonitor http://your.web.hook.here 45
# Example temp as float:
raspimonitor http://your.web.hook.here 45.6
As a cron job
Add your cron job as a script from above:
# 1. Open cron file
crontab -e
# 2. Add a cron
# Example - run every minute:
* * * * * raspimonitor http://your.web.hook.here 45
# Example - run every 5 minutes
*/5 * * * * raspimonitor http://your.web.hook.here 45
# 3. Reload cron service
sudo service cron reload
Ref. https://superuser.com/questions/232144/how-to-stop-a-currently-running-cron-job
Contributing
Pull requests and issues are welcome.
License
Obtained inspiration from
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
raspimonitor-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for raspimonitor-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1f5ca9b86216d158d1b20e03360bf76e0d6bbf22ec2f2f615f074e39554444 |
|
MD5 | 47f4eac6c303b936776e04c65d50bf0d |
|
BLAKE2b-256 | df43cca6712f47b5e6f4f9b910b54fbbc47d91342e6c127e42085c17f9c86719 |