{"id":7365,"date":"2014-01-02T09:01:16","date_gmt":"2014-01-02T09:01:16","guid":{"rendered":"http:\/\/178.62.14.192\/?p=7365"},"modified":"2014-01-02T09:01:16","modified_gmt":"2014-01-02T09:01:16","slug":"use-flask-on-the-raspberrypi-to-make-an-internet-controlled-lamp","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=7365","title":{"rendered":"Use Flask on the #RaspberryPi to make an internet-controlled lamp"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"https:\/\/i0.wp.com\/jack.minardi.org\/static\/images\/lamp\/finished.jpg?resize=560%2C420\" width=\"560\" height=\"420\" \/><\/p>\n<p>Jack Minardi has hacked into a lamp remote control with his Pi and used the Flask Python framework to expose the control to the internet.<\/p>\n<p><a href=\"http:\/\/jack.minardi.org\/raspberry_pi\/make-an-internet-controlled-lamp-with-a-raspberry-pi-and-flask\/\">Read more here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jack Minardi has hacked into a lamp remote control with his Pi and used the Flask Python framework to expose the control to the internet. Read more here<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22,25,26,50],"tags":[],"class_list":["post-7365","post","type-post","status-publish","format-standard","hentry","category-geeky-techiness","category-home-automation","category-internet-of-things","category-making"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Jack Minardi has hacked into a lamp remote control with his Pi and used the Flask Python framework to expose the control to the internet. Read more hereRead more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-02T09:01:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Use Flask on the #RaspberryPi to make an internet-controlled lamp\",\"datePublished\":\"2014-01-02T09:01:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\"},\"wordCount\":38,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage\"},\"thumbnailUrl\":\"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg\",\"articleSection\":[\"Geeky Techiness\",\"Home automation\",\"Internet of things\",\"Making\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\",\"name\":\"Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage\"},\"thumbnailUrl\":\"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg\",\"datePublished\":\"2014-01-02T09:01:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=7365\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage\",\"url\":\"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg\",\"contentUrl\":\"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=7365#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use Flask on the #RaspberryPi to make an internet-controlled lamp\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=7365","og_locale":"en_US","og_type":"article","og_title":"Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod","og_description":"Jack Minardi has hacked into a lamp remote control with his Pi and used the Flask Python framework to expose the control to the internet. Read more hereRead more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=7365","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2014-01-02T09:01:16+00:00","og_image":[{"url":"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Use Flask on the #RaspberryPi to make an internet-controlled lamp","datePublished":"2014-01-02T09:01:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365"},"wordCount":38,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage"},"thumbnailUrl":"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg","articleSection":["Geeky Techiness","Home automation","Internet of things","Making"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=7365#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365","url":"https:\/\/www.recantha.co.uk\/blog\/?p=7365","name":"Use Flask on the #RaspberryPi to make an internet-controlled lamp - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage"},"thumbnailUrl":"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg","datePublished":"2014-01-02T09:01:16+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=7365"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#primaryimage","url":"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg","contentUrl":"http:\/\/jack.minardi.org\/static\/images\/lamp\/finished.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=7365#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Use Flask on the #RaspberryPi to make an internet-controlled lamp"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-1UN","jetpack-related-posts":[{"id":12330,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=12330","url_meta":{"origin":7365,"position":0},"title":"Raspberry Pi web server using Python\/Flask","author":"Michael Horne","date":"2 April 2015","format":false,"excerpt":"Here's a good Instructable on getting your Pi set-up to act as a web server. It uses Python and a library called Flask in a script which creates the server on-the-fly. This is an excellent introduction to Flask which can be used, for example, to create a web interface to\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn.instructables.com\/FFR\/PZRE\/I7NL2LZF\/FFRPZREI7NL2LZF.MEDIUM.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn.instructables.com\/FFR\/PZRE\/I7NL2LZF\/FFRPZREI7NL2LZF.MEDIUM.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/cdn.instructables.com\/FFR\/PZRE\/I7NL2LZF\/FFRPZREI7NL2LZF.MEDIUM.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":12512,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=12512","url_meta":{"origin":7365,"position":1},"title":"IoT Python app with a Raspberry Pi and Bluemix","author":"Michael Horne","date":"3 May 2015","format":false,"excerpt":"Jeff Sloyer previously wrote a tutorial on creating a basic Flask app on the Pi. He has now expanded on this and written a new tutorial in which he creates an Internet of Things app using Python and an IBM system known as Bluemix. He's uploaded all the code necessary\u2026","rel":"","context":"In &quot;Internet of things&quot;","block_context":{"text":"Internet of things","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=26"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/developer.ibm.com\/bluemix\/wp-content\/uploads\/sites\/20\/2015\/04\/raspberrypidiagram.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":16211,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16211","url_meta":{"origin":7365,"position":2},"title":"Accio Raspberry Pi! Control a gesture-sensitive lamp with a Harry Potter wand","author":"Michael Horne","date":"11 January 2017","format":false,"excerpt":"This is the second Harry Potter project in as many days! See yesterday's Daily Prophet animated picture frame here. Sean O'Brien from Make has taken a Raspberry Pi and a Particle Internet Button\u00a0and embedded them inside a lamp base. Also used is a NoIR camera module and an infra-red LED\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/01\/RaspPotterOpener-1jb.jpg?fit=620%2C709&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/01\/RaspPotterOpener-1jb.jpg?fit=620%2C709&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/01\/RaspPotterOpener-1jb.jpg?fit=620%2C709&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3392,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3392","url_meta":{"origin":7365,"position":3},"title":"Python web application server on the #RaspberryPi with Flask","author":"Michael Horne","date":"4 April 2013","format":false,"excerpt":"James Jesudason has written a great blog post on setting up the Raspberry Pi as a web server using the Flask application framework. Read the tutorial here.","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16947,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16947","url_meta":{"origin":7365,"position":4},"title":"Create a weather forecasting lamp using a Raspberry Pi Zero","author":"Michael Horne","date":"20 June 2017","format":false,"excerpt":"\"The Modern Inventor\" has written a great Instructable which helps you to create your very own weather forecasting lamp called the Storm Glass. The lamp, which has been given the ability to simulate lightning, fog, rain and thunder using off-the-shelf parts is partly a glass tube and partly 3D-printed and\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/weather_lamp_header.jpg?fit=1024%2C575&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/weather_lamp_header.jpg?fit=1024%2C575&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/weather_lamp_header.jpg?fit=1024%2C575&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/weather_lamp_header.jpg?fit=1024%2C575&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":16937,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16937","url_meta":{"origin":7365,"position":5},"title":"Model lighting controller using a Raspberry Pi and loads of relays","author":"Michael Horne","date":"20 June 2017","format":false,"excerpt":"Mathieu Bonte has written a great Instructable in which he creates a model house and then wires up a Raspberry Pi to various lamps to light the model. In the Instructable, he takes you through wiring it all up, via relays so you can transfer it to a 'real' house\u2026","rel":"","context":"In &quot;Home automation&quot;","block_context":{"text":"Home automation","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=25"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/pi-house.jpg?fit=1024%2C687&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/pi-house.jpg?fit=1024%2C687&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/pi-house.jpg?fit=1024%2C687&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/06\/pi-house.jpg?fit=1024%2C687&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7365"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7365\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}