User Tools

Site Tools


Setting up WeeWx on a Raspberry Pi

or similiar single board computer. (banana pi, hummingboard, odroid etc) (Actually you could use a thin client, or old PC)

Depending on the weather station you may need a PL-2303 usb to serial cable to connect the weather station to the RPi

First get an image of Debian or Ubuntu on to your SD card and boot. I use a minimal headless version, for a speedy system.

Try this: Minibian for the RPi

User: Root , Pass: raspberry

(we'll change this later)

Use ssh to remote login to the RPi

FIRST job is to get the filesystem spread across the whole of the SD card. (works for raspberry pi, not sure about others):

resize to use whole of SD card:

fdisk /dev/mmcblk0
set start (see the start before)
set end
resize2fs /dev/mmcblk0p2
df -h

Now change the root password:


Now update the OS:

apt-get update && apt-get -y upgrade

set time zone:

dpkg-reconfigure tzdata

Set locals using:

dpkg-reconfigure locales

make this the only and default: en_GB.UTF-8 (for UK usage)

We need some software installed to get WeeWx to work so, do this:

apt-get -y install mlocate nano ntp build-essential python-dev python-pip ttf-dejavu nfs-common lighttpd fonts-freefont-ttf sqlite3 python-configobj python-cheetah python-imaging python-serial python-usb rsync && pip install pyephem
reboot  (for good luck)

Now connect up your weather station

At this point you can follow the instructions at as they are very good.

For a quick and easy install use the deb package, but if your a fairly advanced user then install using is a tidier install. Both either will work fine.

So here and below is pretty much duplicated from

Copy the weewx deb software package to root home then

cd ~
dpkg -i weewx_X.Y.Z-R.deb

Set your location, latitude & longitude, altitude, units, station type.

If this was a fresh install, rather than an upgrade from an old version or move from old hardware, you should be all done. So skip to the end and type the address at the bottom of the page into your browser address bar.

Otherwise we need to do a little more to move to the new setup from the old.

stop the weewx service so that the old data and config files can be copied over.

Or if a new install, setup the config files correctly

service weewx stop

copy over our modded weewx.conf to /etc/weewx/weewx.conf

copy the weewx.db from old server from /var/lib/weewx/ to the new server

delete the stats.sdb on the new server if in /var/lib/weewx/ (ver 2.7 and lower)

copy over our modded skins directory to /etc/weewx/skins/

OK, all the configuring info can be found on the WeeWx website

If this was a fresh install, you should find all is working already, however you may well need to configure somethings depending on your intentions.

service weewx start

check what's happening:

tail -f /var/log/syslog

Every 5 minutes you should see the data being downloaded from the weather sation and the weather website being updated.

Your weather data should appear here:




Hopefully that should get it running for you. If you have any problems, then email me off my weather station page. Chris.

weewx_station.txt · Last modified: 1980/01/27 16:38 by chris