update draft post (weewx 5)

main
Dominic Reich 4 months ago
parent 1cda8bd722
commit c1c6b80f60
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -0,0 +1,107 @@
---
title: Upgrade my weatherstation to WeeWX 5
summary: >
# date: 2024-05-11T23:53:55+02:00
date: 2024-06-09T08:54:06+0200
# lastmod:
coverCaption: Ecowitt WS69
categories:
- amateur-radio
tags:
- Archlinux
- WeeWX
- WX
- draft_post
draft: true
---
I will move the weatherstation software again to another computer, this time
a virtual one -- that means one Raspberry Pi less on the windowsill.
The installation process is also [covered in the 5.0 docs](https://weewx.com/docs/5.0/quickstarts/pip/).
## Creating the virtual environment
~~~console
$ sudo pacman -S python-pip
~~~
~~~console
$ python -m venv ~/weewx-venv
$ source ~/weewx-venv/bin/activate
$ python -m pip install weewx
~~~
The installation is complete, let's create the station. I like doing upgrades "from scratch"
because I can use an up-to-date configuration file -- although it is more work to add the
old changes to the new file.
## Create the new station
~~~console
$ weectl station create took 8s via 🐍 v3.12.3 weewx-venv
~~~
Follow the instructions on the command line. Edit the freshly created configuration file.
~~~console
$ nvim ~/weewx-data/weewx.conf
~~~
Including my old settings and add the GW1000 configuration for the plugin that I will
soon install.
## Installing the extensions
Install the GW1000 driver:
~~~console
$ weectl extension install https://github.com/gjr80/weewx-gw1000/releases/latest/download/gw1000.zip
~~~
Install the WDC theme:
~~~console
$ wget -O "/tmp/weewx-wdc.zip" https://github.com/Daveiano/weewx-wdc/releases/download/v3.5.1/weewx-wdc-v3.5.1.zip
$ mkdir /tmp/weewx-wdc/
$ unzip /tmp/weewx-wdc.zip -d /tmp/weewx-wdc/
$ weectl extension install -y /tmp/weewx-wdc/
~~~
Install the XAGGS extension:
~~~console
$ weectl extension install https://github.com/tkeffer/weewx-xaggs/archive/master.zip
~~~
Install forecast plugin:
~~~console
$ wget https://github.com/chaunceygardiner/weewx-forecast/releases/download/v3.4.0b12/weewx-forecast-3.4.0b12.zip
$ weectl extension install weewx-forecast-3.4.0b12.zip
~~~
## Install Systemd and udev files
~~~console
$ sudo sh ~/weewx-data/scripts/setup-daemon.sh
~~~
## Again, adopt configuration file
Again, to include the latest changes and themes.
~~~console
$ nvim ~/weewx-data/weewx.conf
$ nvim ~/weewx-data/skins/weewx-wdc/skin.conf
~~~
Start WeeWX and test the configuration:
~~~console
$ weewxd
~~~
Loading…
Cancel
Save