Author Topic: WeatherLink.com API for data retrieval  (Read 4453 times)

0 Members and 1 Guest are viewing this topic.

Offline wicked

  • Member
  • *
  • Posts: 27
Re: WeatherLink.com API for data retrieval
« Reply #25 on: February 20, 2018, 03:27:32 PM »
I may be missing this - but the json and xml files do not have/report THSW index.  I do see heat index.  Anyone know why this is not passed?

Because current THSW index is not available.

Is this by design or some limitation? I find THSW very useful.

I use WL2.0 And wanted to build a custom webpage and was hoping to show THSW.

In WL2.0 the only place to get THSW is in the chart area. They do not show it on the bulletin page, the mobilize page or the mobilize app. It does in fact show it in their weatherlink app - although update frequency seems once an hour at best.

Whatís interesting is that for mobilize (both app and web) the field is there but it only populates ď- -ď

So it seems they have the data since itís show accurately in the chart (and my VP2 console) and I opened a ticket with them for the app not populating the field.



Screen shots:

Mobilize app - iPhone:

 [ You are not allowed to view attachments ]



WL iphone app:

 [ You are not allowed to view attachments ]



WL2.0 website - chart tab:

 [ You are not allowed to view attachments ]



WL2.0 website - mobilize tab:

 [ You are not allowed to view attachments ]
« Last Edit: February 20, 2018, 03:44:37 PM by wicked »

Offline dalecoy

  • Forecaster
  • *****
  • Posts: 6267
    • Lee's Summit, MO
Re: WeatherLink.com API for data retrieval
« Reply #26 on: February 20, 2018, 04:11:58 PM »
I may be missing this - but the json and xml files do not have/report THSW index.  I do see heat index.  Anyone know why this is not passed?

Because current THSW index is not available.

Is this by design or some limitation? I find THSW very useful.

I use WL2.0 And wanted to build a custom webpage and was hoping to show THSW.

In WL2.0 the only place to get THSW is in the chart area. They do not show it on the bulletin page, the mobilize page or the mobilize app. It does in fact show it in their weatherlink app - although update frequency seems once an hour at best.

Whatís interesting is that for mobilize (both app and web) the field is there but it only populates ď- -ď

So it seems they have the data since itís show accurately in the chart (and my VP2 console) and I opened a ticket with them for the app not populating the field.


I hope you are successful - but this link from 8 years ago says I had been asking for that for over 3 years....

http://www.wxforum.net/index.php?topic=6666.msg63732#msg63732

