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

0 Members and 1 Guest are viewing this topic.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2082
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.4, GW1000(3) 1.7.5, WH2650 WiFi (2) 1.7.5 (test/backup), GW1100 2.2.0, GW2000(3) 2.2.0, HP2551 1.6.4/1.8.6;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14854 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3214/MB RPi4(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Member
  • **
  • Posts: 82
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 nothing burger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2082
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.4, GW1000(3) 1.7.5, WH2650 WiFi (2) 1.7.5 (test/backup), GW1100 2.2.0, GW2000(3) 2.2.0, HP2551 1.6.4/1.8.6;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14854 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3214/MB RPi4(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Member
  • **
  • Posts: 82
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 nothing burger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2082
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.4, GW1000(3) 1.7.5, WH2650 WiFi (2) 1.7.5 (test/backup), GW1100 2.2.0, GW2000(3) 2.2.0, HP2551 1.6.4/1.8.6;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14854 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3214/MB RPi4(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Member
  • **
  • Posts: 82
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 nothing burger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline vinceskahan

  • Contributor
  • ***
  • Posts: 112
    • 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 GW1000, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture (docker)
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

 

anything