Noob question: How to post to emoncms.org from raspi, data in text document.

Hello,

I would like to ask how to post to emoncms.org? I am using ubuntu mate and I have an text/csv document with data in it.

I am not using any of the sold items, just that text document. Any ideas / tips / points to examples?

 

Thanks alot!

Larsjo's picture

Re: Noob question: How to post to emoncms.org from raspi, data in text document.

Login to emoncms and take a look under api help

Thomashamka's picture

Re: Noob question: How to post to emoncms.org from raspi, data in text document.

What would be the best one to start at? Those are not very helpful to start with. Can't get the hang of these, as english isn't my native language.

 

http://emoncms.org/input/api this one?

 

Thanks

Larsjo's picture

Re: Noob question: How to post to emoncms.org from raspi, data in text document.

Yes that's the one.

 

http://emoncms.org/input/post.json?json={power:200}&apikey="xxxxxapi-key-herexxxxxxxx"

will give you an input Power = 200

 

So you have to make a script that snips the data from your file and puts out the http link.

 

If you look into some of the files for Arduino, you can see how it's done.

Comment viewing options

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