@p4d/rpi-monitor
v1.4.0
Published
Raspberry Pi utility that emits alerts periodically with device status.
Downloads
7
Readme
RPi-Monitor
Raspberry Pi utility written in NodeJS that emits alerts periodically to a Hermes server with device status.
RPi-Monitor is a command line utility:
- it can be run manually at anytime
- it's scheduled to be run every 5 minutes by a cron job
RPi-Monitor uses Hermes nodejs library, this means that if internet connection is available to the RPi, the alerts are guaranteed to reach Hermes server.
Requirements
- cron installed on RPi
- Hermes server configured and available
- RPi in ready state (Project id, Kronos id and Hermes Url must be assigned) - See RPi Status docs
Installation
RPi is distributed via NPM:
sudo npm install -g --unsafe-perm @p4d/rpi-monitor
Notes:
-g
- Global flag is required so that the utility is accessible from anywhere in the system.--unsafe-perm
- This flag is required to set up the cron job for sudo user.
Usage
Manual usage:
# Just running the command will do it
rpi-monitor
Automatic usage:
# The cron job that automates it
*/5 * * * * rpi-monitor