{"id":468,"date":"2014-04-16T09:58:03","date_gmt":"2014-04-16T13:58:03","guid":{"rendered":"http:\/\/www.cloppermillweather.org\/blog\/?p=468"},"modified":"2014-04-16T09:58:03","modified_gmt":"2014-04-16T13:58:03","slug":"raspberry-pi-weather-station","status":"publish","type":"post","link":"https:\/\/www.cloppermillweather.org\/blog\/2014\/04\/16\/raspberry-pi-weather-station\/","title":{"rendered":"Raspberry Pi Weather Station"},"content":{"rendered":"<p>It took me long enough, but I finally moved my weather station software to the Raspberry Pi.\u00a0 I am happy to say that it is running smoothly, my weather database is updating, all the services I share my weather data with are receiving data, and my Web site is up to date.\u00a0 I set the software up to run as a service so that I can use the typical Linux tools for managing, starting, and stopping the software.\u00a0 This is no different than what I was doing on the prior server.\u00a0 I installed my logrotate scripts and verified that they run by hand, but haven&#8217;t conformed that the logs are rotating automatically yet.\u00a0 The log files need to grow a little more before I will see them being rotated.<\/p>\n<p>I also updated my logretriever software to accept several new command line parameters.\u00a0 Originally I had hard coded the server hostname, port, and the file name to store the retrieved data in.\u00a0 Now they can all be specified on the command line.\u00a0 I also added a usage\/help display when the parameters are specified incorrectly.\u00a0 The downside is that I used the commons cli jar file to do the heavy lifting for this functionality.\u00a0 That means a new dependency to run the software.<\/p>\n<p>I also made a few script updates.\u00a0 I had to change the scripts that run logretriever to use the new command line parameters.\u00a0 While I was in there I also modified the script that updates the weather data to use a loop rather than repeating the same commands multiple times.\u00a0 Not sure why I never made that change.\u00a0 It makes for less code to maintain, and also makes it easier to fine tune the script as far as the number of times to run and the delay between each run.<\/p>\n<p>It&#8217;s only been one day so far, but everything is working correctly.\u00a0 The updated software has been uploaded to the Web site.\u00a0 I will continue to monitor everything closely for the next week or so to make sure there are no issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It took me long enough, but I finally moved my weather station software to the Raspberry Pi.\u00a0 I am happy to say that it is running smoothly, my weather database is updating, all the services I share my weather data &hellip; <a href=\"https:\/\/www.cloppermillweather.org\/blog\/2014\/04\/16\/raspberry-pi-weather-station\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[4],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-weather"],"_links":{"self":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":0,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}