<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Climate Node &#8211; Squix &#8211; TechBlog</title>
	<atom:link href="https://blog.squix.org/tag/climate-node/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.squix.org</link>
	<description></description>
	<lastBuildDate>Thu, 09 Dec 2021 08:06:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
<site xmlns="com-wordpress:feed-additions:1">121913304</site>	<item>
		<title>ESP8266 Weather Station: Measuring Inside and Outside Temperature &#8211; Part 2</title>
		<link>https://blog.squix.org/2016/01/esp8266-weather-station-measuring.html</link>
					<comments>https://blog.squix.org/2016/01/esp8266-weather-station-measuring.html#comments</comments>
		
		<dc:creator><![CDATA[Daniel Eichhorn]]></dc:creator>
		<pubDate>Mon, 04 Jan 2016 20:16:00 +0000</pubDate>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[ESP8266-projects]]></category>
		<category><![CDATA[Climate Node]]></category>
		<category><![CDATA[DHT22]]></category>
		<category><![CDATA[thingspeak]]></category>
		<category><![CDATA[weather station]]></category>
		<guid isPermaLink="false">http://blog.squix.org/2016/01/04/esp8266-weather-station-measuring/</guid>

					<description><![CDATA[&#60;Measuring Inside and Outside Part 1 In Part 1 of this series you learned how to connect a DHT temperature/humidity sensor directly to your WeatherStation and to display the readings as an additional frame in the carousel rotation. In this second part I will show ... <p><a class="read-more btn btn-secondary" href="https://blog.squix.org/2016/01/esp8266-weather-station-measuring.html">Read More</a></p>]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;"><a href="https://blog.squix.org/2015/12/esp8266-weather-station-measuring-2.html"><strong>&lt;Measuring Inside and Outside Part 1</strong></a></div>
<div dir="ltr" style="text-align: left;"></div>
<div dir="ltr" style="text-align: left;">
<p>In Part 1 of this series you learned how to connect a DHT temperature/humidity sensor directly to your WeatherStation and to display the readings as an additional frame in the carousel rotation. In this second part I will show you how to setup a sensor node and post the readings to a free cloud service before fetching them on a WeatherStation (in another room) and displaying them there.<a name="more"></a></p>
<h3 style="text-align: left;">Requirements</h3>
<div>For the sensor node you&#8217;ll need:</div>
<div>
<ul style="text-align: left;">
<li><a href="https://www.banggood.com/custlink/KKmhNy2sgy" target="_blank" rel="noopener">NodeMCU ESP8266 module (or any other ESP8266)</a></li>
<li><a href="https://www.banggood.com/custlink/3vvEnRzn6J" target="_blank" rel="noopener">DHT22 sensor</a></li>
<li><a href="https://www.banggood.com/custlink/GKKhbYknBj" target="_blank" rel="noopener">3 female-female wires</a></li>
<li>USB power supply</li>
</ul>
<div>You can either order these items from Banggood, from <a href="https://blog.squix.org/product/weatherstation-kit-w-white-oled" target="_blank" rel="noopener">my own online shop</a> or if you life in the US from <a href="https://www.amazon.com/ESP8266-Starter-OLED-display-Arduino/dp/B01KE7BA3O/" target="_blank" rel="noopener">Amazon</a>. I assume that you have already a working <a href="https://blog.squix.org/product/weatherstation-kit-w-white-oled" target="_blank" rel="noopener">WeatherStation</a>.</div>
</div>
<div></div>
<h3 style="text-align: left;">Wiring</h3>
<div>The climate node is relatively easy to wire. The DHT breakout board has only three connectors: GND (Ground), VCC (connect to 3.3V) and DAT which is the data line that we connect to pin D6 on the NodeMCU</div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="https://i0.wp.com/1.bp.blogspot.com/-vxVSenRtmxQ/VorT-YRIEFI/AAAAAAAAAio/JFnAujsi-Gk/s1600/ClimateNodeSketchWithDHT22_bb.png"><img data-recalc-dims="1" fetchpriority="high" decoding="async" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/01/ClimateNodeSketchWithDHT22_bb.png?resize=253%2C320&#038;ssl=1" width="253" height="320" border="0" /></a></div>
<div></div>
<h3 style="text-align: left;">Thingspeak</h3>
<div>Thingspeak is a free cloud service which allows you to easily post (sensor) data, to visualize it and to retrieve it again using simple HTTP methods. I&#8217;d like to point out that you could also use Wunderground to store your climate data and it probably would be very easy to do as well. But I believe that for education purposes Thingspeak allows you more degrees of freedom. After all you could also send them read outs from a motion sensor or similar things. Thingspeak has some nice additional features which lets you program webhooks to trigger a push notification on your cell phone, etc.</div>
<div></div>
<div>So first of all you have to <b>sign up</b> for a (free) account on Thingspeak. Go to <a href="https://thingspeak.com/users/sign_up" target="_blank" rel="noopener">https://thingspeak.com/users/sign_up</a> and create the account. After you completed that process, log in to your new account and go to &#8220;My Channels&#8221;:</div>
<div></div>
<div></div>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="https://i0.wp.com/2.bp.blogspot.com/-StqAO0ixxjk/VorXASpwe9I/AAAAAAAAAi0/JaJxObS3kOw/s1600/Thingspeak1.png"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/01/Thingspeak1.png?resize=320%2C105&#038;ssl=1" width="320" height="105" border="0" /></a></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div>There you click on the &#8220;New Channel&#8221; button. Then fill out the form:</div>
<div></div>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="https://i0.wp.com/2.bp.blogspot.com/-FVYgOL9_6FY/VorXel6MR2I/AAAAAAAAAi8/BqXa3vz3Dds/s1600/Thingspeak2.png"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/01/Thingspeak2.png?resize=320%2C201&#038;ssl=1" width="320" height="201" border="0" /></a></div>
<div></div>
<div>Explanation: The name just helps you to recognize your channel among many others that you might create over time. The important part are the field names. This name will later show up in the chart and with this I&#8217;m telling Thingspeak that the value I&#8217;m sending later with the field1 attribute should be displayed as Temperature.</div>
<div></div>
<div>Now navigate to the API Keys tab and note the two generated keys:</div>
<div></div>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="https://i0.wp.com/1.bp.blogspot.com/-ipsIdgu8QN4/VorZhso6VpI/AAAAAAAAAjQ/XRvuzExl4Wk/s1600/Thingspeak4.png"><img data-recalc-dims="1" loading="lazy" decoding="async" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/01/Thingspeak4.png?resize=298%2C320&#038;ssl=1" width="298" height="320" border="0" /></a></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<div>The first one will allow you to write to this channel in Thingspeak and the second one will allow you to read from it later. Treat them as secrets and with care. Others might be able to spam your channel or to &#8220;steal&#8221; your data. (BTW: I regenerated the keys after taking a screenshot;-)). We will use these keys soon enough&#8230; Also note the channel ID on top of the screen&#8230;</div>
<div></div>
<h3 style="text-align: left;">Programming the Climate Node</h3>
<div>Now we have all ingredients to post the climate data to Thingspeak. We just have to program the ESP8266 accordingly. Go to <a href="https://github.com/squix78/esp8266-dht-thingspeak-logger" target="_blank" rel="noopener">https://github.com/squix78/esp8266-dht-thingspeak-logger</a> and download the code as Zip file (or do a git check out, if you know what that means).</div>
<div>Now adapt the settings to your needs:</div>
<div></div>
<div></div>
<div></div>
<div>
<p>Especially the <b>Wifi settings and the Thingspeak API key </b>have to be updated. Take the Write API key from the previous step here. For testing you might also play with the update interval which is a number in seconds. Please be aware that the minimum update interval in Thingspeak is about 15 seconds. Below your updates will just be ignored.Now flash your program to the Node MCU and your Climate node should start logging. To check the results you can go back to Thingspeak and look at the charts:</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="https://i0.wp.com/4.bp.blogspot.com/-dQoWgnfSoOE/Vorc2r4TsfI/AAAAAAAAAjc/dAXpgPG8R2s/s1600/Thingspeak5.png"><img data-recalc-dims="1" loading="lazy" decoding="async" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/01/Thingspeak5.png?resize=230%2C320&#038;ssl=1" width="230" height="320" border="0" /></a></div>
<div class="separator" style="clear: both; text-align: center;"></div>
<h3 style="text-align: left;">Displaying the data on the WeatherStation</h3>
</div>
<div>Now to the real easy part. Like a cook in the TV kitchen I have prepared this step a long time ago (possibly to your confusion;-)). The WeatherStationDemo that comes as an example with the WeatherStation library already contains everything needed to display your own Climate Node data:</div>
<div></div>
<div></div>
<div></div>
<div>
<p>Look for these lines in the demo and replace the read api key and the channel ID with the ones you got in the Thingspeak step. If you didn&#8217;t remove the climate node section in your weather station code you just need to flash your WeatherStation with the updated API key and channel ID and voilà: you just successfully sent the temperature and humidity data from the next room once around the world just to display it on a tiny OLED display. I know some people (including my wife) who wouldn&#8217;t be impressed by that at all;-).<b>Explanation: </b>This last step might have been a bit confusing, since the tv cook had prepared everything hours before the TV show actually started, so here the summary in slow motion: the Weather Station library now comes with a class called Thingspeak client which does all the leg work. You pass in the channel id and API key and it downloads a JSON object and picks out just the last data set, since we are currently interested only in that. Have a look at <a href="https://github.com/ThingPulse/esp8266-weather-station/blob/master/src/ThingspeakClient.cpp" target="_blank" rel="noopener">https://github.com/ThingPulse/esp8266-weather-station/blob/master/src/ThingspeakClient.cpp</a> to understand what happens and maybe adapt/ extend it to your needs. Why not display the chart of the last 24 hours on the OLED display?</p>
<p><a href="https://blog.squix.org/2015/12/esp8266-weather-station-measuring-2.html"><strong>&lt;Measuring Inside and Outside Part 1</strong></a></p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.squix.org/2016/01/esp8266-weather-station-measuring.html/feed</wfw:commentRss>
			<slash:comments>20</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12</post-id>	</item>
	</channel>
</rss>
