This is a script for automatically uploading live data to PVoutput.org for people who use a Current Cost meter for monitoring and recording output from Solar PV systems. It is formatted as a plugboard applet and should be loaded into /etc/plugboard. It also requires a file called CumulativeKwH to be present in the same directory which should contain this single digit 0 (zero) on startup. This file is automatically zeroed again each evening to start the following day with a zero accumulated production figure.
PVoutputApplet.lua
(2.76 KB)
Member for
15 years 10 monthsBloody marvalous.
Spot on exactly what i wanted and required after much head scratching i figured out why it wasnt up loading to pvoutput or registering anything on file...
I was trying to set it up at 10pm when it's dark-solar does not work or generate when its dark.
echo 0 >/etc/plugboard/CumulativeKwH
creates the reqd "data" file
:((
Member for
15 years 1 monthWhen Xively dies
I might end up having to use this again to get my solar output to pvoutput.org.
The powersave function could be tidied up by using:
file = io.open("/etc/plugboard/CumulativeKwH","w+")
file:write(tostring(CumulativeKwH))
file:close()
instead of:
local cmd = string.format("echo '%s'>/etc/plugboard/CumulativeKwH", CumulativeKwH)
os.execute(cmd)
I guess other stuff will get broken too when xively dies :-(