Skip to content
/ solar Public

Spring Boot app to pull data from the Fronius Solar API, persist to MySQL and display in Grafana. Includes solar forecast integration with Solcast.

Notifications You must be signed in to change notification settings

dmkeen/solar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar monitoring app

Monitors solar panel output using the Fronius inverter API and power consumption in realtime and persists the data to a MySQL database for display in Grafana.

  • Monitors instantaneous power generation and consumption
  • Monitors per-string power generation
  • Retrieves Solcast solar forecasts (https://solcast.com/)
  • Uploads actual generation to tune the Solcast forecast

Usage

Configure solar panel system in Solcast

Setup and run the app:

  • Build the application using Maven: mvn clean package
  • Install and run MySQL (https://www.mysql.com/ or https://mariadb.org/)
  • Setup the database using /src/main/resources/mysql/setup.sql (substitute your own passwords)
  • Configure properties in application.properties
    • app.inverter.host - hostname/IP of the inverter web API
    • app.solcast.api-key - your Solcast API key value
    • app.solcast.site-id - your Solcast site ID
    • spring.datasource.username - your MySQL app user
    • spring.datasource.password - your MySQL app user password
  • Run the application

To view the output, use Grafana:

  • Install and run Grafana
  • Configure the MySQL datasource
  • Import the Solar dashboard found in /src/main/resources/grafana/Solar.json

Sample output: Grafana dashboard

About

Spring Boot app to pull data from the Fronius Solar API, persist to MySQL and display in Grafana. Includes solar forecast integration with Solcast.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages