I was hoping to source some assistance in getting "Zon op Toon" working without the need for an expensive engineer to install extra hardware.
Most solar inverters have the ability to extract its usage already and export its data to external sites or locations. In my situation i am uploading all data to https://pvoutput.org/list.jsp?userid=15171 every 5 minutes and it looks like this:

PVOutput has a very rich API system which can be used to upload and retrieve data as well. Now would it not be awesome to run a script that runs every 5 minutes and updates Toon's internals with the solar generation details as if it would using the official zwave meter that is installed by the engineer.
I have created a simple script that can be used to extract the information from PVOutput but lack the skills to get the information in Toon's (RRD) databases. And this is where i would need the community assistance. This is the script that i have created which runs locally on Toon:
Code: Select all
#!/bin/sh
CURL_OPT1=/tmp/pvoutput1
SYSTEM_ID1=13033
PVOUTPUT_APIKEY=1234567890
TIMEZONE=Europe/Amsterdam
echo "-d \"d=`env TZ=$TIMEZONE date +"%Y%m%d"`\"" > $CURL_OPT1
echo "-d \"t=`env TZ=$TIMEZONE date +"%H:%M"`\"" >> $CURL_OPT1
echo "--header \"X-Pvoutput-Apikey: $PVOUTPUT_APIKEY\" " >> $CURL_OPT1
echo "--header \"X-Pvoutput-SystemId: $SYSTEM_ID1\" " >> $CURL_OPT1
echo "--url https://pvoutput.org/service/r2/getstatus.jsp" >> $CURL_OPT1
curl -q -s -K $CURL_OPT1
echo -e "\n"
Date,Time,Energy,Power,Energy Used,Power Used,???,Temperature,Voltage
20170805,22:45,11930,0,9700,850,NaN,15.6,0.0
The fields would translate to:
Energy = Wh generated so far (11,930 kWh)
Power = Instant power generated (0 W)
EnergyUsed = Wh consumed so far (9,700 kWh)
PowerUsed = Instant power consumed (850 W)
NaN = Don't know this is will have to look it up
Temperature = This is taken from WeatherUnderground by PVOutput
Voltage = This is Inverter output Voltage to the power-net
Since i also upload my P1 meter information to PVOutput consumption fields are populated. This information is not so relevant here since it can be taken from Toon locally.
Anyone here that would give it a try to get this information injected in to the Toon local system so that solar power (Zon op Toon) information is populated?
Cheers!