Skip to content

golyakov/opimonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orange PI Monitor

Monitoring of Orange PI based on NodeJS and ThingSpeak.com

  • Periodic CPU temperature reading
  • Saving to a local database
  • Send to a remote service (ThingSpeak.com)
  • Install nvm
  • Install Git (optional)
  • Clone repository or download zip archive
git clone https://github.com/golyakov/opimonitor.git
  • Build app
cd opimonitor && npm init
  • Connected to ThingSpeak.com
    • Register in ThingSpeak.com
    • Create channel
    • Copy channel api key
  • Manual app launch
THINGSPEAK_API_KEY=<Your channel api key> npm start
  • Run the app as a service
    • Copy opimonitor.service
    sudo cp deploy/opimonitor.service /etc/systemd/system/opimonitor.service
    • Insert node version and channel api key in file /etc/systemd/system/opimonitor.service
    • Init and start service
    sudo systemctl enable opimonitor.service
    sudo systemctl start opimonitor.service

MIT