Author Topic: Running WeeWX in a container on a QNAP NAS  (Read 2787 times)

0 Members and 1 Guest are viewing this topic.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3505
Re: Running WeeWX in a container on a QNAP NAS
« Reply #25 on: September 30, 2022, 08:28:57 AM »
It seems that the installation process wants to use "tools" that are not available in container environment and craps out without continuing.

For example : nvoke-rc.d: could not determine current runlevel

It's kinda bizarre because much more complicated software can be installed and used. Who ever wrote this installation script for deb, did not bother to test it properly or was just lazy.
the container version of ubuntu is, politically correctly speaking, light-weight.
A RaspberryPi Debian (Buster) is much richer ...

As for the installation - just extract the ZIP file to a temp folder and then copy the Seasons folder over - subdirectory /home/weewx/skins/seasons might need to be created
And then it should run - maybe some skin.conf and weewx.conf adaptions needed for the customized naming of the labels
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.2, GW1200 1.3.1, GW2000(3) 3.1.3, HP2551 1.9.6,5.1.6;HP3500 1.7.2,WS3800 1.3.0, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.4.3/1.4.0, WS80(2)1.2.8, WS68, WS69, WH40,WH31,WH31-EP,WN30,WN34L,WN35,WH32,WH32-EP, WH32B, WH57 [Lightning], WH41[PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB,
Barani Meteoshield Pro, MetSpecRad02
weather landing page: http://meshka.eu
WIKI http://meshka.eu/Ecowitt/dokuwiki

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: Running WeeWX in a container on a QNAP NAS
« Reply #26 on: September 30, 2022, 10:11:41 AM »
I got the files by doing a python install and then deb install. You see, the /etc/init.d/weewx script is also joke because it cant start weewx, if you used python script for installing it. So, the whole thing is kind of a clusterf**, if you ask me.

bugs:

1) weewx crashes without rsyslogd 
2) install wont finish properly if nvoke-rc.d could not determine current runlevel





Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3505
Re: Running WeeWX in a container on a QNAP NAS
« Reply #27 on: September 30, 2022, 10:17:08 AM »
I got the files by doing a python install and then deb install. You see, the /etc/init.d/weewx script is also joke because it cant start weewx, if you used python script for installing it. So, the whole thing is kind of a clusterf**, if you ask me.

bugs:

1) weewx crashes without rsyslogd 
2) install wont finish properly if nvoke-rc.d could not determine current runlevel
Maybe you should share this insight with Tom Keffer and Gary Roderick in the weewx useer group.
They might create a special and working install script for such docker containers and find a solution for the rsyslog - including maybe just installing it as a dependency for the future ...
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.2, GW1200 1.3.1, GW2000(3) 3.1.3, HP2551 1.9.6,5.1.6;HP3500 1.7.2,WS3800 1.3.0, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.4.3/1.4.0, WS80(2)1.2.8, WS68, WS69, WH40,WH31,WH31-EP,WN30,WN34L,WN35,WH32,WH32-EP, WH32B, WH57 [Lightning], WH41[PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB,
Barani Meteoshield Pro, MetSpecRad02
weather landing page: http://meshka.eu
WIKI http://meshka.eu/Ecowitt/dokuwiki

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: Running WeeWX in a container on a QNAP NAS
« Reply #28 on: October 01, 2022, 06:57:23 AM »
I got the files by doing a python install and then deb install. You see, the /etc/init.d/weewx script is also joke because it cant start weewx, if you used python script for installing it. So, the whole thing is kind of a clusterf**, if you ask me.

bugs:

1) weewx crashes without rsyslogd 
2) install wont finish properly if nvoke-rc.d could not determine current runlevel
Maybe you should share this insight with Tom Keffer and Gary Roderick in the weewx useer group.
They might create a special and working install script for such docker containers and find a solution for the rsyslog - including maybe just installing it as a dependency for the future ...

They can read it here.

I think I made it clear that I am not going to get a google account.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3505
Re: Running WeeWX in a container on a QNAP NAS
« Reply #29 on: October 01, 2022, 08:21:04 AM »
I got the files by doing a python install and then deb install. You see, the /etc/init.d/weewx script is also joke because it cant start weewx, if you used python script for installing it. So, the whole thing is kind of a clusterf**, if you ask me.

bugs:

1) weewx crashes without rsyslogd 
2) install wont finish properly if nvoke-rc.d could not determine current runlevel
Maybe you should share this insight with Tom Keffer and Gary Roderick in the weewx useer group.
They might create a special and working install script for such docker containers and find a solution for the rsyslog - including maybe just installing it as a dependency for the future ...

They can read it here.

I think I made it clear that I am not going to get a google account.
a) the user group can be read in a browser without an email account - and their email addresses are visible  8-)
b) you can send an email from any other account to their accounts without engaging in Google   ;)
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.2, GW1200 1.3.1, GW2000(3) 3.1.3, HP2551 1.9.6,5.1.6;HP3500 1.7.2,WS3800 1.3.0, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.4.3/1.4.0, WS80(2)1.2.8, WS68, WS69, WH40,WH31,WH31-EP,WN30,WN34L,WN35,WH32,WH32-EP, WH32B, WH57 [Lightning], WH41[PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB,
Barani Meteoshield Pro, MetSpecRad02
weather landing page: http://meshka.eu
WIKI http://meshka.eu/Ecowitt/dokuwiki

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: Running WeeWX in a container on a QNAP NAS
« Reply #30 on: October 17, 2022, 06:51:10 AM »
Update.
If any of you are planning to run the weewx inside a container, you are better off starting all the required services like rsyslog, weewx and your webserver with
Code: [Select]
docker exec from the host. Also, uses hosts crontab.
Plenty of examples out there, how to do it.
 

From your hosts command line:
 
Code: [Select]
$ docker exec container-name /bin/sh /etc/init.d/rsyslog start
« Last Edit: October 17, 2022, 06:56:17 AM by BaseLine »
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 207
    • home site
Re: Running WeeWX in a container on a QNAP NAS
« Reply #31 on: October 17, 2022, 02:33:09 PM »
I commit crimes against docker architecture by running supervisord to run rsyslogd and weewx in one container, which has worked well for years for me.

Nowadays you can simply make an addition to your weewx.conf to have it log to stdout rather than needing a syslog daemon at all.    See their wiki - https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#customizing%20-what-gets-logged for details.  Basically just change it to say handlers = console.
WeeWX sites:
  Davis VP2+DFARS to a pi4
  EcoWitt WS3800, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture, WH34 soilTemp, WS85 rain+wind (pi4) - formerly gw1000
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/  - sorry, but I block incoming other than US/CA/AU due to bots from elsewhere
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881