This folder contains tools for monitoring pv system from Ginlong Data Logging Stick Wi-Fi for Solis Inverters. Currently tested with a Solis 4G Three Phase Inverter. There is a possibility it also works with the following inverters: Omnik Solar, Solarman and Trannergy Inverters
The repository has two folders:
- python-myenergy - app for data collection
- android-myenergy - app for preview data
The Python script gets PV statistics from an internal website and stores in the database. To view the data, you need to submit your statistics to Firestore.
The following data are collected:
- current production
- total production
- power
- (optional) weather / sunrise, sunset via (openweathermap.org)
Set up your Android app for Firestore
- Go to the Firebase console.
- In the center of the project overview page, click the Android icon or Add app
- Use the package name net.myenv.myenergy
- Register app.
- Download "google-services.json" to obtain your Firebase
-
Download python-myenergy
git clone https://github.com/mmaciejow/myenergy.git
-
Create python virtual environments and install all modules required by this project
cd myenergy/python-myenergy/ pip install virtualenv virtualenv venv source venv/bin/activate pip install -r requirements.txt
-
Put your firebase credentials (google-services.json) into app folder
-
Copy config.ini.org to config.ini and edit
cp config.ini.org config.ini
- set IP address, username, password to your system pv web
- set path to database file
- set path to Firebase credential
- set api key and geographical coordinates (latitude, longitude) for openweathermap if you want to get information about the day
- Download android-myenergy and open in Android Studio
- Put your firebase credentials (google-services.json) into module app folder
android-myenergy\app\
- Compile app
- Run the app on an Android device or emulator.
path/to/venv/bin/python app.py config.ini
You can add to crontab
`*/5 5-21 * * * /path/to/venv/bin/python /path/to/myenergy/app.py /path/to/myenergy/config.ini`