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