Re: [weewx-user] Can't get weewx working on a new server

2020-11-26 Thread Tom Keffer
If it works on your old computer, but not the new, then there is something
wrong with the RS232 port on the new computer, or the driver that supports
it. Whatever it is, it is intermittent, as the computer is able to
occasionally communicate with  the console.

A few things to try:

1. If the computer has more than one RS232 port, try a different one.
2. Do you have a serial-to-usb converter? If so, you could use that instead.
3. Check dmesg, just to make sure the kernel isn't trying to tell you
something. Simply type "dmesg" and check the last 10-20 messages or so.
4. Perhaps your new computer has more RF noise than the old? You could try
some ferrite coils around the serial cable.
5. Finally, it is conceivable that your new computer has an odd default
configuration for serial ports. To see what it is using, try this:

*stty -a -F /dev/ttyS0*


(From the log, it looks like you're using /dev/ttyS0, but substitute as
necessary.)

Configuring serial ports is an ancient black art with its roots in the
1970s and I don't pretend to be an expert.


On Wed, Nov 25, 2020 at 7:24 PM kiwigander  wrote:

>
> Hi all, I'm trying to move weewx to a new computer but getting nowhere
> fast.
>
> The weather station is a Vantage Pro2 with serial data logger (not USB)
> communicating with an RS232 port on my old Dell D520 running Linux Mint
> 17.  I'm shifting my server functions to a new fanless mini-PC with RS232
> ports.
>
> The old setup was installed around 2012 and I don't recall updating it
> (other than the OS) since.
>
> The new installation is weewx 4.2.0.  I tried the .deb package; when I
> couldn't get it working I purged it and tried again with the setup.py
> method and Python 3.  The file structure now looks rather like the old
> setup.
>
> Anyway, I can't get the new installation to work.  No html page is
> created.  Here is a snippet of output from dmesg:
>
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage:
> Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 2 instead
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in
> get_data_with_crc16
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: No 
> received from console
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up
> of console successful
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware
> name: Vantage Pro2
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdTimeSynch
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdTimeSynch
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdConvert
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: StdConvert target unit
> is 0x1
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdConvert
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdCalibrate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdCalibrate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdQC
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdQC
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxservices.StdWXCalculate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.manager: Daily summary version
> is 2
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxservices.StdWXCalculate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdWXXTypes
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdWXXTypes
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdPressureCooker
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdPressureCooker
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdRainRater
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdRainRater
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdArchive
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Archive will use data
> binding wx_binding
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Record generation will
> be attempted in 'hardware'
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.engine: The archive interval
> in the configuration file (300) does not match the station hardware
> interval (60).
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using archive interval
> of 60 seconds (specified by hardware)
> Nov 26 

[weewx-user] Can't get weewx working on a new server

2020-11-25 Thread kiwigander

Hi all, I'm trying to move weewx to a new computer but getting nowhere fast.

The weather station is a Vantage Pro2 with serial data logger (not USB) 
communicating with an RS232 port on my old Dell D520 running Linux Mint 
17.  I'm shifting my server functions to a new fanless mini-PC with RS232 
ports.

The old setup was installed around 2012 and I don't recall updating it 
(other than the OS) since.  

The new installation is weewx 4.2.0.  I tried the .deb package; when I 
couldn't get it working I purged it and tried again with the setup.py 
method and Python 3.  The file structure now looks rather like the old 
setup.

Anyway, I can't get the new installation to work.  No html page is 
created.  Here is a snippet of output from dmesg:

Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: 
Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 2 instead
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in 
get_data_with_crc16
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up 
of console successful
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: No  
received from console
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up 
of console successful
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware name: 
Vantage Pro2
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.engine.StdTimeSynch
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdTimeSynch
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.engine.StdConvert
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: StdConvert target unit 
is 0x1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdConvert
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.engine.StdCalibrate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdCalibrate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.engine.StdQC
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdQC
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.wxservices.StdWXCalculate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.manager: Daily summary version 
is 2
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.wxservices.StdWXCalculate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdWXXTypes
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdWXXTypes
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdPressureCooker
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdPressureCooker
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdRainRater
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdRainRater
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.engine.StdArchive
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Archive will use data 
binding wx_binding
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Record generation will 
be attempted in 'hardware'
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.engine: The archive interval in 
the configuration file (300) does not match the station hardware interval 
(60).
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using archive interval 
of 60 seconds (specified by hardware)
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Use LOOP data in hi/low 
calculations: 1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdArchive
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.restx.StdStationRegistry
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: StationRegistry: 
Registration not requested.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdStationRegistry
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.restx.StdWunderground
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: Wunderground: Posting not 
enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdWunderground
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.restx.StdPWSweather
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: PWSweather: Posting not 
enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdPWSweather
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service 
weewx.restx.StdCWOP
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: CWOP: Posting not enabled.