Hello All,
Still fairly new to EmonCMS but keen to know if its possible to get energy usage data from the Current Cost Envir into EmonCMS via the cloud? I know someone did it by hacking the hardware/firmware of a CCEnvir but i was hoping it might be easy enough to knock up a script or plugin to suck the data from xivley or even better currentcost.com into a more customisable EmonCMS dashboard.
Be glad of any assistance :)
Thanks in advance!
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
Hello Bert, Im not very familiar with currentcost, but I know xively has a good API, Can you access your data on xively? How much data do you need to transfer? Emoncms's import functionality is a little limited at the moment, its something that I need to look at
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
Thanks Tristan,
Yes Xivleys API allows yuo to read data and write data. See here:
https://personal.xively.com/dev/docs/api/quick_reference/api_resources/
I think it would be really nice for Emon CMS to be able to pull data from data repositories such as Xivley as it would allow users to manipulate and display data exactly as they wish without limitation.
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
Nobody else got any clues on this? I thought that one of two ways would be ideal:
Option 1 - a standalone, scheduled perl script that ran on the emoncms server that used a READ json and pulled relevant data from personal.xively.com and then used a WRITE to post the data on emoncms
Option 2 - a plugin for emon cms that allowed you to input your Xivley API key and feed id and assign that to a feed in emoncms
Can anyone point me in the direction of an accomplished emoncms coder that might be interested in deving this for a fee?
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
I don't know how to accomplish this Bert, but I suspect you use a CurrentCost Envir. If you want to have a script to feed data from the Envir to Emoncms, then have a look here: http://openenergymonitor.org/emon/node/1418
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
Hi
I gave up using clouds and other stuff and did it with a tiny bananpi connected via the usb/serial cable to the current cost.
I found a running PERL script here but it has some flaws so I enhanced it and I'm using it for several IAMs at the moment.
I also use this script to send the data to pvoutput.org so that I have the data also there where my PV setup will send the data to. I always have the data on my emoncms installation and pvoutput.org :-)
Here is the script I've enhanced:
To use it for all sensors you have to add the sensorcount to the following line:
if ( ($meas >= $count_limit) && ($sensor_count0 > 0) && ($sensor_count1 > 0) && ($sensor_count2 > 0) && ($sensor_count4 > 0) ) {
You also have to add the missing sensors to the existing parameters in the link:
my $emon_url = "http://$host/input/post.json?apikey=$emoncmskey\&node=$node\&json={house_power:$avg_watts_sensor0,room_temp:$avg_temp,heatpump_power:$avg_watts_sensor1,buero_power:$avg_watts_sensor2,foodcenter_power:$avg_watts_sensor4}";
I think you will get it :-)
It's working here: http://swiss-solar-log.ch:85/firefox/Hausverbra
[Duplicate post deleted. Please read this. Moderator - RW]
Re: Pull data from my.currentcost.com or xivley.com into EmonCMS
@firefox7158
Thanks! that is a solid looking script. Appreciate you sharing it here. I will keep this bookmarked in my list of tools to try if my cloud solution fails to get off the ground!