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:
>
> 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 <tkef...@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
>     
>

-- 
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/6dee94c3-10f4-40cb-91a1-dd8289298ac1%40googlegroups.com.

Reply via email to