Pulling values from Emoncms

Im looking to get the most recent value of a feed with its update/time stamp.

This shows the most recent value:

http://greencliff-farm.dyndns.org/emoncms/feed/value.json?apikey=1d3c7f0...

whereas this shows all the data:

http://greencliff-farm.dyndns.org/emoncms/feed/data.json?apikey=1d3c7f09...

 

any chance someone can show me what to use to display just the most recent value with its timestamp.

Cheers!

ukmoose's picture

Re: Pulling values from Emoncms

Have a look at 

http://openenergymonitor.org/emon/node/1275

You cant do exactly what you want to do without some scripting

TrystanLea's picture

Re: Pulling values from Emoncms

You could use feed/list.json to get all feed values and timestamps or:

feed/get?id=1&field=time

and 

feed/get?id=1&field=value

It would probably be good to have another api entry to return the value and timestamp in unix time.

Comment viewing options

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