Weewx version 4

83 views
Skip to first unread message

Phil Owers

unread,
May 1, 2020, 9:17:12 AM5/1/20
to weewx-user
Hi Guys
Just upgraded from v4.0.18b to version 4 and it has stopped weewx
From the logs 

May  1 14:05:56 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
May  1 14:05:59 raspberrypi systemd[1]: Starting LSB: weewx weather system...
May  1 14:05:59 raspberrypi weewx[1136] INFO __main__: Initializing weewx version 4.0.0
May  1 14:05:59 raspberrypi weewx[1136] INFO __main__: Using Python 3.7.3 (default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]
May  1 14:05:59 raspberrypi weewx[1136] INFO __main__: Platform Linux-4.19.97-v7l+-armv7l-with-debian-10.3
May  1 14:05:59 raspberrypi weewx[1136] INFO __main__: Locale is 'en_GB.UTF-8'
May  1 14:05:59 raspberrypi weewx[1136] INFO __main__: PID file is /var/run/weewx.pid
May  1 14:05:59 raspberrypi weewx[1140] INFO __main__: Using configuration file /etc/weewx/weewx.conf
May  1 14:05:59 raspberrypi weewx[1140] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
May  1 14:05:59 raspberrypi weewx[1124]: Starting weewx weather system: weewx.
May  1 14:05:59 raspberrypi systemd[1]: Started LSB: weewx weather system.
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__: Caught unrecoverable exception:
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****  could not convert string to float: '52.9444 1.2110'
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****  Traceback (most recent call last):
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 72, in __init__
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****      self.preLoadServices(config_dict)
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****      self.stn_info = weewx.station.StationInfo(self.console, **config_dict['Station'])
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/station.py", line 51, in __init__
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****      self.latitude_f      = float(stn_dict['latitude'])
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****  ValueError: could not convert string to float: '52.9444 1.2110'
May  1 14:05:59 raspberrypi weewx[1140] CRITICAL __main__:     ****  Exiting.

When I look in the weewx.conf file it had the lat an lon figures of 52.9444 and 1.2110
I changed the values to mine of 52.944 and 1.211 (not sure where the extra digits came from) stopped and restarted weewx but it still fails
The above is after I changed the weewx.conf file which has

# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tke...@gmail.com>
# See the file LICENSE.txt for your rights.
##############################################################################
# This section is for general configuration information.
# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx
# Whether to log successful operations
log_success = True
# Whether to log unsuccessful operations
log_failure = True
# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20
# Do not modify this. It is used when installing and updating weewx.
version = 4.0.0
##############################################################################
#   This section is for information about the station.
[Station]
   
    # Description of the station location
    location = SheringhamWeatherCenter
   
    # Latitude in decimal degrees. Negative for southern hemisphere
    latitude = 52.944
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = 1.211
   
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 150, foot    # Choose 'foot' or 'meter' for unit
Phil
   

Tom Keffer

unread,
May 1, 2020, 10:20:02 AM5/1/20
to weewx-user
Hello,

When weewx is starting up, it is using the configuration file /etc/weewx/weewx.conf. Is the snippet from weewx.conf that you posted from that same file?

The log suggests that you have an entry like

  latitude = 52.9444 1.2110

but that's not what is appearing in the snippet.

-tk

--
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/4d00aa13-0eef-422b-9625-dc40e7411631%40googlegroups.com.

Phil Owers

unread,
May 1, 2020, 10:28:10 AM5/1/20
to weewx-user

Phil Owers

unread,
May 1, 2020, 10:40:58 AM5/1/20
to weewx-user
Yes the snippet is from the home/weewx/weewx.conf file that Im using
When it first failed the 52.9444 and 1.2110 where in the weewx.conf file and not sure where they came from
So I changed them to 52.944 and 1.211 in the weewx.conf file which is what they should be
Stopped and started weewx and it still failed with the old figures of 52.9444 and 1.2110

I have since changed the figures in the weewx.conf file to blanks and also to other lat and long figures and have restarted weewx each time.
It doesn't matter what I enter in the weewx.conf file its not reflected in the start up log which always has 52.9444 and 1.2110
I have even rebooted the pi on several occasions but the start up log still has 52.9444 and 1.2110
Phil

On Friday, May 1, 2020 at 2:17:12 PM UTC+1, Phil Owers wrote:

Tom Keffer

unread,
May 1, 2020, 10:42:32 AM5/1/20
to weewx-user
The log you sent showed that weewx is using the configuration file at /etc/weewx/weewx.conf, NOT /home/weewx/weewx.conf.

You are looking in the wrong spot.

--
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.

Phil Owers

unread,
May 1, 2020, 11:13:07 AM5/1/20
to weewx-user
Sorry Tom you are correct
I didn't know I had a weewx.conf file in etc/weewx/

Sorry if this is a silly question but how can I get it back to using the home/weewx/weewx.conf file which it did before. I must have missed something in the upgrage
Phil

On Friday, May 1, 2020 at 2:17:12 PM UTC+1, Phil Owers wrote:

Tom Keffer

unread,
May 1, 2020, 11:27:15 AM5/1/20
to weewx-user
At some point you must have done an install using apt-get. It puts the configuration file in /etc/weewx. I assume now you are using the setup.py install approach?

The best approach is to always specify the configuration file you want directly. So, it becomes

/home/weewx/bin/weewxd /home/weewx/weewx.conf

This always works.

-tk


--
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.
Reply all
Reply to author
Forward
0 new messages