Author Topic: Space Weather (wxspace.php)  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

Offline mldenison

  • Senior Member
  • **
  • Posts: 64
    • York, PA Weather
Space Weather (wxspace.php)
« on: October 17, 2017, 10:30:28 AM »
Is anyone using the wxspace.php page here?

The images for "Real Time Solar X-ray and Solar Wind" mostly don't display but report an 'Error: 019'.  A number of refreshes usually results in displaying most, if not all, of the images.

I'm guessing that has to do with the site that is hosting the images.

It's a neat page, but frustrating to use.
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1250
    • Support site Leuven Template and scripts
Re: Space Weather (wxspace.php)
« Reply #1 on: October 17, 2017, 12:16:20 PM »
Is anyone using the wxspace.php page here?

The images for "Real Time Solar X-ray and Solar Wind" mostly don't display but report an 'Error: 019'.  A number of refreshes usually results in displaying most, if not all, of the images.

I'm guessing that has to do with the site that is hosting the images.

It's a neat page, but frustrating to use.
As far as i can see, all images are displayed at space page: https://www.m82a1.us/weather28/index.php?p=Space&lang=en
Only the alerts tab will not display as since a short time that page refuses to be displayed in an iframe.

To what page are you referring to?
The links for the images change every so many months,

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 mldenison

  • Senior Member
  • **
  • Posts: 64
    • York, PA Weather
Re: Space Weather (wxspace.php)
« Reply #2 on: October 17, 2017, 04:42:44 PM »
Hi Wim,

Sorry.  Your page always displays great.  I should have said that the Saratoga website is the one that's problematic:

http://www.m82a1.us/wxspace_narrow.php
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)

Offline tmabell

  • Senior Contributor
  • ****
  • Posts: 225
Re: Space Weather (wxspace.php)
« Reply #3 on: October 17, 2017, 04:49:55 PM »
The url's to to those images have changed from http:// to https://

Offline mldenison

  • Senior Member
  • **
  • Posts: 64
    • York, PA Weather
Re: Space Weather (wxspace.php)
« Reply #4 on: October 17, 2017, 05:53:13 PM »
I'm not sure which links were changed.

The links, https://www.swpc.noaa.gov..., doesn't work but http://www.swpc.noaa.gov... does.
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)

Offline tmabell

  • Senior Contributor
  • ****
  • Posts: 225
Re: Space Weather (wxspace.php)
« Reply #5 on: October 17, 2017, 08:08:07 PM »
I stand corrected, the Space Weather Prediction Center has yet to transition to https.  How are you obtaining the thumbnail images that are generating this error?  If it is a script then I'd start there because the images are available on the SWPC site.

EDIT:  I reloaded your page a few times and a couple of the problem images did display while others didn't.  A quick look at your script provides a clue.  "Error 019: could not connect to remote image"

There might be a conectivity issue on your host's end.
« Last Edit: October 17, 2017, 08:12:44 PM by tmabell »

Offline lddaly

  • Forecaster
  • *****
  • Posts: 444
Re: Space Weather (wxspace.php)
« Reply #6 on: March 07, 2018, 12:41:39 PM »
I am running V 1.5 22-Jun-2017 of the wxspace.php script. http://www.planoweather.com/wxspace.php I am getting an Error: 007 for the Mauna Loa Solar Image. The image-space-solar-disk.gif file is being created with 0 filesize. I see other sites where it displays correctly. Any ideas?

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #7 on: March 07, 2018, 05:05:50 PM »
I updated quite a few links on mine not so long ago.

please check it out as see what you think?

 [ You are not allowed to view attachments ]
« Last Edit: March 07, 2018, 05:17:01 PM by Toxic »

Offline lddaly

  • Forecaster
  • *****
  • Posts: 444
Re: Space Weather (wxspace.php)
« Reply #8 on: March 07, 2018, 05:52:23 PM »
Thanks, Simon. I dropped your file on my site at http://www.planoweather.com/wxspace-test.php and it does the same thing. Your file does show version 1.6. Did any of the underlying php files change with that version? i.e. image-space-solar-disk.php.

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #9 on: March 07, 2018, 06:22:59 PM »
not that I know of ..

