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!
Archived Forum |
|
Noob question: How to post to emoncms.org from raspi, data in text document.Submitted by Thomashamka on Fri, 20/11/2015 - 03:59Hello, 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! » |
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
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
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.