Author Topic: Template hasn't updated since 7:01 July 18  (Read 340 times)

0 Members and 1 Guest are viewing this topic.

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2032
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Template hasn't updated since 7:01 July 18
« on: July 19, 2018, 03:15:11 AM »
I haven't changed a thing, but I am using the Leuven 2.8 template wiht Weatherlink 2.0.

I couldn't sleep because of my asthma so while waiting for the meds to kick in. I checked my site and noticed just that.    I didn't change anything, and Ichecked that the API and the key was the same.  The Weatherlink 2.0 site is showing the correct data, but for some odd reason the web  page isn't polling the api.

So  just curious,  is this with the web host, weatherlink or what?   anyone have similar situation.   The page just isn't updating.

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

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Template hasn't updated since 7:01 July 18
« Reply #1 on: July 19, 2018, 07:32:22 AM »
I haven't changed a thing, but I am using the Leuven 2.8 template wiht Weatherlink 2.0.

I couldn't sleep because of my asthma so while waiting for the meds to kick in. I checked my site and noticed just that.    I didn't change anything, and Ichecked that the API and the key was the same.  The Weatherlink 2.0 site is showing the correct data, but for some odd reason the web  page isn't polling the api.

So  just curious,  is this with the web host, weatherlink or what?   anyone have similar situation.   The page just isn't updating.

https://www.desmoinesweather.org
This is from your html source for the startpage
Code: [Select]
tagsWLCOM.php (cache/scriptsDWtagsWLCOMFinHgmphininmihrm)
        cache time   = 2018-07-18T19:02:27-05:00 from unix time 1531958547
        current time = 2018-07-19T06:13:10-05:00 from unix time 1531998790
        difference   = 40243 (seconds)
        diff allowed = 140 (seconds) -->
<!-- tagsWLCOM.php: data to old, will be loaded from url  -->
<!-- tagsWLCOM.php: data loaded from url: http://api.weatherlink.com/v1/NoaaExt.xml?user=_DID_&pass=_PASSWORD_&apiToken=_KEY_ -->
<b>Warning</b>:  DOMDocument::loadXML(): Empty string supplied as input in <b>/home3/weathera/public_html/weather28/scriptsDW/tagsWLCOM.php</b> on line <b>115</b><br />
<H3 input file from wl.com has no valid contents - program ends, please reload page </h3><!--  module wsDataGet.php (66): uploaded file incorrect - reverting to cached file -->

