You need to do the following:
1. edit weewx.conf (the location of weewx.conf will depend on how you
installed WeeWX, for a setup.py install it will be in /home/weewx,
otherwise it will be in /etc/weewx)
2. set debug = 2 (circa line 11)
3. locate the [WS1] stanza and enter a line read_debug = 2 (I know Matthew
said debug_read = 1 but according to the driver 2 will give more info)
somewhere under [WS1], for example:
[WS1]
# This section is for the ADS WS1 series of weather stations.
# Driver mode - tcp, udp, or serial
mode = serial
# If serial, specify the serial port device. (ex. /dev/ttyS0,
/dev/ttyUSB0,
# or /dev/cuaU0)
# If TCP, specify the IP address and port number. (ex.
192.168.36.25:3000)
port = /dev/ttyUSB0
# The amount of time, in seconds, before the connection fails if there
is
# no response
timeout = 3
debug_read = 2
# The driver to use:
driver = weewx.drivers.ws1
Your [WS1] stanza may have different settings, that is not important, what
is import is to add the read_debug line.
4. save weewx.conf
5. restart WeeWX and let it run for at least 10 minutes
6. take a copy of the log from when you restarted WeeWX covering the whole
10 minute (at least) period
7. post the log extract here without change
Gary
On Thursday, 6 September 2018 01:10:49 UTC+10, Sairam Reddy Gayam wrote:
>
> Hardware setup is: USB-to-Serial (exactly the one in below link), USB end
> connected to Raspberry Pi (Model 3 B+) running latest Raspbian OS.
> The logs were repeating themselves. Weewx engine starts fine and attempts
> to read the data from WS1 for 5 times, the cycle repeats every 60 seconds.
>
> " turn up the debug " - how do i do this?
>
> Let me know if you need any additional info.
>
> *USB to Serial adapter:
> https://www.adafruit.com/product/954?gclid=CjwKCAjw_b3cBRByEiwAdG8Wqsin2OTBfbZYWYdOGAfOTQrFS9N3ipR302WZe6v_J6OyOP18qNhEeRoCgSMQAvD_BwE
>
> <https://www.adafruit.com/product/954?gclid=CjwKCAjw_b3cBRByEiwAdG8Wqsin2OTBfbZYWYdOGAfOTQrFS9N3ipR302WZe6v_J6OyOP18qNhEeRoCgSMQAvD_BwE>*
>
>
> *Best Regards,**Ram* <https://www.linkedin.com/in/gayamsairam>
>
>
> On Wed, Sep 5, 2018 at 5:02 AM Matthew Wall <[email protected]
> <javascript:>> wrote:
>
>> what gary said. turn up the debug, and capture output from the time you
>> start weewx until after a few archive intervals or restart cycles.
>>
>> you *should* be able to do this with this config:
>>
>> debug = 2
>> [WS1]
>> ...
>> debug_read = 1
>>
>> but you might have to set DEBUG_READ = 1 in the ws1.py file itself (look
>> at the beginning of the file)
>>
>> that will tell us what your ws1 is spitting out
>>
>> it also matters whether you are connecting directly or using a serial
>> extender or a serial-to-ethernet adapter. so let us know your hardware
>> configuration.
>>
>> m
>>
>> --
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
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.