How to specify different datastream in

 Hi, 

 can someone point me to a way of specifying multiple datastreams when sending feeds to pachube. E.g. using https://github.com/openenergymonitor/NanodeRF/blob/master/nanodeRF_ctonly_pachube/nanodeRF_ctonly_pachube.pde as an example, it works for me, but I'm not sure how I direct emontx voltage for example to one datastream or feed ID, and the power measurement to another ID etc.

thanks a lot for any pointers.

Paul Reed's picture

Re: How to specify different datastream in

I'm not as good with strings as most of the guys here, but from what I see, the Pachube 'send' string only has only one datastream at the moment called 'power', so you need to add other datastreams to the string, something like;

str.reset();
str.print("power,");
str.println(emontx.ct1);
str.print("voltage,");  // voltage is the feed ID
str.println(volts);     // volts could be your variable which holds the current voltage
str.print("temp,");   //temp is the feed ID
str.println(temp);     // temp could be your variable which holds the current temperature
 
Note that str.print has been replaced by str.println in places, to indicate to Pachube that they are seperate datastream.
 
Fortunately, Pachube has a new debug screen, so if you have any problems with it not working - check the debug screen first!
 
I'm not using this sketch, but my multiple Datastream feed is at https://pachube.com/feeds/34843 and my feeds are called sd1, sd2, sd3 and so on.
 
Please let me know if it works!

 

EnergyRnR's picture

Re: How to specify different datastream in

 Paul,

 thanks a lot - sorted. Really appreciate it.

Eamonn

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.