Daniel,

I cannot answer why the Emoncms - site home works and the http://my_emoncms/emoncms/api/post did not. The /api/post is not something I have seen before.

This works for me for the local emoncms:

http://my_emoncms/emoncms/input/post?node=3&json={'flow_rate':'1011.0'}&time=1513094950&apikey=APIKEY

Also for the &time= portion I’ve only seen the time represented in epoch seconds (for the Input API)

you should be able to see examples at:

http://my_emoncms/emoncms/input/api

or at:

https://emoncms.org/site/api#input

 

EDIT: I just tried &time: with the ISO 8601 format (&time:2017-12-12T16:54:57) and it did work! Cool!

1 Like