Skip to content

balena-io-experimental/balena-pijuice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balena Pi Juice

This is an example project demonstrating how to use a PiJuice UPS board with a Rasperry Pi. The main idea of the UPS board is to keep your device up and running in case of an outage. If you would like to know more information about the board, click here.

Features:

  • Logs the state of the battery every 5 seconds.
  • Create and update a list of tags that are easily visible from the dashboard. The tags are updated every minute.
  • If configured, you can also receive one warning text message every hour from a third party service called twilio.

Configuring Twilio

Go to twilio and create an account, and do a text message setup. You will then need to add these variables to Device Environment Variables.

  • TWILIO_ALARM = True
  • TWILIO_FROM_NUMBER = +1...
  • TWILIO_NUMBER = +1...
  • TWILIO_SID = ...
  • TWILIO_TOKEN = ...

If you set TWILIO_ALARM to True, it means that once your device is disconnected from power, you will start receiving messages every hour until de power runs out.

About

Project to use PiJuice with a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages