{"id":1325,"date":"2013-09-24T22:00:02","date_gmt":"2013-09-24T20:00:02","guid":{"rendered":"http:\/\/www.unicoda.com\/?p=1325"},"modified":"2013-09-26T19:18:49","modified_gmt":"2013-09-26T17:18:49","slug":"arduitemp-temperature-arduino-lolshield","status":"publish","type":"post","link":"https:\/\/www.unicoda.com\/?p=1325","title":{"rendered":"ArduiTemp: Temperature, Arduino, LOLShield"},"content":{"rendered":"<p><a href=\"https:\/\/www.unicoda.com\/wp-content\/uploads\/2013\/09\/DSC_0241.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1330\" alt=\"ArduiTemp\" src=\"https:\/\/www.unicoda.com\/wp-content\/uploads\/2013\/09\/DSC_0241-1024x682.jpg\" width=\"584\" height=\"388\" srcset=\"https:\/\/www.unicoda.com\/wp-content\/uploads\/2013\/09\/DSC_0241-1024x682.jpg 1024w, https:\/\/www.unicoda.com\/wp-content\/uploads\/2013\/09\/DSC_0241-300x200.jpg 300w, https:\/\/www.unicoda.com\/wp-content\/uploads\/2013\/09\/DSC_0241-450x300.jpg 450w\" sizes=\"auto, (max-width: 584px) 85vw, 584px\" \/><\/a>Yesterday, an idea just jumped in my mind. I was thinking about using my arduino and my <a href=\"http:\/\/jimmieprodgers.com\/kits\/lolshield\/\">LOLShield<\/a> to display the local temperature. I tried to figure out how to achieve this the whole day. So I imagined a simple program. First, it will need to find the weather of a given city by requesting an url. Then, parse the information to extract temperature and finally, generate the code to turn on the right leds. The hackaton could begin.<\/p>\n<p>I started digging the problem of compiling my code without any IDE, I found some Makefile but didn&rsquo;t manage to make them work correctly. There was always something wrong. Finally, I discovered <a href=\"https:\/\/github.com\/amperka\/ino\">Ino<\/a>, installed it et tested it with a sample code for the LOLShield. It compiled, uploaded the code: it worked well. I then search for a correct weather API with up to date data. I tested some and found <a href=\"http:\/\/www.wunderground.com\/weather\/api\/\">wundergroud API<\/a>, which corresponded to my need.<\/p>\n<p>I then wrote the program I imagined during the day. I hadn&rsquo;t encounter any specific problem during this step. I used NodeJs and request to perform retrieve data from the API and generate the code to compile for the arduino.<\/p>\n<p>You can find this quick project on my github account under the name <a href=\"https:\/\/github.com\/vvision\/ArduiTemp\">ArduiTemp<\/a>. It was rewarding managing to produce a working solution in a small amount of time. Even though, I did not manage to use a simple Makefile, it would be interesting to write a correct Makefile from scratch. I think Ino source code could be helpful to achieve this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, an idea just jumped in my mind. I was thinking about using my arduino and my LOLShield to display the local temperature. I tried to figure out how to achieve this the whole day. So I imagined a simple program. First, it will need to find the weather of a given city by requesting &hellip; <a href=\"https:\/\/www.unicoda.com\/?p=1325\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;ArduiTemp: Temperature, Arduino, LOLShield&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,126],"tags":[238,135,51,27,136],"class_list":["post-1325","post","type-post","status-publish","format-standard","hentry","category-arduino","category-code","category-logiciellibre","tag-arduino","tag-ino","tag-lol-shield","tag-nodejs","tag-temperature"],"_links":{"self":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1325"}],"version-history":[{"count":8,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions"}],"predecessor-version":[{"id":2351,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions\/2351"}],"wp:attachment":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}