THW may be available, along with "Daily High THSW".  (I'm just going by the available tags in WeatherLink software)

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2028
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Re: WeatherLink.com API for data retrieval
« Reply #27 on: February 20, 2018, 04:37:28 PM »
I find THSW  very useful for those days I want the air conditioner on and the wife doesn't.  I put it up on the Kitchen Console and we have coolness in the summer.
I do  believe that Weatherdisplay has those tags. 

However, neither does Weatherlink 1.0; Weatherlink 2.0 or the app for whatever platform you use, have that sent or calculated.   I suspect someone could dig out the formula and write a script that has that calculation.  I do see that the WL 2.0 phone app has that.  Perhaps the best route would be to contact Davisnet and ask them to put that tag out there.   They did say that the desktop (computer) based software was no longer to be supported.

Davis VP2 Plus; 24h  FARS;  Soil Moisture/Temp Station;Weatherlink ;
https://www.desmoinesweather.org

Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #28 on: February 20, 2018, 04:47:22 PM »
They did say that the desktop (computer) based software was no longer to be supported.

To be accurate, Davis have intimated that local Weatherlink is not likely to be significantly developed any further, which is something different from not being supported. So if there's anything new with Windows, USB drivers etc that is incompatible with WL603 then a new WL version with fixes is likely to appear. Indeed I think there might be one pending to deal with some potential issue, but can't quite remember what.
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2028
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Re: WeatherLink.com API for data retrieval
« Reply #29 on: March 16, 2018, 03:36:50 PM »
This is what I found for WL 2.0  Not sure if it is only for pro or not, but on their user site there is a place to generate the API for your WL2.0
Davis VP2 Plus; 24h  FARS;  Soil Moisture/Temp Station;Weatherlink ;
https://www.desmoinesweather.org

Offline kunnskap

  • Member
  • *
  • Posts: 1
    • Anthony Laurito
Re: WeatherLink.com API for data retrieval
« Reply #30 on: May 04, 2018, 04:52:48 PM »
Hello,

I am a French developer. I created Oras, a free application that retrieves data sent by Weatherlink dataloggers. For this, Oras retrieves the data from the website api.weatherlink.com

Basically, this software is a request from my brother (https://www.facebook.com/MeteoVaroise/), who needed to recover and export this data. I make it available for free if it can be used by others.

The development is in stand-by for the moment, but other functionalities will be able to see the day according to the returns of the users (in particular, other possibilities of export of the recovered data).

For the moment it is not yet translated into English, only in French.

You can download Oras here : http://anthonylaurito.fr/devbox/

Thank you
Anthony

Offline neavilag

  • Member
  • *
  • Posts: 2
    • ClimaYa.com
Re: WeatherLink.com API for data retrieval
« Reply #31 on: June 26, 2018, 09:24:31 PM »
Hi All, I have been using the WL api to get data from stations reporting every 1h, but sometimes the station has no connection so I miss data that I am storing my side.

I see that missed data was transmitted in WL, Since API only shows most recent value not history I cannot "fill" missed values without going to download data and process

is there an API endpoint to get history like querying ?from=20180601&to=20180602 for example ?

regards

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6745
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WeatherLink.com API for data retrieval
« Reply #32 on: June 26, 2018, 10:03:36 PM »
AFAIK, they've not announced a historical retrieval function in the API .. 5/18/2018 doc here https://www.weatherlink.com/static/docs/APIdocumentation.pdf
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #33 on: June 27, 2018, 03:17:39 AM »
It's in binary rather than in JSON or XML format, but of course the web download protocol (explained in the Serial API document) does just this - ie retrieves all summary/archive data over a specified date range from wl.com. For anyone wanted to maintain an independent database of weather data it's probably a better approach than trying to capture all the individual real-time readings.
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline neavilag

  • Member
  • *
  • Posts: 2
    • ClimaYa.com
Re: WeatherLink.com API for data retrieval
« Reply #34 on: June 27, 2018, 09:36:12 AM »
Thank you for your reply saratogaWx

Thank you johnD, can you give me more info/links about this binary output.

Regards
It's in binary rather than in JSON or XML format, but of course the web download protocol (explained in the Serial API document) does just this - ie retrieves all summary/archive data over a specified date range from wl.com. For anyone wanted to maintain an independent database of weather data it's probably a better approach than trying to capture all the individual real-time readings.


Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #35 on: June 27, 2018, 10:22:03 AM »
Download the Serial Tech Ref document from the Davis support site and look at the Web Download section.

Although this document largely applies to downloads direct from the logger, the web download section deal with downloads from wl.com. Remember if you're on the 2.0 platform then you need the DID in place of user name plus the account password.
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline sho23

  • Senior Member
  • **
  • Posts: 54
  • Meep
Re: WeatherLink.com API for data retrieval
« Reply #36 on: August 14, 2018, 04:12:04 PM »
I'm having trouble trying to use the api links listed above.

I have the DID and Key from the side of the WeatherlinkIP
I have the Username and Password to log into weatherlink.com.

https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=Password&apiToken=Key

What am I doing wrong?

There is also no option to generate the token (see attached)
« Last Edit: August 14, 2018, 04:19:00 PM by sho23 »

Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #37 on: August 14, 2018, 04:27:30 PM »
I think they've temporarily broken the little utility that provides the APIToken in yesterday's 2.0 update. But you can still find if you go to the Device|Station URL tab and 'Copy' one of the links. This will paste the full URL to the clipboard so paste this into eg a blank notepad and copy the APIToken from there.
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline sho23

  • Senior Member
  • **
  • Posts: 54
  • Meep
Re: WeatherLink.com API for data retrieval
« Reply #38 on: August 14, 2018, 07:26:42 PM »
I think they've temporarily broken the little utility that provides the APIToken in yesterday's 2.0 update. But you can still find if you go to the Device|Station URL tab and 'Copy' one of the links. This will paste the full URL to the clipboard so paste this into eg a blank notepad and copy the APIToken from there.

Using the DID and the account password, combined with the long string of copy pasted values from the links ... did not work either.
Maybe I should just wait for another 1-2 weeks.

Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #39 on: August 15, 2018, 03:06:24 AM »
If you have the correct credentials then it should work - I've just checked the XML option and it works fine for me.

But it's very easy to have a minor error in the way that the overall URL string is assembled, eg a space between the '=' sign and the following data item (there should be no spaces). Unless the syntax of the URL string is _exactly_ correct then the platform will return an error.
« Last Edit: August 15, 2018, 04:20:32 AM by johnd »
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline sho23

  • Senior Member
  • **
  • Posts: 54
  • Meep
Re: WeatherLink.com API for data retrieval
« Reply #40 on: August 20, 2018, 11:36:25 AM »
The option to generate token is now working.

I'm sure it's just something stupid I missed, but I've tried the following..
Where
DID and KEY are from the WeatherlinkIP
Pass is used to login to Weatherlink.com
TOKEN is generated on Weatherlink account information page.

1. https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=PASS&apiToken=TOKEN
2. https://api.weatherlink.com/v1/NoaaExt.xml?user=_DID_&pass=_PASS_&apiToken=_TOKEN_
3. https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=PASS&apiToken=KEY
4. https://api.weatherlink.com/v1/NoaaExt.xml?user=_DID_&pass=_PASS_&apiToken=_KEY_

Sadly none of them worked... my pass have symbols in it - shouldn't matter, right?
« Last Edit: August 20, 2018, 11:38:41 AM by sho23 »

Offline johnd

  • Forecaster
  • *****
  • Posts: 2779
    • www.weatherstations.co.uk
Re: WeatherLink.com API for data retrieval
« Reply #41 on: August 20, 2018, 11:41:58 AM »
Sadly none of them worked... my pass have symbols in it - shouldn't matter, right?

Hmm, wouldn't guarantee it - something at the back of my mind says I might have had past problems with special characters in WL passwords, but can't recall exact details. Are you not able to reset the pw to simple alphanumeric and check?
Prodata Weather Systems
Prodata's dedicated Davis EnviroMonitor website
UK Davis Premier Dealer - All Davis stations, accessories and spares
Littleport, Ely, Cambs UK

Offline sho23

  • Senior Member
  • **
  • Posts: 54
  • Meep
Re: WeatherLink.com API for data retrieval
« Reply #42 on: August 20, 2018, 01:11:59 PM »
Hmm, wouldn't guarantee it - something at the back of my mind says I might have had past problems with special characters in WL passwords, but can't recall exact details. Are you not able to reset the pw to simple alphanumeric and check?

YES

https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=PASS&apiToken=TOKEN

It does not accept symbols - alphanumeric works. I wish there was a note about it.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1250
    • Support site Leuven Template and scripts
Re: WeatherLink.com API for data retrieval
« Reply #43 on: August 20, 2018, 01:40:20 PM »
Hmm, wouldn't guarantee it - something at the back of my mind says I might have had past problems with special characters in WL passwords, but can't recall exact details. Are you not able to reset the pw to simple alphanumeric and check?

YES

https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=PASS&apiToken=TOKEN

It does not accept symbols - alphanumeric works. I wish there was a note about it.
For a password you type yourself in a field you can use a lot more characters then only alphanumeric ones.

But you are using an URL and there are a lot of characters which are forbidden to be used in an URL as they can have special meanings. If you want to use those "strange / special " characters in an URL you have to encode them.

Google is your friend, this is an example: https://perishablepress.com/stop-using-unsafe-characters-in-urls/

Wim
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com (1.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Offline sho23

  • Senior Member
  • **
  • Posts: 54
  • Meep
Re: WeatherLink.com API for data retrieval
« Reply #44 on: August 22, 2018, 12:17:03 PM »

For a password you type yourself in a field you can use a lot more characters then only alphanumeric ones.

But you are using an URL and there are a lot of characters which are forbidden to be used in an URL as they can have special meanings. If you want to use those "strange / special " characters in an URL you have to encode them.

Google is your friend, this is an example: https://perishablepress.com/stop-using-unsafe-characters-in-urls/

Wim

Aye. I had an inkling about that but decided to doubt myself. I was quadruple checking everything else. Did I swap the 0 with a O, or I with L, or what.
Oh well, lesson learned. Thanks!

 

anything