EMON CMS manual input entry time

Hi,

I'm refferring to the following example at Input Api Help page of Emoncms (http://localhost/emoncms/input/post.json?time=1395381734&node=1&csv=100,...),

It would be a great help if anybody can explain me the notation of the ''time=1395381734'' here I couldn't find any documentation about it.

Also when sending bulk data how do I set my very first data point to a specific time, basically in my case I set the device to send updates each 15 minutes and containing current values of each minute for previous 15 minutes. 

 

Thanks.

ukmoose's picture

Re: EMON CMS manual input entry time

It's the time as Unixtime or the number of seconds since 01 Jan 1970.

 

Schism's picture

Re: EMON CMS manual input entry time

The time is a UNIX timestamp - you can go to i.e. http://www.onlineconversion.com/unix_time.htm to convert a regular date/time, or do it programatically with almost anything (that has an internal clock).

chris8989's picture

Re: EMON CMS manual input entry time

Hi, Thanks for the reply.. I have another question. Can I use the bulk input method with unix timestamp ?

Basically I want to use following format to send the data which containing first parameter as the unixtime.

http://localhost/emoncms/input/bulk.json?data=[[0,10,250,100,20],[2,12,1437,3164],[10,10,252,80,21]]

 

http://localhost/emoncms/input/bulk.json?data=[[<unix_time>,10,250,100,20],[<unix_time>,12,1437,3164],[<unix_time>,10,252,80,21]]

 

 

Thanks.

ukmoose's picture

Re: EMON CMS manual input entry time

Why not test it in a browser?

you can use http://www.onlineconversion.com/unix_time.htm 

to generate three values for unixtime  in your example 

and the cut and paste  the entire address into  your web browser..

one thing you will  need  to add is the APIKey  you can find the APIKey  on the  api input help page  in emoncms

 

 

 

 

Comment viewing options

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