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
Thanks, Andy, your command directed me in
the right direction:
- first I needed to change the permission of /etc/init.d/weewx
with chmod
- then an error occurred saying that the weewx daemon is not in
a certain directory
- then I realized that the script 'weewx' in /etc/init.d needed
some customization (what the WiKi didn't mention)
after adjusting the variables WEEWX_BINDIR=, WEEWX_CFG= and
WEEWX_CFGDIR= in the script 'weewx' I got weewx starting up.
Now I have to make it understand to find the
driver, but that I should work out soon - I guess it's some
adjustment in weewx.conf (of the instance)
needed which wasn't mentioned nor properly described in the WiKi
either.
It's working now - the choice of the name
for station_type doesn't seem to be as free as the WiKi seems to
indicate.
I had to stick with the original name of the driver stanza - in
my case GW1000 - when I changed the station_type to HP2553 and
the section to [HP2553]
correspondingly, it wouldn't find the driver user.gw1000 even
thought that driver was mentioned. Going back to GW1000 and
[GW1000] made it work.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a4230e20-7b1e-406a-8284-e12dffa7a7d6n%40googlegroups.com.
That driver name was always user.gw1000, that wasn't changed.
The way the WiKi is written suggests that
you can use any name as long as you are consistent with
station_type = name and respection section [name].
It doesn't say that you should use the original station name and
section name. Maybe the example given gives room for such
thinking.
It should explicitly say that you have to stick with the names
(pertaining to the driver) for station_type and section name []
which are used for a single instance !
It's not a matter of getting support or not if it is not clear what one is supposed to do and what not.
For my original scenario (one interceptor,
one GW1000) this all works now - after divination between the
WiKi lines ...
However, when I have two GW1000 and want to
run both instances on the same server (different database names
- they can be anything and are not affected by the
station_type/section naming),
is it then enough that the instance-weewx.conf have different
names and the databases either different names or a different
location in the file system ?
I doubt this, because, when I try to run two
instances both using the interceptor driver I get a message
ERROR weewx.engine: Import of driver failed: [Errno 98] Address already in use (<class 'OSError'>)
I expect the same to happen with two
instance-weewx.conf both having an active GW1000 section
(station_type, section name)
Or is there a way around ?
For me, from what I have observed so far, that means - as already said above - that it's not a real multi instance solution but a multi (different) driver solution, a special case of a general multi instance solution.It's probably wise to just stick with the original driver name of the actual driver you are running so you can get support. If you start renaming things, you'll be on your own. The important thing is to have unique instance names and databases those instances write to.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/824de711-1eca-4f14-9931-7a4a05410290n%40googlegroups.com.
The way the WiKi is written suggests that you can use any name as long as you are consistent with station_type = name and respection section [name].
It doesn't say that you should use the original station name and section name. Maybe the example given gives room for such thinking.
It should explicitly say that you have to stick with the names (pertaining to the driver) for station_type and section name [] which are used for a single instance !
For my original scenario (one interceptor, one GW1000) this all works now - after divination between the WiKi lines ...
I doubt this, because, when I try to run two instances both using the interceptor driver I get a message
ERROR weewx.engine: Import of driver failed: [Errno 98] Address already in use (<class 'OSError'>)
I expect the same to happen with two instance-weewx.conf both having an active GW1000 section (station_type, section name)
Or is there a way around ?
For me, from what I have observed so far, that means - as already said above - that it's not a real multi instance solution but a multi (different) driver solution, a special case of a general multi instance solution.