Yes. Same failure. > On 21 Apr, 2018, at 13:44, Andrew Milner <andrew.s.r.mil...@gmail.com > <mailto:andrew.s.r.mil...@gmail.com>> wrote: > > Did you do what matthew told you to do? > > > > On Saturday, 21 April 2018 18:08:40 UTC+3, Dan'l B wrote: > OK, here's the situation to date. > > in /home/weewx, those these rin fine at the command prompt: > sudo bin/weewxd vantage.conf > sudo bin/weewxd sdr.conf > > For a test I followed the weewx docs on running as a daemon: > > cp util/init.d/weewx.debian /etc/init.d/weewx-vantage > chmod +x /etc/init.d/weewx-vantage > update-rc.d weewx-vantage defaults 98 > > With the weewx-vantage settings as follows: > > PATH=/sbin:/usr/sbin:/bin:/usr/bin > WEEWX_BIN=/home/weewx/bin/weewxd > WEEWX_CFG=/home/weewx/vantage.conf > WEEWX_USER=root:root > DESC="weewx weather system vantage" > NAME=weewx-vantage > PIDFILE=/var/run/$NAME.pid > > Execute this and all runs fine > sudo /etc/init.d/weewx-vantage start > > sudo /etc/init.d/weewx-vantage stop > > Now setup another init.d file: > > cp util/init.d/weewx.debian /etc/init.d/weewx-sdr > chmod +x /etc/init.d/weewx-sdr > update-rc.d weewx-sdr defaults 98 > > Do: > cp util/init.d/weewx.debian /etc/init.d/weewx-sdr > chmod +x /etc/init.d/weewx-sdr > update-rc.d weewx-sdr defaults 98 > > With settings in weewx-sdr: > > WEEWX_BIN=/home/weewx/bin/weewxd > WEEWX_CFG=/home/weewx/sdr.conf > WEEWX_USER=root:root > DESC="weewx weather system sdr" > NAME=weewx-sdr > > and execute: > sudo /etc/init.d/weewx-sdr start > > Failure: > > Apr 21 11:02:58 testpi systemd[1]: Starting LSB: weewx weather system... > Apr 21 11:02:58 testpi weewx[6691]: engine: Initializing weewx version 3.8.0 > Apr 21 11:02:58 testpi weewx[6691]: engine: Using Python 2.7.13 (default, Nov > 24 2017, 17:33:09) #012[GCC 6.3.0 20170516] > Apr 21 11:02:58 testpi weewx[6691]: engine: Platform > Linux-4.9.80-v7+-armv7l-with-debian-9.4 > Apr 21 11:02:58 testpi weewx[6691]: engine: Locale is 'en_US.UTF-8' > Apr 21 11:02:58 testpi weewx[6691]: engine: pid file is /var/run/weewx-sdr.pid > Apr 21 11:02:58 testpi weewx[6695]: engine: Using configuration file > /home/weewx/sdr.conf > Apr 21 11:02:58 testpi weewx[6695]: engine: debug is 1 > Apr 21 11:02:58 testpi weewx[6695]: engine: Initializing engine > Apr 21 11:02:58 testpi weewx[6695]: engine: Loading station type SDR > (user.sdr) > Apr 21 11:02:58 testpi weewx-sdr[6680]: Starting weewx weather system sdr: > weewx-sdr. > Apr 21 11:02:58 testpi systemd[1]: Started LSB: weewx weather system. > Apr 21 11:02:58 testpi weewx[6695]: sdr: MainThread: driver version is 0.39 > Apr 21 11:02:58 testpi weewx[6695]: sdr: MainThread: sensor map is > {'extraTemp2': 'temperature.1:149.AmbientF007THPacket', 'cmd': 'rtl_433 -q -U > -F json -R 20'} > Apr 21 11:02:58 testpi weewx[6695]: sdr: MainThread: deltas is {'strikes': > 'strikes_total', 'rain': 'rain_total'} > Apr 21 11:02:58 testpi weewx[6695]: sdr: MainThread: startup process 'rtl_433 > -q -U -F json -G' > Apr 21 11:02:58 testpi weewx[6695]: import of driver failed: failed to start > process: [Errno 2] No such file or directory (<class 'weewx.WeeWxIOError'>) > Apr 21 11:02:58 testpi weewx[6695]: engine: Unable to load driver: failed to > start process: [Errno 2] No such file or directory > Apr 21 11:02:58 testpi weewx[6695]: **** Exiting... > > > Which driver is it failing to load? The sdr driver? If so, why does sdr.conf > run at the command prompt? > > sdr.conf and weewx-sdr attached > > On Friday, April 20, 2018 at 6:28:12 AM UTC-4, mwall wrote: > On Thursday, April 19, 2018 at 5:17:34 PM UTC-4, Dan'l B wrote: > > Apr 19 11:31:40 testpi weewx-sdr[1408]: engine: Unable to load driver: failed > to start process: [Errno 2] No such file or directory > Apr 19 11:31:40 testpi weewx-sdr[1408]: **** Exiting... > > the weewx-multi script assumes that your configuration files are in /etc/weewx > > see the comments at the beginning of weewx-multi: > > # each weewx instance is identified by name. that name is used to identify > the > > # configuration and pid files. > > # > > # this init script expects the following configuration: > > # /etc/weewx/a.conf > > # /etc/weewx/b.conf > > # /var/run/weewx-a.pid > > # /var/run/weewx-b.pid > > # > > # with the appropriate rsyslog and logrotate configurations: > > # /var/log/weewx/a.log > > # /var/log/weewx/b.log > > # > > # to configure the script, override variables in /etc/default/weewx-multi > > # for example: > > # > > # WEEWX_INSTANCES="vantage acurite" > > # WEEWX_BINDIR=/opt/weewx/bin > > > # WEEWX_CFGDIR=/etc/weewx > > > so in your case, put this in /etc/default/weewx-multi: > > WEEWX_INSTANCES="vantage sdr" > WEEWX_BINDIR=/home/weewx/bin > WEEWX_CFGDIR=/home/weewx > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/74j5oXaFi6k/unsubscribe > <https://groups.google.com/d/topic/weewx-user/74j5oXaFi6k/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com > <mailto:weewx-user+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>.
-- 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. For more options, visit https://groups.google.com/d/optout.