{"id":8,"date":"2016-12-06T16:36:46","date_gmt":"2016-12-06T15:36:46","guid":{"rendered":"http:\/\/emariete.com\/wp\/?p=8"},"modified":"2016-12-06T16:36:46","modified_gmt":"2016-12-06T15:36:46","slug":"my-meteorological-station-start-up","status":"publish","type":"post","link":"https:\/\/emariete.com\/en\/mi-estacion-meteorologica-puesta-en-marcha\/","title":{"rendered":"Weather station with Raspberry Pi, WeeWx and Meteotemplate"},"content":{"rendered":"<h2>Getting my Davis Vantage Pro2 up and running with WeeWx and Meteotemplate<\/h2>\n<p>This is how I updated my weather station with Raspberry Pi, the template <a href=\"https:\/\/www.meteotemplate.com\/web\/index.php\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Meteotemplate \">Meteotemplate<\/a> and open source software <a href=\"http:\/\/www.weewx.com\/\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"WeeWx\">WeeWx<\/a><\/p>\n<p>I have a weather station <strong>Davis Vantage Pro2<\/strong> for over 10 years now, and although it\u2019s a good station, I\u2019ve made very little use of it.<\/p>\n<p>For several years now, it had stopped working at night due to a fault in the ISS\u2019s supercapacitor (its solar power system), which I replaced a few days ago, and it was cut off from the world (with no connection to <a href=\"https:\/\/emariete.com\/en\/the-domotics-system-of-my-house-the-controller-or-brain\/\" title=\"my home automation system\">my home automation system<\/a> (and without publishing any data online). I\u2019ll leave the integration with home automation for another post.<\/p>\n<p>I have recently decided to put it to use again, contributing the data it generates to the community (publishing it on sites such as <a href=\"https:\/\/www.wunderground.com\/\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Weatherunderground \">WeatherUnderground<\/a> y <a href=\"https:\/\/www.meteoclimatic.net\/\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Meteoclimatic\">Meteoclimatic<\/a>) and post them on my website. Whilst I was at it, I gave it a good clean as well.<\/p>\n<h3>How it used to work<\/h3>\n<p>Years ago I used to use Windows software that ran permanently on a PC, connected to the console via a serial port, which saved data and generated a series of web pages that I uploaded, every few minutes, to an external server for viewing on the internet.<\/p>\n<p>In this new reincarnation of the weather station, although I still have several PCs at home running 24\u00d77, I have decided to use one of the existing modern programs that run on a <a href=\"https:\/\/emariete.com\/en\/home-home-domotics-raspberry-pi\/\" title=\"Raspberry PI\">Raspberry PI<\/a>. This allows me to make the system completely independent and ensures that the data is stored and uploaded to the internet permanently and without any interruption.<\/p>\n<h3>New WeeWx software<\/h3>\n<p>The first task was to find the right software, and after reading extensively about the various programmes and looking at other stations that used them, I settled on WeeWx. This programme, written in Python, has a number of advantages that make it ideal:<\/p>\n<ul>\n<li>It is a lightweight programme, designed to run on modest machines such as a Raspberry Pi<\/li>\n<li>It features a \u00abskins\u00bb system (theme templates) that allows you to change its appearance easily, although in the end I used Meteotemplate instead of a skin because it\u2019s much more flexible and looks really nice<\/li>\n<li>Support my weather station directly<\/li>\n<li>Upload the data to the sites I\u2019m interested in (Weather Underground, Meteoclimatic and, of course, my web server)<\/li>\n<li>It has implemented a system of plugins that allow it to be extended with new functionalities.<\/li>\n<\/ul>\n<h3>New Raspberry Pi hardware<\/h3>\n<p>No sooner said than done, I dug out the oldest Raspberry Pi I had lying around the house \u2013 as it requires very little processing power (a Raspberry Pi 1 with just 512MB of memory) \u2013 and I set up a new SD card with the latest version of Raspbian.<\/p>\n<p>The Davis console connects to the Raspberry Pi via a USB data logger. After a short while setting it up, it was up and running and uploading data to my website:&nbsp;<a href=\"https:\/\/emariete.com\/en\/estacion-meteorologica-madrid-espana\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/emariete.com\/estacion-meteorologica-madrid-espana\/<\/a><\/p>\n<p>To top it all off, I\u2019ve installed a fantastic template, Meteotemplate, which runs on the web server and receives data from WeeWx via FTP. Here\u2019s the result:&nbsp;<a href=\"https:\/\/emariete.com\/en\/estacion-meteorologica-madrid-espana\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/emariete.com\/estacion-meteorologica-madrid-espana\/<\/a><\/p>\n<p>I\u2019m very pleased with the result. I hope it will run smoothly and without any interruptions, and that it will last a few years without me having to give it a second thought. I still need to reconnect it to my home automation system, but I\u2019ll leave that for another post.<\/p>","protected":false},"excerpt":{"rendered":"<p>Setting up a personal weather station with a Raspberry, WeeWx and Meteotemplate<\/p>","protected":false},"author":1,"featured_media":762,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_lmt_disableupdate":"yes","_lmt_disable":"","_mwseo_primary_category":0,"footnotes":"","_kiss_seo_title":"","_kiss_seo_excerpt":""},"categories":[15],"tags":[46,54],"class_list":["post-8","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-estacion-meteorologica","tag-raspberry-pi","tag-weewx"],"modified_by":"Mariete","uagb_featured_image_src":{"full":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica.jpg",1920,1081,false],"thumbnail":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica-150x150.jpg",150,150,true],"medium":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica-300x169.jpg",300,169,true],"medium_large":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica-768x432.jpg",768,432,true],"large":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica-1024x577.jpg",1024,577,true],"1536x1536":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica-1536x865.jpg",1536,865,true],"2048x2048":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica.jpg",1920,1081,false],"trp-custom-language-flag":["https:\/\/emariete.com\/wp-content\/uploads\/2016\/12\/meteotemplate-estacion-meteorologica.jpg",18,10,false]},"uagb_author_info":{"display_name":"Mariete","author_link":"https:\/\/emariete.com\/en\/author\/admin_xlyz052h\/"},"uagb_comment_info":0,"uagb_excerpt":"Instalaci\u00f3n de una estaci\u00f3n meteorol\u00f3gica personal con una Raspberry, WeeWx y Meteotemplate","_links":{"self":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":2,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":243477,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/8\/revisions\/243477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media\/762"}],"wp:attachment":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}