Giter Club home page Giter Club logo

fronius-to-influx's Introduction

fronius-to-influx

Collect Fronius inverter data and save in Influxdb for Grafana. This tool collects the most basic Fronius inverter data for a most basic fotovoltaic setup. If your installation is more sophisticated, then probably some extra work will be reqired.

fronius endpoints

This tool collects data from one or many of the three endpoints below. Endpoints that can be used (adjust DeviceId accordingly):

http://<fronius_ip>/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DataCollection=3PInverterData&DeviceId=1
http://<fronius_ip>/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DataCollection=CommonInverterData&DeviceId=1
http://<fronius_ip>/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DataCollection=MinMaxInverterData&DeviceId=1

install reqirements

To install requirements:

pip install -r requirements.txt

run "production" environment

To run this tool with real inverter data, first copy the src/dev.py file to src/prod.py and adjust configuration (IP addresses, port numbers, user names and passwords, list of endpoints):

vim src/prod.py 

Then run:

python src/prod.py

install dev environment

To install dev environment:

pip install -r requirements/dev.txt

mock fronius server

To run mock fronius server:

export FLASK_APP=json_server
flask run

run "development" environment

For development, I used this Grafana + Influx Docker image: https://hub.docker.com/r/philhawthorne/docker-influxdb-grafana/

Edit the dev.py file and adjust accordingly. Then run:

python src/dev.py

grafana dashboards

I put my dashboards in grafana_dashboards directory. Feel free to use them.

Screenshot Screenshot2 Screenshot3 Screenshot4

fronius-to-influx's People

Contributors

dependabot[bot] avatar szymi- avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.