Monitoring SBC temperature in CoreElec with Netdata in Docker
This script is based on LinuxServer.io shell script from libreelec-addon-repo.
Script was modified to mount additional config files allowing temperature monitoring on SBC's like Khadas VIM3 and Raspberry Pi. Modifications are based on following sources:
- Netdata for IoT for activating temperature sensors
- CoreElec HW monitor discussion ( thanks to Martynet, relkai and Uukrul for scripts and hints)
- Anonymous Statistics page for disabling statistics.
- SBC running CoreElec OS.
- Installed CoreElec Docker service.
- SSH into your CoreElec device: and enter your root password
- Under SSH session execute:
to download install script.
wget https://raw.githubusercontent.com/SthPhoenix/netdata-coreelec-sensors/master/install.sh
- Execute downloaded script:
bash install.sh
- Open
http://YOUR.COREELEC.IP:19999
in your browser, enjoy!
Executing this script will create new directory netdata
, download all required files into it and execute run_netdata.sh
.
run_netdata.sh
will stop and remove existing netdata
docker containers and start new one with mounted config files.
If you want to disable Netdata anonymous statistics manualy add mount -v $ASSETS/.opt-out-from-anonymous-statistics:/etc/netdata/.opt-out-from-anonymous-statistics:ro\
to run_netdata.sh
file and execute it.
- Script was tested on CoreELEC-Amlogic-ng.arm-9.2-nightly_20200103 build, but should work on other Amlogic builds too.
- Script was tested on Khadas VIM3 Pro SBC, but should work on other Amlogic devices.
- File
main.js
is responsible for drawing temperature gauge on main dashboard and is based on file from Netdata v1.19.0-238, modification of this file might be required for future versions of Netdata