a bash script exposing `AXP209` device power metrics, temperature and machine load as a JSON API. For Armbian Allwinner A20 boards
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE Initial commit Sep 28, 2018
README.md
darksky.py
darksky_api.py
stats.sh

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

It further pulls in daily weather predictions using the darksky api.

dependencies

  • jq > 1.5
  • a darksky account

installation

sudo apt get install jq

Make sure you get a darksky API key. Enter your API token into darksky_api.py.

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