Comments on Tracking Office Temperature with FEZ Cobra (user project) Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. 2017-06-29T15:49:46Z https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/feed/atom/ WordPress By: thingspeak thingspeak https://blogs.mathworks.com/iot/?p=492#comment-4138 2011-09-29T16:28:47Z 2011-09-29T16:28:47Z In reply to foxxjnm.

Thanks for providing the information for your excellent project!

]]>
By: foxxjnm foxxjnm https://blogs.mathworks.com/iot/?p=492#comment-4137 2011-09-29T16:27:32Z 2011-09-29T16:27:32Z The link to the entire project is on my download page: http://foxxjnm.wordpress.com/downloads/

]]>
By: foxxjnm foxxjnm https://blogs.mathworks.com/iot/?p=492#comment-4135 2011-09-29T15:53:02Z 2011-09-29T15:53:02Z In reply to Stefaan Vandevelde.

The part that talks to TS is very simple:
if (lastUpdate.Ticks < DateTime.Now.Subtract(new TimeSpan(0, 0, 300)).Ticks)
{

using (HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://api.thingspeak.com/update?key="+APIKey+"&field1=&quot; + t.GetTemperatureFahrenheit().ToString()))
{
using (HttpWebResponse res = (HttpWebResponse)req.GetResponse())
{
using (StreamReader sr = new StreamReader(res.GetResponseStream()))
{
response = sr.ReadToEnd();
if (response != "")
{
lastUpdate = DateTime.Now;
}
}
}
}

}

If you need more than this, or any explanation, please feel free to let me know.

]]>
By: Stefaan Vandevelde Stefaan Vandevelde https://blogs.mathworks.com/iot/?p=492#comment-4108 2011-09-28T15:13:14Z 2011-09-28T15:13:14Z I’d like do do something similar on the FEZ Cobra.
Would you share the code of the office temperature project ? (I’m only interested in the part that talks to ThingSpeak)

]]>