basestation getting data secuirly from EmonCMS

Please, advice on method of getting data from EmonCMS. Purpose is basestation request data and send it to Emon node.

Jérôme's picture

Re: basestation getting data secuirly from EmonCMS

Create dedicated private feed and read it from base via emoncms API ?

batulzii's picture

Re: basestation getting data secuirly from EmonCMS

Thanks for advice. Do you have detail information on how to do that..

ukmoose's picture

Re: basestation getting data secuirly from EmonCMS

  1. Log onto emoncms,
  2. Click on Feeds,
  3. Click on Feed API Help (top right).

 

batulzii's picture

Re: basestation getting data secuirly from EmonCMS

Thanks, Ukmoose

 

batulzii's picture

Re: basestation getting data secuirly from EmonCMS

http://emoncms.org/feed/data.json?id=30907&start=1end=2dp=  it returns. how to control start,end,dp?

ukmoose's picture

Re: basestation getting data secuirly from EmonCMS

start and end are the unixtime for the start and end

dp stands for the number of datapoints,

 

but as you said you wanted to end up sending it to a node I'm guessing you only want the last value, in which case use:

http://emoncms.org/feed/value.json?id=XXX

 

don't forget to also add your apikey "&apikey=APIKEY"

 

 

Comment viewing options

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