{"id":252,"date":"2017-06-22T14:11:31","date_gmt":"2017-06-22T14:11:31","guid":{"rendered":"https:\/\/test.warrensoft.co.uk\/wp-test\/home-hub\/?p=252"},"modified":"2018-12-08T07:29:27","modified_gmt":"2018-12-08T07:29:27","slug":"controller-meteorology-installation","status":"publish","type":"post","link":"https:\/\/test.warrensoft.co.uk\/wp-test\/2017\/06\/22\/controller-meteorology-installation\/","title":{"rendered":"Controller &#8211; Meteorology Installation"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>There are a couple of prerequisites that we need:<\/p>\n<pre>sudo pip install python-dateutil\r\n\r\nsudo apt-get install python-lxml\r\n\r\n<\/pre>\n<p>If you get an error installing dateutil, try again after removing and replacing pip :<\/p>\n<pre>sudo apt-get remove python-pip<\/pre>\n<pre>sudo easy_install pip<\/pre>\n<p>Then we can fetch the sensor helper:<\/p>\n<pre>wget -P \/usr\/local\/bin\/code\/controller\/sensor_helpers http:\/\/www.warrensoft.co.uk\/home-hub\/code\/controller\/sensor_helpers\/meteorology.py<\/pre>\n<p>uncomment the meteorology sensor in \/sensor_helpers\/__init__.py<\/p>\n<p>and restart the controller.<\/p>\n<p>Add a new sensor via the Organisation option of the website, and populate the SensorFunction as discussed previously. When displayed in Current Values the reading will be time-stamped with the applicable time:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-579\" src=\"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-content\/uploads\/2017\/06\/FutureCurrentValues-300x190.png\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-content\/uploads\/2017\/06\/FutureCurrentValues-300x190.png 300w, https:\/\/test.warrensoft.co.uk\/wp-test\/wp-content\/uploads\/2017\/06\/FutureCurrentValues.png 427w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The meteorology facilities give you a wide range of possibilities for implementing intelligent control algorithms within your hub. Next we will look at an alternative hardware sensor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; There are a couple of prerequisites that we need: sudo pip install python-dateutil sudo apt-get install python-lxml If you get an error installing dateutil, try again after removing and replacing pip : sudo apt-get remove python-pip sudo easy_install pip Then we can fetch the sensor helper: wget -P \/usr\/local\/bin\/code\/controller\/sensor_helpers http:\/\/www.warrensoft.co.uk\/home-hub\/code\/controller\/sensor_helpers\/meteorology.py uncomment the meteorology sensor &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/test.warrensoft.co.uk\/wp-test\/2017\/06\/22\/controller-meteorology-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Controller &#8211; Meteorology Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-hub-software-controller"],"_links":{"self":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":11,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/252\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}