Comments on: Tracking Office Temperature with FEZ Cobra (user project) https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/?s_tid=feedtopost Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. Thu, 29 Jun 2017 15:49:46 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: thingspeak https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/#comment-4138 Thu, 29 Sep 2011 16:28:47 +0000 https://blogs.mathworks.com/iot/?p=492#comment-4138 In reply to foxxjnm.

Thanks for providing the information for your excellent project!

]]>
By: foxxjnm https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/#comment-4137 Thu, 29 Sep 2011 16:27:32 +0000 https://blogs.mathworks.com/iot/?p=492#comment-4137 The link to the entire project is on my download page: http://foxxjnm.wordpress.com/downloads/

]]>
By: foxxjnm https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/#comment-4135 Thu, 29 Sep 2011 15:53:02 +0000 https://blogs.mathworks.com/iot/?p=492#comment-4135 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 https://blogs.mathworks.com/iot/2011/04/02/tracking-office-temperature-with-fez-cobra-user-project/#comment-4108 Wed, 28 Sep 2011 15:13:14 +0000 https://blogs.mathworks.com/iot/?p=492#comment-4108 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)

]]>