can you access the image directly from your web server.  by the look of it your php file will grab the latest image from this link:

http://download.hao.ucar.edu/d5/www/latestsmall.disk.gif

or

https://download.hao.ucar.edu/d5/www/latestsmall.disk.gif

see if you webserver can access that file?

perhaps the file permissions are wrong on your webserver for

image-space-solar-disk.jpg ??

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #10 on: March 07, 2018, 06:24:26 PM »
Thanks, Simon. I dropped your file on my site at http://www.planoweather.com/wxspace-test.php and it does the same thing. Your file does show version 1.6. Did any of the underlying php files change with that version? i.e. image-space-solar-disk.php.

/*
# sometimes an error code can be printed in the image
# possible errors that could show up in the image are:
Error 000: Forbidden characters in $localimgName only letters, numbers, dash, underscore, and dots allowed
Error 001: Forbidden characters in $outputimgName only letters, numbers, dash, underscore, and dots allowed
Error 002: $localimgName file type not gif, jpg, or png. This script only supports .jpg .gif and .png
Error 003: Download error: cannot write to file, check server permission settings
Error 004: Download error: reading or opening file, check availability of $ImageURL
Error 005: Error loading image
Error 006: Missing downloaded temp file
Error 007: Convert_download: file not gif, jpg, or png. This script only supports .jpg .gif and .png
Error 008: Missing cache file
Error 009: Missing downloaded file
Error 010: Copy cache image failed
Error 011: Convert_download: touch image last modified time failed
Error 012: Chmod 0644 image failed
Error 015: Wrong settings: $localimgName and $outputimgName must have same extension IE: .jpg .gif or .png
Error 016: $outputimgName file type not gif, jpg, or png. This script only supports .jpg .gif and .png
Error 017: $localimgName and $outputimgName cannot be named the same
Error 018: fetching timestamp failed for URL (remote_image) 404 not found?
Error 019: could not connect to remote image
Error 020: $ImageURL must start with http
*/

Offline lddaly

  • Forecaster
  • *****
  • Posts: 444
Re: Space Weather (wxspace.php)
« Reply #11 on: March 08, 2018, 10:05:19 AM »
I dropped your image-space-solar-disk.php file in and get the same result. Thanks for pointing out the error explanations section. I have no idea at this point.

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #12 on: March 08, 2018, 10:38:39 AM »
I can only assume that the time to download the image is taking too long or your server is not converting it to a jpg from gif.

Quote
The image-space-solar-disk.gif file is being created with 0 filesize

so this would indicate your server is not able to download and create the file.  have you tried removing that zero byte image and trying again?


Offline lddaly

  • Forecaster
  • *****
  • Posts: 444
Re: Space Weather (wxspace.php)
« Reply #13 on: March 08, 2018, 04:28:53 PM »
You are correct. I can connect to https://www2.hao.ucar.edu/mlso/mlso-home-page from my webhost, but not https://download.hao.ucar.edu/d5/www/latestsmall.disk.gif

Code: [Select]
/usr/bin/curl https://download.hao.ucar.edu/d5/www/latestsmall.disk.gif
curl: (7) couldn't connect to host

I wonder if they are blocking me or if it is my webhost? I have never had this issue with Hostgator.

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #14 on: March 08, 2018, 04:30:08 PM »
Try http instead of https

Sent from my ONEPLUS 5T using Tapatalk


Offline lddaly

  • Forecaster
  • *****
  • Posts: 444
Re: Space Weather (wxspace.php)
« Reply #15 on: March 08, 2018, 04:35:16 PM »
Same result.
Code: [Select]
/usr/bin/curl http://download.hao.ucar.edu/d5/www/latestsmall.disk.gif
curl: (7) couldn't connect to host

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 250
  • #conligwx
    • conligwx.org
Re: Space Weather (wxspace.php)
« Reply #16 on: March 08, 2018, 04:38:01 PM »
It's worth contacting your hosting company see if they can give any help into why your site cannot access that link.

Sent from my ONEPLUS 5T using Tapatalk

 

anything