This program uses allpowers-ble to connect to an allpowers power station. It will give you a warning and turn of the ac/dc power supply of the allpowers battery, when the level of the battery reaches a configured threshold. This can be used to prevent deep discharge of the battery.
-
install dependencies
pip install -r requirements.txtif this fails runpip install wheeland retry -
run main.py
python src/threshold_check.py