{"id":11185,"date":"2016-03-07T22:22:31","date_gmt":"2016-03-08T03:22:31","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=11185"},"modified":"2016-03-07T22:22:31","modified_gmt":"2016-03-08T03:22:31","slug":"wifi-controlled-thermostat","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/wifi-controlled-thermostat\/","title":{"rendered":"Wifi controlled thermostat"},"content":{"rendered":"<p>This <strong><a href=\"http:\/\/www.instructables.com\/id\/Web-Enabled-Home-Thermostat-and-Home-Automation-Hu\/\" target=\"_blank\">Instructable<\/a><\/strong>\u00a0describes how to build a wifi controlled thermostat that can be programmed over the internet as well as locally through a touchscreen TFT LCD display.<\/p>\n<div id=\"attachment_11187\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/03\/thermostat.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11187\" class=\"size-full wp-image-11187\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/03\/thermostat.png\" alt=\"Wifi controlled thermostat\" width=\"590\" height=\"392\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/03\/thermostat.png 590w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/03\/thermostat-580x385.png 580w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><p id=\"caption-attachment-11187\" class=\"wp-caption-text\">Wifi controlled thermostat<\/p><\/div>\n<blockquote><p>The system uses a Raspberry Pi as a central hub that serves web pages so I can control the thermostats from anywhere. The hub also handles all of the wireless communication over nRF24L01+ radio modules (I know I said \u201cWiFi,\u201d and the nRF24L01+ radio module isn&#8217;t technically WiFi, but more on that later), and maintains a MySQL database with the thermostat programming as well as any data logging I do. And finally, the hub runs two servers written in Python \u2013 one controls the thermostat (as an intermediary between the web-page and the thermostat) and the other handles data logging. I believe this could probably be done with the thermostats each serving its own simple web-page and sending data directly to the MySQL database. This would eliminate the need for the lighttpd web-server and the two python servers. But, I feel like doing this on the hub does provide the simplicity of a single web-site, and the python servers provide a lot of flexibility. Plus I don&#8217;t have to update the code on the thermostats whenever I want to make changes to these aspects.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This Instructable\u00a0describes how to build a wifi controlled thermostat that can be programmed over the internet as well as locally through a touchscreen TFT LCD display. The system uses a Raspberry Pi as a central hub that serves web pages so I can control the thermostats from anywhere. The hub also handles all of the wireless communication over nRF24L01+ radio modules (I know I said \u201cWiFi,\u201d and the nRF24L01+ radio module isn&#8217;t technically WiFi, but more on that later), and maintains a MySQL database with the thermostat programming as well as any data logging I do. And finally, the hub<\/p>\n","protected":false},"author":1,"featured_media":11187,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1044],"tags":[1046,1388],"class_list":["post-11185","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266","tag-esp8266-project","tag-wifi-controlled-thermostat"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/11185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=11185"}],"version-history":[{"count":1,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/11185\/revisions"}],"predecessor-version":[{"id":11188,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/11185\/revisions\/11188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/11187"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=11185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=11185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=11185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}