@p4d/rpi-boot

1.8.0 • Public • Published

RPi-Boot

Raspberry Pi utility written in NodeJS that emits alerts to a Hermes server when device is booted.

RPi-Boot is a command line utility:

  • it can be run manually at anytime
  • it's scheduled to be run at reboot by a cron job

RPi-Boot 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 - Already installed if using P4D Pi Bakery image
  • 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-boot

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-boot

Automatic usage:

# The cron job that automates it
@reboot rpi-boot

Readme

Keywords

Package Sidebar

Install

npm i @p4d/rpi-boot

Weekly Downloads

0

Version

1.8.0

License

WTFPL

Last publish

Collaborators

  • javougarte
  • shipupi
  • tmigone
  • p4d-owner