Giter Site home page Giter Site logo

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

fronius-pvoutput's People

Contributors

blackpaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fronius-pvoutput's Issues

Will not work correctly with the new Fronius gen24 inverter

Will not work correctly with the new Fronius gen24 inverter

Error on command line

PHP Warning: Undefined array key "EnergyReal_WAC_Sum_Consumed" in fronius.php on line 74
PHP Warning: Undefined array key "Voltage_AC_Phase_1" in ronius.php on line 75

BOM weather `json` URL's are returning 403

When running the script, it returns a 403 error when attempting to poll the BOM JOSN weather data. As per your README, it does work to launch that URL in browser, but it does not work when ran through the script.

PHP Warning: file_get_contents(http://www.bom.gov.au/fwo/IDW60901/IDW60901.94608.json): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

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.