How to post data to EmonPi/EmonHub using REST API ?

Hello,

This may look like a silly question but... I can't get data posted using REST API to appear in Nodes and Feed of my EmonPi :-(

I used to post data using a REST call looking like this :

http://myemoncms/emoncms/input/post.json?node=40&apikey=myapikey&json={"humidity": 50.3}

Is there still a REST call based on a "GET" which allows posting data with named values ?

Thanks.

JS

jsroques's picture

Re: How to post data to EmonPi/EmonHub using REST API ?

Hello again,

So, as I understood it, there is no more "input" module in EmonPi to keep writes to a low level. So I can't use the GET call anymore. I am tryng to use the node POST call but I can't figure out how the pass on my emoncms key. I could not find any documentation on this.

Could someone tell me how I should pass the key ?

Thanks.

JS

jsroques's picture

Re: How to post data to EmonPi/EmonHub using REST API ?

Ok... I did find out.

It is just as simple as for the GET : pass the key in the URL.

JS

Comment viewing options

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