Wlink Driver 0.11 rain record issue

37 views
Skip to first unread message

John Cheesbrough

unread,
Nov 29, 2017, 2:44:02 AM11/29/17
to weewx-user
I am now running Weewx 3.8.0 to download data from Weatherlink.com without errors reported using Wlink 0.11 driver.
However when I validate the data I find that the rain is overstated.

I am using a Davis Vue ISS with a 0.2 mm bucket and not a US version. Does the driver know from each archive record which bucket is being used or do I need to add this to a config file? if it needs to be added to the config file what is the format? Or do I need to do something else?

I have had the same problem when using weatherlink 6.0.3 software to download from either the console or weatherlink.com. The cause was that I had defined the bucket in the weatherlink 6.0.3 software as the US size. This resulted in each click of the bucket representing more than it should. Therefore the more rainfall in a day the greater the error. Once I had changed the bucket size in the software to the correct version the rain data was correct. If I wanted to see rainfall data as inches I use the software to do the conversion.

Thanks
John

Thomas Keffer

unread,
Nov 29, 2017, 6:57:17 AM11/29/17
to weewx-user
The rain bucket size should be set on your Vue console, or by using wee_device. Once properly set, the console will report in inches (not bucket tips), so there is nothing that needs to be set in the weewx.conf configuration file.

-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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Cheesbrough

unread,
Dec 2, 2017, 1:18:08 PM12/2/17
to weewx-user
I don’t think I explained myself well and I have done some further investigation. Let me try again.
My vantage vue has the .2 mm bucket and the console passes loop and archive data to weatherlink.com as on that basis without conversion
The output from Weatherlink.com to anything that pulls off that data is for the .2mm bucket and not .1 inch
Wlink 0.11 driver parses the data and passes the data to the WeeWX database as .1 inch.
If it is stored on the WeeWX database as US it should be stored as 0.7874 of inch but it isn’t it is stored as .1
As a consequence this overstates the rainfall.
I have tried changing numerous settings but have not succeeded in sorting it. I am not sure if it is the driver or WeeWX that needs to be tweaked.
Any guidance would be welcome.
Thanks
John

Thomas Keffer

unread,
Dec 2, 2017, 1:31:15 PM12/2/17
to weewx-user
My apologies. I misunderstood your question.

You'll have to wait until the author of the wlink driver gets back. 

-tk

Thanks
John

mwall

unread,
Dec 2, 2017, 3:57:16 PM12/2/17
to weewx-user
john,

please try the attached wlink 0.12rc1.py

you will have to set the bucket size in the configuration like this:

[WeatherLink]
    ...
    rain_bucket_size = 1 # 0=0.01inch; 1=0.2mm; 2=0.1mm

please let us know how it goes (you can thank tom for the solution - i just pinched the code from the vantage driver :)

m
wlink-0.12rc1.py

John Cheesbrough

unread,
Dec 3, 2017, 4:58:57 AM12/3/17
to weewx...@googlegroups.com
Matthew
Thanks for the response 
I have tried and got errors the report from console is pasted below.
I did notice that the line to add to the configuration referred to rain_bucket_size and the wlink.py refers to rain_bucket_type
Regards
John

default 09:47:31.507409 +0000 Python engine: Caught unrecoverable exception in engine:
default 09:47:31.507495 +0000 Python    ****  invalid syntax (wlink.py, line 114)
default 09:47:31.507972 +0000 Python    ****  Traceback (most recent call last):
default 09:47:31.508063 +0000 Python    ****    File "/Users/Shared/weewx/bin/weewx/engine.py", line 865, in main
default 09:47:31.508205 +0000 Python    ****      engine = engine_class(config_dict)
default 09:47:31.508329 +0000 Python    ****    File "/Users/Shared/weewx/bin/weewx/engine.py", line 71, in __init__
default 09:47:31.508442 +0000 Python    ****      self.setupStation(config_dict)
default 09:47:31.508551 +0000 Python    ****    File "/Users/Shared/weewx/bin/weewx/engine.py", line 95, in setupStation
default 09:47:31.508671 +0000 Python    ****      __import__(driver)
default 09:47:31.508777 +0000 Python    ****    File "/Users/Shared/weewx/bin/user/wlink.py", line 114
default 09:47:31.508902 +0000 Python    ****      if rain_bucket_type = 1:
default 09:47:31.509029 +0000 Python    ****                          ^
default 09:47:31.509132 +0000 Python    ****  SyntaxError: invalid syntax
default 09:47:31.509239 +0000 Python    ****  Exiting.


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/ER4cyPQmEak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

gjr80

unread,
Dec 3, 2017, 5:07:29 AM12/3/17
to weewx-user
John,

I know Matthew is travelling so perhaps he did not check as much as he usually does. The syntax error can be fixed by replacing the = at line 114 with ==. You are also correct about rain_bucket_type, you should use rain_bucket_type in weewx.conf.

Gary

John Cheesbrough

unread,
Dec 3, 2017, 6:34:41 AM12/3/17
to weewx...@googlegroups.com
That sorted it!
Thanks to All
Regards
John
Reply all
Reply to author
Forward
Message has been deleted
0 new messages