Author Topic: Saratoga now has a plugin for Davis weatherlink.com data  (Read 3922 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Saratoga now has a plugin for Davis weatherlink.com data
« on: April 22, 2017, 05:47:00 PM »
Now available is a WLCOM-plugin that supports conditions collection from the Davis Weatherlink.com website for WeatherLink/WeatherLinkIP/Vantage Connect stations.  The plugin includes a wxsummary.php page, and a copy of the Steel Series Gauges configured for use with WLCOM.

Download from: https://saratoga-weather.org/wxtemplates/install.php
Configure from: https://saratoga-weather.org/wxtemplates/Settings-config-WLCOM.php

A 'live' demo is available (using my WeatherLink.com data) https://saratoga-weather.org/WLCOM/index.php

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga now has a plugin for Davis weatherlink.com V2 data
« Reply #1 on: January 09, 2018, 07:14:16 PM »
Old post, but a major change in WeatherLink.com site (V2) necessitates a change in the API used to get your data.

The WLCOM-plugin has been updated (along with the configuration information).  What has primarily changed is that instead of using your weatherlink.com userid/password to retrieve the data, it now requires the password/DeviceID/Key for the data.  The password remains the same as for your userid on weatherlink.com.  The two new items are available from the WeatherLink, Setup, WeatherLink.com Network dialog in WeatherLink software V6+.   Two new settings have to be added to your Settings-weather.php:

// following two settings are from the WeatherLink, Setup, WeatherLink.com network settings dialog
$SITE['WLCOMdid']   = '-your-device-id-';     // userid for Weatherlink.com
$SITE['WLCOMkey']   = '-your-key';         // WeatherLink.com Network configuration Key

values from the dialog as shown in the attached.

Files updated:
WLCOMtags.php
WLCOM-defs.php
Settings-weather.php
include-wxstatus.php (from Base-* distributions)

Use the update tool https://saratoga-weather.org/wxtemplates/updates.php with a query of 09-Jan-2018, Base-*, WLCOM-plugin

Configure from: https://saratoga-weather.org/wxtemplates/Settings-config-WLCOM.php

Best regards,
Ken
« Last Edit: January 09, 2018, 07:16:02 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PNCATTE

  • Member
  • *
  • Posts: 21
    • STATION METEO DE FLEURIE
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #2 on: May 19, 2022, 04:51:50 AM »
Hello KEN ,

Is the plugin weatherlink.com compatible with a WL LIVE If yes I loaded the template but I still have a blank page I have to make mistakes with
 $SITE['WLCOMdid'] = '001D0A71100E'; userid for Weatherlink.com
$SITE['WLCOMkey'] = 'xxxxxxxxxxxxxxxx'; key for API V2

Thank you in advance for your help

Cordially
Pascal

My site : https://fleuriemeteolive.fr/TEST/

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #3 on: May 19, 2022, 12:34:10 PM »
It seems that with those credentials, weatherlink.com is responding with
Quote
Server error! #13
instead of the expected JSON, so the WLCOM-defs.php script does an exit and your site stops rendering in the browser.  The view-source of wxnewpage.php?debug=y shows
Quote
<!-- WLCOMdefs.php: data loaded from url: http://api.weatherlink.com/v1/NoaaExt.xml?user=001D0A71100E&pass=********&apiToken=zh44atm9ywpurpg7mtev41vgoxhwfoup -->
<!-- HTTP stats:  RC=200 dest=52.54.190.4 port=80 (from sce=212.107.17.1)
      Times: dns=0.018 conn=0.098 pxfer=0.098 get=0.095 total=0.193 secs -->
<!-- saved ./cache/weatherlinkcom.xml 17 bytes -->
and the error cited above is in the cache file.

Can you successfully view your station's data on weatherlink.com?  If so, please post the sharing URL for the page here.  I was unable to find any info about "Server error #13" on the net.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PNCATTE

  • Member
  • *
  • Posts: 21
    • STATION METEO DE FLEURIE
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #4 on: May 19, 2022, 01:00:41 PM »


Good evening,

The station is clearly visible on Weatherlink
here is the link

https://www.weatherlink.com/embeddablePage/show/2599a12219104db0b9888ba8d313f66a/wide

Again thank you for your help

Cordially

Online mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #5 on: May 19, 2022, 01:04:53 PM »
If it's a WLL, then you will not be able to the use the v1 API? Or am I completely on the wrong track?

Code: [Select]
WLCOMdefs.php: data loaded from url: http://api.weatherlink.com/v1/NoaaExt.xml?user=001D0
Mark

Offline PNCATTE

  • Member
  • *
  • Posts: 21
    • STATION METEO DE FLEURIE
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #6 on: May 19, 2022, 02:00:45 PM »
Good evening,

Indeed the WLL does not work with V1 but I do not know which file to modify to validate version 2.
 when I installed the script I just modified the file:Settings-weather.php

Thank you for help

CORDIALY

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #7 on: May 19, 2022, 06:42:24 PM »
Looks like I'll be rewriting the WLCOM plugin to use the V2 API.. The old V1 version worked for me for so long, I forgot they'd upped the API version with different request parameters needed.

I'll post a copy when I have it working with V2.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PNCATTE

  • Member
  • *
  • Posts: 21
    • STATION METEO DE FLEURIE
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #8 on: May 20, 2022, 01:20:46 AM »

Hello,
Thank you for your answer that will allow to use the V2 for the WLL.

Here is a link for the V2:

$url            = 'https://api.weatherlink.com/v2/current/'  ( I'm not on the full line )

AGAIN THANK YOU

CORDIALLY
« Last Edit: May 20, 2022, 01:23:23 AM by PNCATTE »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #9 on: May 22, 2022, 04:19:10 PM »
I've not forgotten about you... I am working through the new V2 API and debugging issues encountered.

Do you have a Basic, Pro, or Pro+ weatherlink.com subscription?  I'm doing debugging with one Pro and one Basic subscription for a VP1+ and a VP2+ station set.  The Pro or Pro+ subscription should allow queries to historical data (not included in Basic), but oddly, that's not working for me.. I've posted a query about that on the Weatherlink.com API discord channel.

It still may take a week or two to get all the code and documentation for V2 done.

Have you tried using the V1 API with the existing WLCOM-plugin?

It does require
Code: [Select]
$SITE['WLCOMpw']    = '-your-password-'; // password for your WeatherLink.com userid
// following two settings are from the WeatherLink, Setup, WeatherLink.com network settings dialog
$SITE['WLCOMdid']   = '-device-id-';   // WeatherLink.com Network configuration Device ID
$SITE['WLCOMkey']   = '-key-';         // WeatherLink.com Network configuration Key
I saw previously that you have the Device ID and Key shown in the image previously.  Perhaps you'd not entered your weatherlink.com password in the WLCOMpw entry?
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PNCATTE

  • Member
  • *
  • Posts: 21
    • STATION METEO DE FLEURIE
Re: Saratoga now has a plugin for Davis weatherlink.com data
« Reply #10 on: May 23, 2022, 03:29:22 AM »
Hello,
No worries for the deadline The work that this represents is important and I can not be demanding because I remain really happy that this template can work 
 
 I have the PRO version and only one VP2+ station with WLL. (I have a lightning detector but ECOWITT brand).

 I tried with the Plugin V1 but it does not work with the WLL

  Thanks again for the development of this plugin.

CORDIALLY
PASCAL

Ecowitt station https://fleuriemeteolive.fr/ECO/