I have a Solutronic PV-inverter that i collect data from via a small shell script on my RPi. I would like to feed these data into my local emonCMS on the RPi.
I am currently feeding the data to PVoutput.org from a shell script via a curl string like:
curl -d "d=`date '+%Y%m%d'`" -d "t=`date '+%H:%M'`" \ -d "v1=$eg1" -d "v2=$pg1" -d "v6=$udc" \ -H "X-Pvoutput-Apikey: xxxxxxxxxxxxxxxxxxyyyyyyyyyyyzzzzzzzzzzz" \ -H "X-Pvoutput-SystemId: 4950" http://pvoutput.org/service/r2/addstatus.jsp
$eg1 is energy today until now
$pg1 is power generated
$udc is dc voltage.
The script is run every 5 mins from cron to update pvoutput.org with live data.
I have seached on this site but can't find definitions on how i could use a similar curl (or other) string from a shell script to feed the same data into my local emonCMS. Anyone that can point me i the right direction.
Re: Howto feed data from my inverter to local emoncms
Read the wrong documentation - it was for emoncms version 2. That's why I could not get it to work.
I have got it right now and data is parsed to emoncms through this bash string:
Re: Howto feed data from my inverter to local emoncms
Excellent good work, good to see it used this way, Im working on improving the documentation so hopefully things should be clearer in the future
Re: Howto feed data from my inverter to local emoncms
Yes it is nice to get everything working even for a arduino newbie like me. Right now i have one Funky sensor delivering temp data to my RFM12Pi and my solar data is injected via curl from my bash script.
Thank you for a good emoncms
Re: Howto feed data from my inverter to local emoncms
I send some data to Emoncms using shell script and MQTT.
SAMPLE (Emoncms server Raspberry-Pi data):
RX goes to NODES
TX goes to INPUT/Feeds (I did a hacked version of EmonHubMqttInterfacer to do this directly)
Re: Howto feed data from my inverter to local emoncms
You might want to give Node-RED a try, now that it's included in the latest Image [1] and the Raspbian Jessie repositories. There's a first glimpse at what can be achieved at [2].
Together with the Johnny5-node from [3], driving an Arduino (via Firmata) is straightforward.
[1] http://openenergymonitor.org/emon/node/11799
[2] http://openenergymonitor.blogspot.de/2015/10/emonpi-nodered-and-mqtt.html
[3] http://flows.nodered.org/node/node-red-contrib-gpio