Getting a feed value at a particular time

Hello! Just a quick one... I have a Power to kWh/d feed. Can I use the feed model to extract the value of this feed on a particular day?

TrystanLea's picture

Re: Getting a feed value at a particular time

Your best bet is to extract a range like this

emoncms/feed/data.json?id=107&start=1389559032000&end=0&dp=0

where 1389559032000 = (unixtimestamp_now - (3600*24*7)) * 1000

TrystanLea's picture

Re: Getting a feed value at a particular time

a useful website for getting the current unixtimestamp http://www.unixtimestamp.com/index.php

Comment viewing options

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