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:
Inspired by:
Thanks to:
At a minimun the
$dataManagerIP
$pvOutputApiKEY
$pvOutputSID
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