Getting a timestamp from "Daily" datatype feeds

Hello all,

I have various "Daily" datatype feeds which store my max PV output, max/min temperature each day etc.

When I use the feed model "get" function to return (for example) a maximum temperature and the time it occurred the model returns me the value and the time in Y-m-d H:i format. Is there any way I can get the time as a Unix timestamp at all?

 

Thanks!

TrystanLea's picture

Re: Getting a timestamp from "Daily" datatype feeds

Hello mdbigg: yes you can do this with feed/timevalue.json?id=

mdbigg's picture

Re: Getting a timestamp from "Daily" datatype feeds

Thanks - I hadn't updated to the latest version of emoncms from github

 

*slaps forehead*

Comment viewing options

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