This repository contains an exporter for SolarLog Monitoring Systems. The Script does the following operations:
- Get data from LOCAL or FTP
- Parse Config file
- Parse min/daily files
- Add datapoints to influxDB
After that you can create fancy dashboards for grafana and monitor your PV-System. (my simple dashboard is in this repository under docs/grafana.json
)
- Set Environment variables (e.g. create a .env file):
# SOLAR-LOG SOLAR_LOG_NAME="PV-System" DIRECTORY= # if you want to use local files VERBOSE=true # verbose helps to debug the application # INFLUXDB INFLUXDB_HOST=influxdb INFLUXDB_DB=solarlog INFLUXDB_USERNAME= INFLUXDB_PASSWORD= INFLUXDB_DB= # FTP FTP_HOST= FTP_USERNAME= FTP_PASSWORD= FTP_DIRECTORY= FTP_MONITOR_FOR_CHANGES= # if you want to monitor the dir for changes
- Start Docker containers:
docker-compose up -d
- Run Grafana, add influxdb as a new datasource and import the dashboard under
docs/grafana.json
# Run tests
./bin/entrypoint test
# Start application
./bin/entrypoint
Use with caution! If you find any issues or improvements feel free to add pull requests or an issue!