If you're on the latest version (you didn't say), you should set debug=1 in 
weewx.conf, restart weewx, and post a longer log extract here so others can 
look at the debugging output.

Your tail -f is too short, you want to show from the time weewx starts 
through one archive period at least.   Perhaps add the -n 200 switch to 
your tail command to try to catch more lines if you're not comfortable with 
the command line.


On Thursday, November 10, 2022 at 2:22:27 PM UTC-8 timwill...@gmail.com 
wrote:

>  IThanks vince, t's the /dev/ttyUSB0  so I edited my weewx config to 
> /dev/ttyUSB0 :
> If the connection type is serial, a port must be specified:
>     #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
>     #     /dev/ttyUSB0 is a common USB port name
>     #     /dev/ttyS0   is a common serial port name
>     #   BSD:
>     #     /dev/cuaU0   is a common serial port name
>        port =  /dev/ttyUSB0
>  
> - And restarted then looked at log . Still wont run weewx .Log says it 
> can't open vantage console: At least now weewx is attempting to run .
>
> $ sudo tail -f /var/log/syslog
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Using 
> Python 3.8.10 (default, Jun 22 2022, 20:18:18) #012[GCC 9.4.0]
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Located 
> at /usr/bin/python3
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Platform 
> Linux-5.4.0-131-generic-x86_64-with-glibc2.29
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Locale is 
> 'en_US.UTF-8'
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Using 
> configuration file /etc/weewx/weewx.conf
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Debug is 0
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: PID file 
> is /var/run/weewx.pid
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9062] INFO weewx.engine: 
> Loading station type Vantage (weewx.drivers.vantage)
> Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9037]:    ...done.
> Nov 10 16:11:13 willie-ThinkPad-X131e systemd[1]: Started LSB: weewx 
> weather system.
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] ERROR 
> weewx.drivers.vantage: Unable to wake up Vantage console
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] ERROR weewx.engine: 
> Import of driver failed: Unable to wake up Vantage console (<class 
> 'weewx.WakeupError'>)
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****  Traceback (most recent call last):
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      self.console = loader_function(config_dict, self)
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in 
> loader
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      return VantageService(engine, config_dict)
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1939, in 
> __init__
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 521, in 
> __init__
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      self._setup()
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1340, in 
> _setup
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      self.port.wakeup_console(max_tries=self.max_tries)
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in 
> wakeup_console
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****      raise weewx.WakeupError("Unable to wake up Vantage console")
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:   
>   ****  weewx.WakeupError: Unable to wake up Vantage console
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL __main__: 
> Unable to load driver: Unable to wake up Vantage console
> Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL __main__:     
> ****  Exiting...
>
>
> On Thursday, November 10, 2022 at 3:34:49 PM UTC-6 vince wrote:
>
>> How is your vue connected to the laptop ?
>>
>> If it is a Davis USB data logger 'or' a serial logger+serial/usb adaptor, 
>> The usual device for a modern Linux is /dev/ttyUSB0 and there are a couple 
>> ways to figure that out.
>>
>> One way is to run 'dmesg' and look at the output.  On my pi4 here it 
>> would include:
>> [    6.515632] pl2303 1-1.3:1.0: pl2303 converter detected
>> [    6.533119] usb 1-1.3: pl2303 converter now attached to ttyUSB0
>>
>> That's my serial2USB adaptor that the Vantage serial logger is connected 
>> to.   Note the 'ttyUSB0' which shows that /dev/ttyUSB0 is the device for my 
>> setup here, if that helps any.
>>
>> Running 'lsusb' will show you what USB devices are connected to the box:
>> pi@pi4:~ $ lsusb
>> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial 
>> Port / Mobile Action MA-8910P
>> Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>
>> Note bus 001 device 003 matches up with the "usb 1-1.3" from the dmesg 
>> command.
>>
>> If you don't see anything connected you might try disconnecting and 
>> reconnecting your console from the computer (assuming it's USB) and the 
>> dmesg command should show that happening.
>>
>> But it's likely /dev/ttyUSB0 that you want...
>>
>> On Thursday, November 10, 2022 at 1:04:34 PM UTC-8 timwill...@gmail.com 
>> wrote:
>>
>>>
>>> I ment to say I used port stting the first time using /dev/ttyUSB0 
>>> not  /dev/ttyS0.. thanks
>>>
>>> On Thursday, November 10, 2022 at 2:41:06 PM UTC-6 Tim Williams wrote:
>>> I'm trying to run my vantage vue on my Laptop with Linux mint 20.3 to 
>>> save elec energy but I am so new at this it is frustrating . so please be 
>>> patient with this newbe ....thanks :)
>>> I corrected duplicate lLattitude and Longitude and then restarted weewx  
>>> but still no luck . Seems to be something to do with my port setting as 
>>> this log indicated. At first stopped weewx and edited con.. I chose the 
>>> /dev/ttyS0 and restarted weewx..log critical errors on the port  setting. 
>>> So I edited weewx again this time using the serial port /dev/ttyS0. And the 
>>> log shows critical error again. What am I doing wrong?  
>>> On Thursday, November 10, 2022 at 2:41:06 PM UTC-6 Tim Williams wrote:
>>>
>>>> I'm trying to run my vantage vue on my Laptop with Linux mint 20.3 to 
>>>> save elec energy but I am so new at this it is frustrating . so please be 
>>>> patient with this newbe ....thanks :)
>>>> I corrected duplicate lLattitude and Longitude and then restarted 
>>>> weewx  but still no luck . Seems to be something to do with my port 
>>>> setting 
>>>> as this log indicated. At first stopped weewx and edited con.. I chose the 
>>>> /dev/ttyS0 and restarted weewx..log critical errors on the port  setting. 
>>>> So I edited weewx again this time using the serial port /dev/ttyS0. And 
>>>> the 
>>>> log shows critical error again. What am I doing wrong?  
>>>>
>>>>
>>>> weewx[7330] CRITICAL weewx.engine:     ****      raise 
>>>> SerialException("Could not configure port: {}".format(msg))
>>>> Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL 
>>>> weewx.engine:     ****  serial.serialutil.SerialException: Could not 
>>>> configure port: (5, 'Input/output error')
>>>> Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL __main__: 
>>>> Unable to load driver: Could not configure port: (5, 'Input/output error')
>>>> Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL __main__:   
>>>>   ****  Exiting...
>>>>
>>>> On Thursday, November 10, 2022 at 1:28:23 PM UTC-6 Tim Williams wrote:
>>>>
>>>>> ThanYk forresponce, Yes it is doubled . How do you fix it? 
>>>>> # Description of the station location
>>>>>     location = "SDora"
>>>>>     
>>>>>     # Latitude in decimal degrees. Negative for southern hemisphere
>>>>>     latitude = 36.7680 -92.2672
>>>>>     # Longitude in decimal degrees. Negative for western hemisphere.
>>>>>     longitude = 36.7680 -92.2672
>>>>>     
>>>>>     # Altitude of the station, with the unit it is in. This is used 
>>>>> only
>>>>>     # if the hardware cannot supply a value.
>>>>>     altitude = 951, foot
>>>>>     
>>>>>     # Set to type of station hardware. There must be a corresponding 
>>>>> stanza
>>>>>     # in this file, which includes a value for the 'driver' option.
>>>>>     station_type = Vantage
>>>>>     
>>>>>     # If you have a website, you may specify an URL. This is required 
>>>>> if you
>>>>>     # intend to register your station.
>>>>>     #station_url = http://www.example.com
>>>>>     
>>>>>     # The start of the rain year (1=January; 10=October, etc.). This is
>>>>>     # downloaded from the station if the hardware supports it.
>>>>>     rain_year_start = 1
>>>>>     
>>>>>     # Start of week (0=Monday, 6=Sunday)
>>>>>     week_start = 6
>>>>>
>>>>> ########################################
>>>>>
>>>>> On Thursday, November 10, 2022 at 12:55:17 PM UTC-6 vince wrote:
>>>>>
>>>>>> Lets see your latitude and longitude lines in weewx.conf
>>>>>> I suspect you have two numbers on the latitude line...
>>>>>>
>>>>>> On Thursday, November 10, 2022 at 10:51:40 AM UTC-8 
>>>>>> timwill...@gmail.com wrote:
>>>>>>
>>>>>>> Hi to all,     For what ever reason weewx will not work after 
>>>>>>> installing via the instructions here: 
>>>>>>> https://www.weewx.com/docs/debian.htm   As a nwbe to weewx and  
>>>>>>> linux so all help is appreciated Thanks
>>>>>>>
>>>>>>> Here is what I get on the log report:
>>>>>>>
>>>>>>> Here is what I get on the log report:
>>>>>>>
>>>>>>>  sudo tail -f /var/log/syslog
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****  could not convert string to float: '36.7680 -92.2672'
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****  Traceback (most recent call last):
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****    File "/usr/share/weewx/weewxd", line 148, in main
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****      engine = weewx.engine.StdEngine(config_dict)
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****    File "/usr/share/weewx/weewx/engine.py", line 84, in 
>>>>>>> __init__
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****      self.stn_info = weewx.station.StationInfo(self.console, 
>>>>>>> **config_dict['Station'])
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****    File "/usr/share/weewx/weewx/station.py", line 51, in 
>>>>>>> __init__
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****      self.latitude_f      = float(stn_dict['latitude'])
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****  ValueError: could not convert string to float: '36.7680 
>>>>>>> -92.2672'
>>>>>>> Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__: 
>>>>>>>     ****  Exiting.
>>>>>>>
>>>>>>>

-- 
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/dd3be291-9336-4397-b8d8-51eddac09669n%40googlegroups.com.

Reply via email to