Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

New feature - Davis WLL historic data catch-up

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

New feature - Davis WLL historic data catch-up

Post by mcrossley »

Build 3064 - version 3.4.0 of Cumulus MX now allows users to Davis WeatherLink Live devices to download catch-up data for periods when Cumulus is not running.

It does this by fetching the missing data from WeatherLink.com.

There are a few caveats around this though...
  1. You must have at least a Pro subscription for your device on WL.com to grant access to the historic data.
  2. The new APIv2 used to access the data.
  3. The APIv2 keys are available via WL.com.
If you meet the criteria and are willing to accept that the API is not yet "production" ready, then these are the steps you need to follow...
  1. Sign on to the Davis weatherlink.com with your normal username/password
  2. On wl.com open your user profile, you will see a section titled "API Key v2"
  3. If you do not already have a key and secret displayed, click "Generate v2 key" to create them. Copy these strings somewhere safe so you can later paste them into Cumulus
  4. Ensure you are running Cumulus MX v3.4.0
  5. If this your first run of CumulusMX.
    1. Go into the Station setup and select Davis WLL as the station type
    2. In the WLL section enter your API key and secret. LEAVE THE STATION ID BLANK
    3. Set up your sensor to transmitter ID mappings if different from the defaults
    4. It is not necessary to enter the WLL IP address, Cumulus should just find it on your network. But if you know it it does not harm to enter it, Cumulus will change it anyway if your WLL ever changes address.
    5. Save the setup
    6. Stop/Restart Cumulus
  6. If you only have a single station registered with WL.com, then Cumulus should discover its ID automatically and start using it
  7. But if you have more than one, the Cumulus will list their API IDs and names in the console window.
  8. Note the ID you want to use. Go back into the Station setup and enter the ID there. You do not need to restart Cumulus after that.
  9. Enjoy! Cumulus should now download missing data for periods it is stopped.
There is effectively no limit on how much historic data you can download**, I have tested using a four day catch-up without issues.

Davis impose rate and data limits on the APIv2 - currently they are...
- 300 API calls per hour, or 2 API calls per second
- 24 hours of data in any one call
Cumulus honours these restrictions.

The APIv2 uses both a key and a secret that encrypts part of the URL making playback or emulating the API calls by another user impossible. A nice feature other web APIs could emulate.

**Cumulus MX will get the max 24 hours data per call if required, which will give a limit of 300 days of historic data catch-up.
User avatar
saratogaWX
Posts: 1238
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by saratogaWX »

This is great, Mark! Will you also do a Wiki page for this too? 8-)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

:) Maybe - at some point! Just fixing/working around some bugs at the mo - some mine, some Davis!
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

Here's a start... https://cumuluswiki.org/a/WeatherLink_Live

I have linked it off the Supported Devices page
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

Davis have announced that the WeatherLink.com API v2 that this solution uses will go live on 11th March 2020.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

And live it has gone. I have updated the Wiki page above to reflect the process for now obtaining your key and secret
hermite
Posts: 4
Joined: Tue 19 Jun 2018 10:55 am
Weather Station: Vantage Pro 2
Operating System: Windows 10

Re: New feature - Davis WLL historic data catch-up

Post by hermite »

WLL_history.png
mcrossley wrote: Wed 11 Mar 2020 6:50 pm And live it has gone. I have updated the Wiki page above to reflect the process for now obtaining your key and secret
Hello, I'm trying this feature and all connections work fine, However, the downloaded files do not contain valid data (all values are set to '0'), yet I can confirm on WLL that data is populated with valid values... example from downloaded historical data;

28-08-18;22:57;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;22:58;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;22:59;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:00;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:01;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:02;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:03;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:04;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:05;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:06;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:07;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:08;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0
28-08-18;23:09;0,0;0;0,0;0,0;0,0;0;0,0;0,0;0,0;320,4;0,0;0;0,0;0,0;0,0;0,0;0;0,00;0,00;-4,0;0;0,0;0;0,0;0,0;0,0;0,0

Any thoughts?
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

Please stop cumulus and reset your data so that it will perform a catch up again.
The start cumulus using the -debug command line parameter.
Then post the MXdiags log file.
hermite
Posts: 4
Joined: Tue 19 Jun 2018 10:55 am
Weather Station: Vantage Pro 2
Operating System: Windows 10

Re: New feature - Davis WLL historic data catch-up

Post by hermite »

mcrossley wrote: Tue 25 Aug 2020 1:47 pm Please stop cumulus and reset your data so that it will perform a catch up again.
The start cumulus using the -debug command line parameter.
Then post the MXdiags log file.
I have 1.4K archive days, so I halted the process pretty early. I shrunk the debug file as it is too big and repetitive for this site to handle.

What stands out is 'WL.com historic: found an unknown data structure type [4]!'.
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by freddie »

hermite wrote: Tue 25 Aug 2020 2:05 pm I shrunk the debug file as it is too big and repetitive for this site to handle.
For future reference, if you compress/zip the file first then you will comfortably be within the site's max file size limit.
Freddie
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

A data structure type = 4 means that the archive data is coming from a "WeatherLink IP/Vantage Connect" rather than a WeatherLink Live device.

Sensor type = 33 means the sensor data is from a Vantage Pro.

Cumulus is only set up to work with WeatherLink Live devices using the Davis v2 API.
hermite
Posts: 4
Joined: Tue 19 Jun 2018 10:55 am
Weather Station: Vantage Pro 2
Operating System: Windows 10

Re: New feature - Davis WLL historic data catch-up

Post by hermite »

mcrossley wrote: Tue 25 Aug 2020 4:38 pm A data structure type = 4 means that the archive data is coming from a "WeatherLink IP/Vantage Connect" rather than a WeatherLink Live device.

Cumulus is only set up to work with WeatherLink Live devices using the Davis v2 API.
Perfect and thank you. I didn't enough reading with respect to limitation to WLL and not VP.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New feature - Davis WLL historic data catch-up

Post by mcrossley »

I have only added the ability to decode the various WLL records. The WL API catalog of sensor definitions is currently 2.5 MB is size, they support an awful lot of different sensor types, it would be a big task just to support the common ones.

If you want to import old history from the VP Pro into Cumulus, then I'm afraid you will either have to download the data and manually manipulate it, or knock up a script/program to do that.
hermite
Posts: 4
Joined: Tue 19 Jun 2018 10:55 am
Weather Station: Vantage Pro 2
Operating System: Windows 10

Re: New feature - Davis WLL historic data catch-up

Post by hermite »

mcrossley wrote: Tue 25 Aug 2020 4:58 pm I have only added the ability to decode the various WLL records. The WL API catalog of sensor definitions is currently 2.5 MB is size, they support an awful lot of different sensor types, it would be a big task just to support the common ones.

If you want to import old history from the VP Pro into Cumulus, then I'm afraid you will either have to download the data and manually manipulate it, or knock up a script/program to do that.
Tks again. I have downloaded all my history as .csv. I'll see how I can play with that.
Post Reply