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?
»
Archived Forum |
|
Getting a feed value at a particular timeSubmitted by mdbigg on Fri, 17/01/2014 - 10:17Hello! 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? » |
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
Re: Getting a feed value at a particular time
a useful website for getting the current unixtimestamp http://www.unixtimestamp.com/index.php