Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

WeatherLink.com API details

Discussion specific to Davis weather stations
Post Reply
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

WeatherLink.com API details

Post by flort »

I replaced my Fine Offset Station a couple of months ago with a Davis Vantage Vue and WLL (no console). Everything is running fine and I have decided to upgrade to a Pro Subscription to enable historical catch-up if my system goes down or I have a power outage.

I have generated a WeatherLink APIv2 key and secret and entered these in the Station Settings and left WLL device id blank. I stopped Cumulus and restarted but it still shows the following in the ServiceConsoleLog -

2021-12-14 16:09:47.766 Starting on Linux
2021-12-14 16:09:47.812 Creating SIGTERM monitor
2021-12-14 16:09:47.840 Running as a Linux service
2021-12-14 16:09:48.080 Creating main MX log file - MXdiags/20211214-160948.txt
2021-12-14 16:09:48.420 Cumulus MX v.3.14.0 build 3159
2021-12-14 16:09:48.420 Working Dir: /home/pi/CumulusMX/
2021-12-14 16:09:49.591 http://192.168.1.8:8998/
2021-12-14 16:09:49.591 Open the admin interface by entering one of the above URLs into a web browser.
2021-12-14 16:09:49.621 Today.ini = data/today.ini
2021-12-14 16:09:49.622 Last update=2021-12-14T16:09:00
2021-12-14 16:09:52.133 *** No WeatherLink.com API details supplied. Cannot start historic downloads or retrieve health data
2021-12-14 16:09:56.762 Normal running

As would be expected the MXdiags then shows the following -

2021-12-14 16:09:52.012 Station type = Davis WLL
2021-12-14 16:09:52.133 WLL - No WeatherLink.com API configuration supplied, just going to work locally
2021-12-14 16:09:52.133 WLL - Cannot start historic downloads or retrieve health data

I have searched the Forum but can't find anything that gives me any clues on what I have done wrong. Could someone please advise what I am missing.

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

Re: WeatherLink.com API details

Post by mcrossley »

Silly question, but did you remember to save the settings?

Take a look in your Cumulus.ini file, in the [WLL] section you will find entries for...
WLv2ApiKey=
WLv2ApiSecret=
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: WeatherLink.com API details

Post by flort »

Hi Mark,

I found the issue. I have been using Neil's alternative interface and even though it says the settings are saved they are not transferring to the Cumulus.ini file. I opened the normal interface and entered the information and Cumulus.ini was updated. Something for Neil to look at.

Regards,
Trevor
NeilThomas
Posts: 266
Joined: Thu 11 Oct 2012 9:51 am
Weather Station: Davis Vantage Pro2
Operating System: Raspberry Pi 4
Location: Gloucester
Contact:

Re: WeatherLink.com API details

Post by NeilThomas »

Hi

I had not noticed the posting so sorry for the delay.

I have had a quick look at the code and have found nothing yet. Can I ask which page your were using to set the settings? I assume its the 'Extra Sensor Settings' page. I don't use the Davis WLL so am having difficulty pinning down where the issue may be.

Neil
Neil Thomas
website: weather.oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4010
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: WeatherLink.com API details

Post by flort »

Hi Neil,

It's under Station Settings > Davis WeatherLink Live > WeatherLink.com API details. Screenshot attached.
Screenshot.jpg
Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
NeilThomas
Posts: 266
Joined: Thu 11 Oct 2012 9:51 am
Weather Station: Davis Vantage Pro2
Operating System: Raspberry Pi 4
Location: Gloucester
Contact:

Re: WeatherLink.com API details

Post by NeilThomas »

Hi

Thanks for the screenshot.

I think the issue might be that this is the one js file I did not modify the api paths as they already appeared to point to the correct location. However, If you change the following lines to as sown below, it should work (hopefully

Code: Select all

"dataSource": "/api/settings/stationdata.json", // line 9 
"optionsSource": "/json/StationOptions.json", // line 10
"schemaSource": "/json/StationSchema.json",   // line 11
        
url: "/api/setsettings/updatestationconfig.json",  // line 40

Alternatively download the following to replace your station settings.js file.
cmx-b3159-stationsettings.js.zip
Hope this resolves the issue. Please let me know otherwise.

Neil
You do not have the required permissions to view the files attached to this post.
Neil Thomas
website: weather.oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4010
flort
Posts: 213
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: WeatherLink.com API details

Post by flort »

Hi Neil,

Unfortunately that hasn't resolved the issue. When I make a change and save it says settings have been updated and the timestamp on Cumulus.ini shows that changes have occurred to the file but when I view the file no changes have happened.

Regards,
Trevor
NeilThomas
Posts: 266
Joined: Thu 11 Oct 2012 9:51 am
Weather Station: Davis Vantage Pro2
Operating System: Raspberry Pi 4
Location: Gloucester
Contact:

Re: WeatherLink.com API details

Post by NeilThomas »

OK. I'll take another look but I am at a loss to know what it might be. None of what I have done should affect the mechanics of the page. It might take me a little time to resolve so make sure you only use my system as an alternative and not a replacement.

Neil.
flort wrote: Tue 21 Dec 2021 12:14 pm Hi Neil,

Unfortunately that hasn't resolved the issue. When I make a change and save it says settings have been updated and the timestamp on Cumulus.ini shows that changes have occurred to the file but when I view the file no changes have happened.

Regards,
Trevor
Neil Thomas
website: weather.oaktreewebs.co.uk | Davis Vantage Pro II | CumulusMX, Raspberry Pi 4 | MX V4 build 4010
Post Reply