Hello
I'm trying to recover emoncms data with a python urllib2.urlopen() call.
The docs advise the api request for data is
http://192.168.1.64/emoncms/feed/data.json?id=0&start=&end=&dp=
But is doesn't specify the format of start and end, or what dp is.
I know start and end are unix timestamps, but don't know the format - a literal url showing today's time in the timestamp format would be very helpful.
Can anyone enlighten? Thank you.
(Running on a raspbery pi, timestore module, fresh install so I presume the current version although I don't know how to tell)
Re: emoncms json api
A Unix timestamp is a signed 32-bit integer represented as a text string of decimal digits, I believe dp is the number of data points.
You could always look at the PHP files in emoncms.