Author Topic: UV Index Forecast  (Read 1216 times)

0 Members and 1 Guest are viewing this topic.

Offline Forever

  • Senior Contributor
  • ****
  • Posts: 209
UV Index Forecast
« on: February 12, 2021, 12:09:07 PM »
Did the UV Index Forecast script stop working for anyone else?

http://www.weathercat.net/wxuvforecast.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: UV Index Forecast
« Reply #1 on: February 12, 2021, 01:19:09 PM »
Yep.. they switched to all https access.  I've updated the get-UV-forecast-inc.php to V1.09.

Use the update tool for Base-*, Plugin-*, 12-Feb-2021
After installation run wxuvforecast.php?force=1 to refresh the cache

Standalone: download from the script page

Thanks to @lddaly for the heads-up about the change at temis.nl
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 Forever

  • Senior Contributor
  • ****
  • Posts: 209
Re: UV Index Forecast
« Reply #2 on: February 12, 2021, 01:35:01 PM »
Thanks Ken.

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #3 on: February 12, 2021, 06:23:40 PM »
Yep.. they switched to all https access.  I've updated the get-UV-forecast-inc.php to V1.09.

Use the update tool for Base-*, Plugin-*, 12-Feb-2021
After installation run wxuvforecast.php?force=1 to refresh the cache

Standalone: download from the script page

Thanks to @lddaly for the heads-up about the change at temis.nl

Ken is this not suppose to be get-UV-forecast-inc.php?force=1 ?

I've tried both but I only get a 0 byte uv-forecast.txt file created.

if I goto https://www.temis.nl/uvradiation/nrt/uvindex.php?lon=-5.671925&lat=54.634059

there is some data.  its like the data is not being saved to my web server. permissions however are fine.
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: UV Index Forecast
« Reply #4 on: February 12, 2021, 06:32:02 PM »
It appears to be an issue with your webserver and DNS resolution.  Running view-source on wxuvforecast.php?force=1 on your site shows
Quote
<!-- get-UV-forecast-inc.php V1.09 - 12-Feb-2021 -->
<!-- UV forecast courtesy of and Copyright &copy; KNMI/ESA (https://www.temis.nl/). Used with permission. -->
<!-- curl fetching 'https://www.temis.nl/uvradiation/nrt/uvindex.php?lon=-5.6719&lat=54.6341' -->
<!-- curl Error: Could not resolve host: www.temis.nl -->
<!-- HTTP stats:  RC=0 dest= port=0 (from sce=)
      Times: dns=0.000 conn=0.000 pxfer=0.000 get=0.000 total=0.000 secs -->
Contact your hoster's tech support to have them fix the DNS issue.
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 ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #5 on: February 12, 2021, 07:12:18 PM »
thanks for the tip.  strange thing is I can browse to https://www.temis.nl/  but I cannot ping it due to DNS ? tried to refresh on webserver and my own PC, no joy.
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #6 on: February 12, 2021, 07:26:10 PM »
ran a few dns lookups on other websites and they are reporting:

Code: [Select]
Checking Domain Name
Domain Name: temis.nl
Top Level Domain: NL (Netherlands)

DNS Lookup
No entry found
Reverse DNS entry: not found

maybe the dns for them is having issues.  i'll give it a few days.  my webserver is set to 1.1.1.1 8.8.8.8 and opendns servers.  no other issues with any other sites so guessing this is a nds routing issue to me and few other websites

« Last Edit: February 12, 2021, 07:29:00 PM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #7 on: February 12, 2021, 07:41:57 PM »
manually added ip address of temis.nl to my web servers host file for now.
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: UV Index Forecast
« Reply #8 on: February 12, 2021, 07:52:15 PM »
It sounds like you're running your own VPS webserver...

If you SSH to your server, you can do nslookup and also see what /etc/resolv.conf are showing.

Here's my results
Code: [Select]
# nslookup www.temis.nl
Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
www.temis.nl    canonical name = temis.pmc.knmi.cloud.
Name:   temis.pmc.knmi.cloud
Address: 34.248.63.123
Name:   temis.pmc.knmi.cloud
Address: 52.214.85.242
Name:   temis.pmc.knmi.cloud
Address: 63.32.9.176

# cat /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
#nameserver 8.8.8.8
nameserver 208.67.222.222
nameserver 1.1.1.1
nameserver 212.227.123.16
nameserver 212.227.123.17
#
If you have a caching DNS on your server, then try restarting it.  If your upstream nameserver entries point to your hosters caching DNS servers, put the common external ones like I did before them in /etc/resolv.conf

I've found that the default DNS servers with hosters tend to have more resolution issues than the well-known public DNS resolvers.
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 ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #9 on: February 13, 2021, 02:45:32 AM »
Just for you information my Web server is my own (QNAP NAS) using cloundfare and google dns.
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: UV Index Forecast
« Reply #10 on: February 13, 2021, 07:25:38 AM »
Good morning, Does the UV page not show the UV forecast any longer? Mine is only showing the table...

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: UV Index Forecast
« Reply #11 on: February 13, 2021, 10:11:58 AM »
i think yours is working now.  you probably had a weird dns issue like me to temis.nl
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: UV Index Forecast
« Reply #12 on: February 13, 2021, 12:46:27 PM »
Thanks Simon and I guess you're right... seems to be working now!

Offline hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: UV Index Forecast
« Reply #13 on: April 05, 2021, 06:21:08 PM »
i have been testing the alt dashboard and at night the UV forecast values are far too high https://www.hc-iom.co.uk/WD-AJAX1/index.php if i go into https://www.hc-iom.co.uk/WD-AJAX1/wxuvforecast.php i see the same if i force it to clear cache it corrects for a while the normal dashboard has the correct values every time https://www.hc-iom.co.uk/WD-AJAX/index.php  https://www.hc-iom.co.uk/WD-AJAX/wxuvforecast.php setting are the same in both
i also notice the tide info on the alt dashboard is not correct but if i refresh the page it corrects
sorry if this is not explained very well
Harold

Offline hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: UV Index Forecast
« Reply #14 on: April 08, 2021, 10:48:35 AM »
have done some searching in the forum and the heaven.php was found to be causing a different problem for 1 user, so i looked at the settings in the file and found they were wrong so corrected and tested and the uv forecast was correct in both versions and the tide seams ok as well
the only ref to the heaven.php was in the README-alt-dashboard-695.txt but does not mention that the settings need changing to your location in it, so the txt may need a mod
i found a couple of alt-dashboard sites that were doing the same thing probably for the same reason forum users KK7X and tshattuck

Harold

 

anything