Solarpi is a simple self-hosted python app to do datalogging of the Junctec battery monitor and Helios solar chargers via bluetooth.
To view live data using an android phone see https://github.com/codelv/solar.
Solarpi made for a raspberry pi but should will work on any debian based system.
Battery monitor:
- Junctec KH110F, KH140F, KH160F
Solar chargers:
- Helios New Energy (Also LiTime/HQST, etc..) M4860N, M48100F, M4880F
The app is split into two services, solarpi-monitor and solarpi-web.
The solarpi-monitor service connects to the battery monitor and charger via bluetooth, pulls/decodes the data,
and saves it into an sqlite db.
The solarpi-web service provides a simple web application to view the data in the database.
Download the latest release and run:
sudo apt install ./solarpi-v1.0.0.debGo to the ip or hostname of the pi in your browser and you should see the web page.
If you see a 502 Bad gateway page make sure the solarpi-web service is up and running.
Check logs using journalctl -f -u solarpi-web.service and journalctl -f -u solarpi-monitor.service.
You can stop, start, or restart the service(s) using.
sudo system solarpi-web restsart
The database is located at /opt/solar-pi/solarpi.db. You can simply copy this
file to back it up and replace it (stop the services first) to restore a backup.
It appears the raspberry pi has bad RF coexistence with when using BT and wifi.
I had lots of connectivity issues with a raspberry pi zero 2 w. After switching to a raspberry pi 3 and using ethernet instead of wifi the bluetooth connectivity problems have gone away and bluetooth updates much more rapidly.
