I have exactly the same problem with: LOOP data is not being downloaded into the database. It is downloading only archive data each hour.
El viernes, 8 de junio de 2018, 17:57:39 (UTC+2), Philip Kutzenco escribió: > > m, > > As an addition, I noted an error in today's log file from wlink. After > WeeWX manager added a number of records to the database and before the > report images were created, I see the following three lines: I'm not sure > if this helps understand why LOOP data is not being read. > > > Jun 8 11:46:16 raspberrypi weewx[554]: wlink: cannot make timestamp: > ds=65535 ts=65535 > Jun 8 11:46:16 raspberrypi weewx[554]: wlink: cannot make timestamp: > ds=65535 ts=65535 > Jun 8 11:46:16 raspberrypi weewx[554]: wlink: cannot make timestamp: > ds=65535 ts=65535 > > Note that debugging at this time (unlike the file I uploaded in my > previous post) is set at 0. > > Best, > phil > > > On Thursday, June 7, 2018 at 8:03:52 PM UTC-4, Philip Kutzenco wrote: > >> 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 >> >> >> On Thursday, June 7, 2018 at 11:29:07 AM UTC-4, mwall wrote: >>> >>> >>> >>> On Thursday, June 7, 2018 at 9:50:35 AM UTC-4, Philip Kutzenco wrote: >>>> >>>> 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 >>>> <http://www.google.com/url?q=http%3A%2F%2Fweatherlink.com&sa=D&sntz=1&usg=AFQjCNGyUjysADXnoelgLRYGuTlRYxanug> >>>> >>>> V1 you go to https://www.weatherlink.com/login.php >>>> To login to weatherlink.com V2 you go to >>>> https://www.weatherlink.com/login >>>> >>>> I'll bet that wlink is trying to login to V1! >>>> >>>> Is that something I can change, or do you need to make that change? >>>> >>> >>> >>> hi phil, >>> >>> the weewx-wlink uploader uses these URLs: >>> >>> 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 >>> where USERNAME is your username and PASSWORD is your password, and XXX >>> is a davis timestamp >>> >>> try entering those URLs directly using curl or wget (or a web browser) >>> to see what you get. >>> >>> there is no distinction made regarding V1 or V2 >>> >>> the davis timestamp is derived from a unix epoch timestamp like this: >>> >>> 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 >>> return x >>> >>> 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]. For more options, visit https://groups.google.com/d/optout.
