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.

On 21.09.2021 16:20, Andy wrote:
file is missing from /etc/init.d or is not executable?

ls -l /etc/init.d | grep weewx

On Tuesday, September 21, 2021 at 6:18:25 AM UTC-7 lang....@googlemail.com wrote:

    Hi

    I did the installation on my RPi exactly as described at
    https://github.com/weewx/weewx/wiki/weewx-multi
    <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
    
<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 weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@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 <https://groups.google.com/d/msgid/weewx-user/a4230e20-7b1e-406a-8284-e12dffa7a7d6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/de71327d-22e8-91ef-82fc-61fa87d4eb40%40gmail.com.

Reply via email to