Weather station with Raspberry Pi, WeeWx and Meteotemplate

Getting my Davis Vantage Pro2 up and running with WeeWx and Meteotemplate

This is how I updated my weather station with Raspberry Pi, the template Meteotemplate and open source software WeeWx

I have a weather station Davis Vantage Pro2 for over 10 years now, and although it’s a good station, I’ve made very little use of it.

For several years now, it had stopped working at night due to a fault in the ISS’s supercapacitor (its solar power system), which I replaced a few days ago, and it was cut off from the world (with no connection to my home automation system (and without publishing any data online). I’ll leave the integration with home automation for another post.

I have recently decided to put it to use again, contributing the data it generates to the community (publishing it on sites such as WeatherUnderground y Meteoclimatic) and post them on my website. Whilst I was at it, I gave it a good clean as well.

How it used to work

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.

In this new reincarnation of the weather station, although I still have several PCs at home running 24×7, I have decided to use one of the existing modern programs that run on a Raspberry PI. 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.

New WeeWx software

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:

  • It is a lightweight programme, designed to run on modest machines such as a Raspberry Pi
  • It features a «skins» system (theme templates) that allows you to change its appearance easily, although in the end I used Meteotemplate instead of a skin because it’s much more flexible and looks really nice
  • Support my weather station directly
  • Upload the data to the sites I’m interested in (Weather Underground, Meteoclimatic and, of course, my web server)
  • It has implemented a system of plugins that allow it to be extended with new functionalities.

New Raspberry Pi hardware

No sooner said than done, I dug out the oldest Raspberry Pi I had lying around the house – as it requires very little processing power (a Raspberry Pi 1 with just 512MB of memory) – and I set up a new SD card with the latest version of Raspbian.

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: https://emariete.com/estacion-meteorologica-madrid-espana/

To top it all off, I’ve installed a fantastic template, Meteotemplate, which runs on the web server and receives data from WeeWx via FTP. Here’s the result: https://emariete.com/estacion-meteorologica-madrid-espana/

I’m 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’ll leave that for another post.

Leave a comment