Giter Site home page Giter Site logo

deverton / fronius-pvoutput Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blackpaw/fronius-pvoutput

0.0 2.0 0.0 6 KB

Simple PHP Script for reading the Fronius inverter/meter values and pushing to pvputput.org

License: MIT License

PHP 100.00%

fronius-pvoutput's Introduction

fronius-pvoutput

Simple PHP Script for reading the Fronius inverter/meter values and pushing to pvputput.org

Uploads data from Fronius Solar Inverter to PVOutput.org. If you have a Fronius Smart Meter it will upload consumption data as well. Live Power and consumption values will be averaged between calls, avoiding anomalous spikes.

If a BOM weather station JSON url is provided, the current temperature will be posted as well (Australia only). The JSON url for the weather data can be got by:

  • Going to the weather station page for your area eg http://www.bom.gov.au/products/IDQ60901/IDQ60901.94575.shtml
  • Click on "Other Formats" (near the top right)
  • Copy the "JavaScript Object Notation format (JSON) in row-major order" link.
  • If desired, test it in a browser, you should get a nicely formatted json result.

Inspired by:

Thanks to:

  • bankstownbloke
  • bulletmark

Configuration

At a minimun the

  • $dataManagerIP
    IP of your Fronius Inverter
  • $pvOutputApiKEY
    API Key from pvoutput.org
  • $pvOutputSID
    Site Id from pvoutput.org

Need to be set.

The fronius.php script can be edited directly, but better to create a "config.php" file in the same directory as the script, this will be included automatically. A sample is displayed below with dummy values.

<?php
$dataManagerIP = "192.168.0.112";
$pvOutputApiKEY = "6eecca0f-e6f5-47d4-bc55-281e98f75e01";
$pvOutputSID = "12345";
// Archerfield
$weatherStationURL = "http://reg.bom.gov.au/fwo/IDQ60901/IDQ60901.94575.json";
$pvTimeszone = "Australia/Brisbane";
$logToCSV = false;
?>

The script should be invoked every 5 minutes - cron is perfect for this (on a linux system). A example crontab entry below.

*/5 * * * * /usr/bin/php /home/user1/fronius/fronius.php > /dev/null

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.