When I use my wl.com id/pass/apitoken  my html of the same script (at https://sluispark.be/weather28/?debug) shows correct data
Code: [Select]
tagsWLCOM.php (cache/scriptsDWtagsWLCOMChPakmhmmcmkmhrft)
        cache time   = 2018-07-19T11:51:45+02:00 from unix time 1531993905
        current time = 2018-07-19T13:15:21+02:00 from unix time 1531998921
        difference   = 5016 (seconds)
        diff allowed = 140 (seconds) -->
<!-- tagsWLCOM.php: data to old, will be loaded from url  -->
<!-- tagsWLCOM.php: data loaded from url: http://api.weatherlink.com/v1/NoaaExt.xml?user=_DID_&pass=_PASSWORD_&apiToken=_KEY_ -->
<!-- module wsFunctions.php: function wsConvertTemperature in = temperature: 77.7 , unitFrom: F ,unitTo: , out = 25.4 -->
At your site an empty / invalid XML  answer arrives from wl.com. At my site the xml is correct and can be processed.

First thing to do: Modify the URL 
Code: [Select]
http://api.weatherlink.com/v1/NoaaExt.xml?user=_DID_&pass=_PASSWORD_&apiToken=_KEY_ with your credentials and run it in the browser. 
1. Maybe this returns a human readable message explaining that there is a problem
or
2. It returns the correct data in your browser.  If so we have to investigate why it is not working correctly at your server.

Lets test it in your browser.

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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Template hasn't updated since 7:01 July 18
« Reply #2 on: July 19, 2018, 10:32:19 AM »
So the problem is somewhere on your webserver.
I attach a small test-program.
1. unzip
2. Modify line 25 with your credentials and
3. place it on your server, in the root  or in weather28/
4. test it  with https://www.desmoinesweather.org/_the_folder_or_nothing_/test_url.php

As soon as you uploaded the script, test it and mail me the link
https://www.desmoinesweather.org/test_url.php or wherever you put the script.
So that I can check the debug results.

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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Template hasn't updated since 7:01 July 18
« Reply #3 on: July 19, 2018, 11:02:01 AM »
https://www.desmoinesweather.org/weather28/test_url.php

I did check with Davis this morning about if something had changed on the api, and they are fine.  so yes, the problem is with the web server people- hostmonster.com  .   

If you can find what is wrong, then I will contact them to correct it.  They are good people, but have to be told where to fix things.

Thank you , Wim  in advance.
If you click the link, you see an error message. Nothing to do with your current problem.
Error codes: Illegal characters found in URL

Please remove the   _     the space    and the new-line   at the end of the url at line 25 so we can test.
That line should end at 3A77';

As now nothing was tested.

Wim
« Last Edit: July 19, 2018, 11:10:45 AM by wvdkuil »
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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Template hasn't updated since 7:01 July 18
« Reply #4 on: July 19, 2018, 11:21:48 AM »
I went to the error log and this is the dominant error:


[18-Jul-2018 20:04:15 America/Chicago] PHP Warning:  DOMDocument::loadXML(): Empty string supplied as input in /home3/weathera/public_html/weather28/scriptsDW/tagsWLCOM.php on line 115
Yes, we discussed that already. See my first post, it is in the html also.  We need to know WHY you get an empty answer.

Please remove your typo from the test script. As it is nearly evening here in Belgium and I am very busy this evening.
Wim
« Last Edit: July 19, 2018, 11:25:53 AM by wvdkuil »
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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Template hasn't updated since 7:01 July 18
« Reply #5 on: July 19, 2018, 11:33:01 AM »
I went to the error log and this is the dominant error:


[18-Jul-2018 20:04:15 America/Chicago] PHP Warning:  DOMDocument::loadXML(): Empty string supplied as input in /home3/weathera/public_html/weather28/scriptsDW/tagsWLCOM.php on line 115
Yes, we discussed that already. See my first post, it is in the html also.  We need to know WHY you get an empty answer.

Please remove your typo from the test script. As it is nearly evening here in Belgium and I am very busy this evening.
Wim
OK, the testscript returns correct data.

So something must have changed in your settings or whatever as the other scripts do not get any data at all.
Please check your wsUserSettings.php if there are errors in the three important fields.

Wim
« Last Edit: July 19, 2018, 11:49:07 AM by wvdkuil »
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 Aardvark

  • Forecaster
  • *****
  • Posts: 2032
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Re: Template hasn't updated since 7:01 July 18
« Reply #6 on: July 19, 2018, 11:46:44 AM »
I got it .   the  Did key  was the error.

What happened , I had a second IP logger .  and it was migrated to the same account I had the first IP logger.   Since I changed nothing,  it was the DID was the error.

On the bright side, we have yet another clue to what can go wrong with the Weatherlink 2.0 migration.   If a person has an 2nd logger and it is migrated and this happens , it then is the did logger that must be changed.

Wim, I am so very happy you got my brain working again.  My asthma has come back to haunt me again and it really isn't fun at my age.  I do deeply appreciate you taking time out from your home life and helping me.

If there is anything I can possibly do for you, please let me know and Iwill do it.

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

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2032
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Re: Template hasn't updated since 7:01 July 18
« Reply #7 on: July 19, 2018, 11:58:03 AM »
One further thing...

There can be only 1 api code per user.  So in my case, I have two IP loggers,  one API token .  The difference is in the DID .  Hope that help someone like me  or in the future.
Davis VP2 Plus; 24h  FARS;  Soil Moisture/Temp Station;Weatherlink ;
https://www.desmoinesweather.org

 

anything