I received a Netduino Plus from CanaKit on Monday and got cracking on writing a client application for ThingSpeak web services. The process took a solid day, but I really found the Netduino Forums helpful in getting started with this emerging platform.
Attached is the ThingSpeak Solution / ThingSpeakClient Project for Visual Studio. To get started, all you have to do is download, unzip, and open the "ThingSpeak.sln" file.
ThingSpeak.zip 82.55KB
125 downloads
For my project, I connected the output of a photo resistor to an analog pin on the Netduino Plus. I read the value every 30 seconds and update a ThingSpeak Channel. I also check the value to see if it's "high" or not. If it's high (above 500), I update my channel status with, "Someone is in your room!!!"
ThingSpeak is an API to allow for sensor data logging, message brokering, location tracking, and connecting devices together. We are under Beta, but we will release soon - next week is my hope. The API will also be on GitGub so you can run the web service locally. If anyone would like to try it, just send me a message.
I have posted a full tutorial on how I completed the project. Most of you are going to have a good sense already on how to connect the Netduino to the PC, setup the SDK, configure the network settings, but I wanted to document the process and have a record for what I learned. Maybe it will save someone some time when they are first getting started.
Here is the tutorial on the ThingSpeak Community site for getting started with the Netduino Plus, sending HTTP POSTs to web service, and using the ThingSpeak API.
If anyone gets to test this code, let me know. I am interested in seeing what you come up with and the results that you see.
ThingSpeak Client and Netduino Plus Project and Tutorial
Started by ThingSpeak, Jan 27 2011 06:42 AM
6 replies to this topic
#2
Posted 27 January 2011 - 08:45 AM
Cool! A lot of people have been using Pachube, so this will be a great addition. Your tutorial will hopefully make it easy to get started with ThingSpeak too.
I really like the fact that you're building a locally-hostable web service. I assume that you're doing this as OSS since you're hosting at GitHub.
Looking forward to the next sample,
Chris
#3
Posted 28 January 2011 - 09:07 PM
Thanks Chris for the reply.
I think new people can follow this tutorial to get started pretty quickly. I struggled at first with MFDeploy and setting the IP and getting the Visual Studio setup. After I got over those hurdles, the coding the N+ is pretty straight forward and powerful using C#. I am more of a web service guy...
We just added a Twitter proxy app to ThingSpeak. So you can send Tweets by sending an HTTP POST to us and we handle the OAuth part. With this app and for what we have planned there will be a lot more to offer than just sensor logging. And, the API will be open source so users can setup a transaction system on their private network and fork from our development.
We can still take about 12 beta tester before we launch if anyone else is interested. We had 60 sign ups yesterday alone.
Cheers,
Hans
#4
Posted 19 February 2011 - 11:14 PM
I have added a front-end to my original Netduino Plus project using jQuery. It highlights the ThingSpeak status message feature on top of data logging. Everything is documented if you want to try this out for yourself.
http://iamshadowlord...for-things.html
http://community.thi...and-thingspeak/
Let me know what you come up with...
Hans
#5
Posted 05 July 2011 - 05:25 PM
This is a cool post -- I just got started using ThingSpeak and wired this up using Powershell and my Wi-Fi thermostat.
http://myblog4fun.co...thermostat.aspx
http://myblog4fun.co...thinkspeak.aspx
Now that Google is retiring Google PowerMeter, it would be nice if ThingSpeak supported receiving the same type of data.
http://myblog4fun.co...powermeter.aspx
http://myblog4fun.co...powermeter.aspx
My next task is to get my Netduino Plus running the code via C# and publishing to Pachube and ThingSpeak.
#6
Posted 09 August 2011 - 03:59 PM
Thanks for posting about your Thermostat project. It is really cool (and hot on occasion). We have added your project to our blog. Enjoy!
http://community.thi...-to-thingspeak/
#7
Posted 10 August 2011 - 10:51 PM
I feel a bit like Grog the caveman!...I started to work with ThingSpeak and was just getting back to it today.
Many thanks for posting here...Grog won't be reinventing the wheel! :-)
Your posts are very polished as well as interesting
Thanks
Terry
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users