Matt,Thanks so much for the quick reply. I did check my credentials and enclosed my password in quotes as you suggested it contains ! and % as special characters. I still get the same error. I turned on debug=1 and I've attached a file with the output.I really appreciate the help. I'm sure I've set up something incorrectly.
m,Thanks. I will call Davis.But first, I have a question. How does wlink know whether to connect to weatherlink.com V1 or weatherlink.com V2. If, indeed, it is connecting to weatherlink.com V1, then those error messages make sense. Both websites are live. I no longer have an account on V1, but I do have an account on V2.To login to weatherlink.com V1 you go to https://www.weatherlink.com/login.phpTo login to weatherlink.com V2 you go to https://www.weatherlink.com/loginI'll bet that wlink is trying to login to V1!Is that something I can change, or do you need to make that change?
http://www.weatherlink.com/user/USERNAME/index.php?view=main&headers=0&type=2
http://weatherlink.com/webdl.php?timestamp=XXX&user=USERNAME&pass=PASSWORD&action=data
http://weatherlink.com/webdl.php?timestamp=0&user=USERNAME&pass=PASSWORD&action=headers
def _epoch_to_timestamp(epoch):
"""convert unix epoch to davis timestamp"""
tt = time.localtime(epoch)
ds = tt[2] + (tt[1] << 5) + ((tt[0] - 2000) << 9)
ts = tt[3] * 100 + tt[4]
x = (ds << 16) | ts
m,
I called Davis. It turns out that because a single weatherlink.com v2 account can now support multiple devices, to download data, you use the DID of the station as username, instead of the web account username - you use the same password you used before, though.
I tested this by downloading data from the website using the Davis Weatherlink software for Windows.
So, I updated weewx.conf entering my DID as username.
WeeWX with your wlink driver now works! Woo-hoo. But there still is an issue for me. According to the Caveat on your Github page for wlink
This driver obtains LOOP data by polling the weatherlink.com site every 60 seconds. ARCHIVE data are retrieved from the weatherlink.com site using the API published by Davis.
http://www.davisnet.com/support/weather/download/VantageSerialProtocolDocs_v261.pdf
According to the FAQ, LOOP data are uploaded once per minute, and weatherlink.com creates an archive record each hour:
http://www.davisnet.com/support/weather/faq/index.asp?ProdFam=15
Non-archive records downloaded from weatherlink.com contain only a subset of observations: windSpeed, windDir, barometer, outTemp, and rain.
It appears that the archive data is downloaded once per hour after it is created by weatherlink.com and loaded into the sqlite database. However, the LOOP data is not downloaded into the database. The WeeWX report web pages are only updated once per hour. I see on the weatherlink.com web site, that my data logger is, indeed uploading data once per minute, (by the way inside temp and humidity seem included in that once-per-minute data) but the web reports from WeeWX are only updated hourly (with data in 5 minute increments). With the Vantage driver, I do get 5 minute updates from WeeWX.
I restarted WeeWX with wlink and debugging = 1.
I've uploaded those log entries as log.txt.
I hope you can help me correct this. If you need access to weatherlink.com, I can give you my DID and password to log in with (and I’ll change it later).
Thanks again in advance for your great help.
Best,
phil