On Saturday, April 22, 2017 at 10:11:04 PM UTC-7, mwall wrote:
> on which version of raspbian are you installing? > 2015-04-10-raspbian-jessie, with all updates as of 04-22 installed. > after you installed weewx, what do you see in the system log? > Apr 22 15:09:30 brinley weewx[609]: engine: Initializing weewx version 3.7.1 Apr 22 15:09:30 brinley weewx[609]: engine: Using Python 2.7.9 (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2] Apr 22 15:09:30 brinley weewx[609]: engine: Platform Linux-4.4.50+-armv6l-with-debian-8.0 Apr 22 15:09:30 brinley weewx[609]: engine: Locale is 'en_US.UTF-8' Apr 22 15:09:30 brinley weewx[609]: engine: pid file is /var/run/weewx.pid Apr 22 15:09:30 brinley weewx[382]: Starting weewx weather system: weewx. Apr 22 15:09:30 brinley systemd[1]: Started LSB: weewx weather system. Apr 22 15:09:30 brinley systemd[1]: Starting Multi-User System. Apr 22 15:09:30 brinley systemd[1]: Reached target Multi-User System. Apr 22 15:09:30 brinley systemd[1]: Starting Graphical Interface. Apr 22 15:09:30 brinley systemd[1]: Reached target Graphical Interface. Apr 22 15:09:30 brinley systemd[1]: Starting Update UTMP about System Runlevel Changes... Apr 22 15:09:30 brinley systemd[1]: Started Update UTMP about System Runlevel Changes. Apr 22 15:09:31 brinley systemd[1]: Startup finished in 1.536s (kernel) + 29.518s (userspace) = 31.054s. Apr 22 15:09:31 brinley weewx[643]: engine: Using configuration file /etc/weewx/weewx.conf Apr 22 15:09:31 brinley weewx[643]: engine: Loading station type Simulator (weewx.drivers.simulator) Apr 22 15:09:31 brinley weewx[643]: engine: StdConvert target unit is 0x1 Apr 22 15:09:31 brinley weewx[643]: engine: Caught unrecoverable exception in engine: Apr 22 15:09:31 brinley weewx[643]: **** '1994' Apr 22 15:09:31 brinley weewx[643]: **** Traceback (most recent call last): Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/engine.py", line 865, in main Apr 22 15:09:31 brinley weewx[643]: **** engine = engine_class(config_dict) Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/engine.py", line 77, in __init__ Apr 22 15:09:31 brinley weewx[643]: **** self.loadServices(config_dict) Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/engine.py", line 141, in loadServices Apr 22 15:09:31 brinley weewx[643]: **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict)) Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/wxservices.py", line 38, in __init__ Apr 22 15:09:31 brinley weewx[643]: **** engine.db_binder) Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/wxservices.py", line 158, in __init__ Apr 22 15:09:31 brinley weewx[643]: **** self.altitude_ft = weewx.units.convert(alt_vt, "foot")[0] Apr 22 15:09:31 brinley weewx[643]: **** File "/usr/share/weewx/weewx/units.py", line 1079, in convert Apr 22 15:09:31 brinley weewx[643]: **** conversion_func = conversionDict[val_t[1]][target_unit_type] Apr 22 15:09:31 brinley weewx[643]: **** KeyError: '1994' Apr 22 15:09:31 brinley weewx[643]: **** Exiting. if you are having problems getting weewx to run as a daemon, consider > running it directly as described in the user guide: > > It appears that there the attempt is made to start the daemon but other problems are preventing success. In any case, there's not much benefit to me if weewx won't run as a daemon since I would lose access to the remote system in the event power is interrupted. > what happens when you check the weewx status with > > /etc/init.d/weewx status > Status is as reported in "/var/log/syslog": > > root@brinley:/# /etc/init.d/weewx status > ● weewx.service - LSB: weewx weather system > Loaded: loaded (/etc/init.d/weewx) > Active: active (exited) since Sat 2017-04-22 15:09:30 MST; 23h ago > Process: 382 ExecStart=/etc/init.d/weewx start (code=exited, > status=0/SUCCESS) > > Apr 22 15:09:31 brinley weewx[643]: **** File > "/usr/share/weewx/weewx/en...es > Apr 22 15:09:31 brinley weewx[643]: **** > self.service_obj.append(weeut...)) > Apr 22 15:09:31 brinley weewx[643]: **** File > "/usr/share/weewx/weewx/wx...__ > Apr 22 15:09:31 brinley weewx[643]: **** engine.db_binder) > Apr 22 15:09:31 brinley weewx[643]: **** File > "/usr/share/weewx/weewx/wx...__ > Apr 22 15:09:31 brinley weewx[643]: **** self.altitude_ft = > weewx.unit...0] > Apr 22 15:09:31 brinley weewx[643]: **** File > "/usr/share/weewx/weewx/un...rt > Apr 22 15:09:31 brinley weewx[643]: **** conversion_func = > conversionD...e] > Apr 22 15:09:31 brinley weewx[643]: **** KeyError: '1994' > Apr 22 15:09:31 brinley weewx[643]: **** Exiting. > Hint: Some lines were ellipsized, use -l to show in full. > > > what happens when you try to start weewx as a daemon with > > sudo /etc/init.d/weewx start > > It's not clear to me what happens when the daemon is started manually. ps aux | grep weewx does not show an associated process, however there's not much information in "/var/log/syslog": Apr 23 14:29:11 brinley systemd[1]: Started LSB: weewx weather system. > the debian package at weewx.com/apt works fine with debian8-based > systems. it installs the /etc/init.d/weewx sysv init script, but that > works just fine with systemd. > > This is good information, and corroborated by Andrew and Craig in subsequent posts. I suspect everything may work correctly once the issue reported in "syslog" is addressed. I'll also concede that I don't know what those messages are telling me. Perhaps it's simply that I'm attempting to bring the system up using the simulator in place of the actual weather station, which is not presently available to me. if you prefer to use a systemd unit file, follow the instructions on the > wiki: > > https://github.com/weewx/weewx/wiki/systemd > > what happens when you run weewx that way? > > I'm going to hold off on that path until the errors shown above have been addressed. -- 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]. For more options, visit https://groups.google.com/d/optout.
