a bash script exposing `AXP209` device power metrics, temperature and machine load as a JSON API. For Armbian Allwinner A20 boards
rra d2317e0b36 with timezone 2 weeks ago
.gitignore initial commit 2 months ago
README.md updated readme 2 months ago
stats.sh with timezone 2 weeks ago

README.md

material server

a bash script exposing AXP209 device power metrics, temperature and machine load as a JSON API. For Allwinner A20 ARM boards with the AXP209 chipset that run armbian

dependencies

  • jq > 1.5

installation

sudo apt get install jq

usage

bash stats.sh > /var/www/html/api/stats.json

in crontab: */2 * * * * /bin/bash /folder/to/stats.sh > /var/www/html/api/stats.json