you should not have to modify the weewx-multi script at all - put all of 
your customizations into /etc/default/weewx-multi

this includes not only the WEEWX_INSTANCES, but also WEEWX_BINDIR, 
WEEWX_CFGDIR, etc.

weewx-multi does not care about drivers - it only cares about the name you 
give to each weewx instance.  the instance names distinguish between config 
files and databases.  for example, you could have 2 gw1000 instances and 1 
vantage instance, with your weewx installed in /opt/weewx and config files 
in /etc/weewx, like this:

WEEWX_CFGDIR=/etc/weewx
WEEWX_BINDIR=/opt/weewx/bin
WEEWX_INSTANCES="gw1000_1 gw1000_2 vantage"

for each instance, you need a config file in the WEEWX_CFGDIR, so in 
/etc/weewx you would have:

/etc/weewx/gw1000_1.conf
/etc/weewx/gw1000_2.conf
/etc/weewx/vantage.conf

each of those config files would specify its own database: 
/var/lib/weewx/gw1000_1.sdb for gw1000_1, etc.  the weewx-multi script 
ensures that logging from each instance gets a different prefix, so you can 
search per-instance, or use rsyslog configs to direct output from each 
instance to a separate file.

the instance names are arbitrary.  if the first gw1000 is in the paddock, 
the second is monitoring a station at the boat, and the vantage is up on a 
hill, you could use names like this:

WEEWX_INSTANCES="paddock boat hill"
 
the drivers and server_type do not change.

On Tuesday, September 21, 2021 at 9:18:25 AM UTC-4 [email protected] 
wrote:

> Hi
>
> I did the installation on my RPi exactly as described at 
> https://github.com/weewx/weewx/wiki/weewx-multi
>
> - downloaded the multi start script and copied it to /etc/init.d/weewx
>
> wget -P /var/tmp 
> https://raw.githubusercontent.com/weewx/weewx/master/util/init.d/weewx-multi
> sudo cp /var/tmp/weewx-multi /etc/init.d/weewx
> sudo update-rc.d weewx defaults
> echo 'WEEWX_INSTANCES="WS2320E HP2553"' | sudo tee /etc/default/weewx-multi
> echo 'WEEWX_CFGDIR=/etc/weewx' | sudo tee -a /etc/default/weewx-multi
>
> the commands all went through without any complaints from the OS end
>
> - created the two separate weewx.conf files for each instance
> - modified the weewx.conf files accordingly for the DB, HTML_ROOT, 
> station-type etc.
>
> when I try to start one of the instances (named: WS2320E and HP2553), the 
> OS replies:
>
> pi@rasperrypi:~ $ sudo /etc/init.d/weewx start WS2320E
> sudo: /etc/init.d/weewx; command not found
>
> same with the other instance
>
> pi@rasperrypi:~ $ sudo /etc/init.d/weewx start HP2553
> sudo: /etc/init.d/weewx; command not found 
>
> /etc/default/weewx-multi contains the above entries
> /etc/init.d/weewx is the multi script from Matthew
>
> Nothing in the syslog - any ideas ? weewx even doesn't start ...
> looks like a OS/script issue
>
> By the way - the single instance version worked without any issue.
> OS version is Raspbian 10
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b4d2a48a-7ee0-4a5e-8d48-65fc16d9bb83n%40googlegroups.com.

Reply via email to