This is the zero branch where the initial development of the mains battery charger happens
This program may read command line data for setting the loglevel before the configuration file is read.
This program automatically turns the mains battery charger on in case the solar battery becomes discharged beyond a certain limit.
This is essentially a bang-bang controller where the AC charger is turned on if the battery is lower than the low-threshold and turned off if the battery is higher than the high threshold.
| Time | Low Threshold (on) | High Threshold (off) |
|---|---|---|
| Base | 10% | 20% |
| 16:00 to 21:00 | 5% | 10% |
- MAGLabPyLib (included as a submodule)
(optional) Move files where appropriate:
MAGLabPyLibmay be installed usingpip installbatt_charger.pymay be installed in/usr/local/bin/batt_charger.jsonmay be installed in/etc/batt_charger.envmay be installed in the same location as the former
Modify the included batt_charger.service to your installation:
- where the python script is
- where the .env file is
- which user is running this script
Copy the batt_charger.service to /usr/lib/systemd/system/ or where your distribution stores systemd scripts
Please do not hesitate to leave a Github issue or email the MAG Laboratory contact email: contact [at] maglaboratory [dot] org. Our social media locations are on the website.
- @blu006
todo
The Unlicense