From c1c6b80f605291ccaf54ce9ad1ff9fb6fa378bb9 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 15 Jun 2024 23:35:29 +0200 Subject: [PATCH] update draft post (weewx 5) --- .../index.md | 107 ++++++++++++++++++ .../wx-station-feature.jpg | 3 + 2 files changed, 110 insertions(+) create mode 100644 content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/index.md create mode 100644 content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/wx-station-feature.jpg diff --git a/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/index.md b/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/index.md new file mode 100644 index 0000000..65d7f82 --- /dev/null +++ b/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/index.md @@ -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 +~~~ + + diff --git a/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/wx-station-feature.jpg b/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/wx-station-feature.jpg new file mode 100644 index 0000000..1f8c1bc --- /dev/null +++ b/content/posts/2024/66-upgrade-my-weatherstation-to-weewx-5/wx-station-feature.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29e956eed1f991f436df5dc2d6b5cfe32b957d8843ca8f1bd0eb941bffb91568 +size 63836