Skip to content
 
 

Latest commit

 

History

6 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

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.

Update the url request string in darksky.py with your location.

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

关于

a bash script exposing `AXP209` device power metrics, temperature and machine load as a JSON API. For Armbian Allwinner A20 boards

Resources

Stars

0 stars

关注者

0 watching

复刻s

发布

贡献者

Languages