1.4.0 • Published 7 years ago

@p4d/rpi-monitor v1.4.0

Weekly downloads
1
License
WTFPL
Repository
-
Last release
7 years ago

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
1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago