Author Topic: wxspace  (Read 2547 times)

0 Members and 1 Guest are viewing this topic.

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
wxspace
« on: March 31, 2017, 09:38:58 AM »
I'm having a problem with the loading of my wxspace page it is inconsistent sometimes it works most times not. different things don't always load mostly the Error reading spaceweather current update data. I do have the cache file set to 777.
http://www.beachhouseweather.com/wxspace.php

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: wxspace
« Reply #1 on: April 01, 2017, 12:38:51 PM »
Steve,

I occasionally have one or more images not show up too but mine seems to work fine otherwise. Take a look at my version of wxspace. I made some changes to it and can post it here if you want to play with it. The link to my webpage follows:
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: wxspace
« Reply #2 on: April 01, 2017, 12:51:02 PM »
Steve,

I occasionally have one or more images not show up too but mine seems to work fine otherwise. Take a look at my version of wxspace. I made some changes to it and can post it here if you want to play with it. The link to my webpage follows:
I'm wondering if the issue is something on my end your site has about the same as mine that don't load every time if I refresh a few times I can get most all to work!!

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: wxspace
« Reply #3 on: April 01, 2017, 12:59:29 PM »
I notice that both of our wxspace routines seem to take quite a while to fully load (as much as 10-15 seconds). Am wondering if it is a server issue and not something with our code. Mine shows "Error 018" on some of the solar images and yours is showing "Error 019" on the LASCO Solar Corona. I don't know what those two errors mean.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: wxspace
« Reply #4 on: April 01, 2017, 01:01:04 PM »
I've been told it could be my host Godaddy not sure why though?

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: wxspace
« Reply #5 on: April 01, 2017, 01:07:16 PM »
I've been told it could be my host Godaddy not sure why though?

Possibly, but I am using 1and1.com and am having similar issues. I wonder if others are also having problems? I just checked Ken's on Saratoga-Weather and his space page loads almost instantly and all images look good. Am wondering if I have something wrong in my code. Will review it later today.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: wxspace
« Reply #6 on: April 01, 2017, 01:09:24 PM »
I've been told it could be my host Godaddy not sure why though?

Possibly, but I am using 1and1.com and am having similar issues. I wonder if others are also having problems? I just checked Ken's on Saratoga-Weather and his space page loads almost instantly and all images look good. Am wondering if I have something wrong in my code. Will review it later today.
I'm using Ken's version 1.5 so not sure if he has something different on his site or not!!  ?? 

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: wxspace
« Reply #7 on: April 01, 2017, 01:31:56 PM »
Mine seems to work fine on 1and1

https://www.northbendweather.com/wxspace.php
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: wxspace
« Reply #8 on: April 01, 2017, 03:54:18 PM »
Mine seems to work fine on 1and1

https://www.northbendweather.com/wxspace.php
Most of it did 1 error 005 on one picture

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxspace
« Reply #9 on: April 01, 2017, 07:20:34 PM »
I've been told it could be my host Godaddy not sure why though?

Possibly, but I am using 1and1.com and am having similar issues. I wonder if others are also having problems? I just checked Ken's on Saratoga-Weather and his space page loads almost instantly and all images look good. Am wondering if I have something wrong in my code. Will review it later today.
I'm using Ken's version 1.5 so not sure if he has something different on his site or not!!  ?? 

I had experienced some 500-Errors while trying to load all the images via the PHP scripts each time the space-weather.php page was loaded.  I decided to modify the image URLs to load the cache files in the page, and then append
Code: [Select]
# Pull the images for space-weather.php by cron
cd $HOME/httpdocs/wx
echo "$(date +%Y-%m-%d_%H:%M:%S) start images load" > image-space-status.txt
/usr/bin/php -q image-space-aurora.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-cycle.php >> image-space-status.txt
/usr/bin/php -q image-space-aurora-s.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-disk.php  >> image-space-status.txt
/usr/bin/php -q image-space-eit-284.php  >> image-space-status.txt
/usr/bin/php -q image-space-solargraph.php >> image-space-status.txt
/usr/bin/php -q image-space-eit-304.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-number.php >> image-space-status.txt
/usr/bin/php -q image-space-sat-env.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-radio.php >> image-space-status.txt
/usr/bin/php -q image-space-solar101vhf.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-ap.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-wind.php >> image-space-status.txt
/usr/bin/php -q image-space-solar-corona.php >> image-space-status.txt
/usr/bin/php -q image-space-xray.php >> image-space-status.txt
echo "$(date +%Y-%m-%d_%H:%M:%S) finished images load" >> image-space-status.txt
to a cron job that was already running every 5 minutes to redraw my sparkline graphs on the almanac page.

That's why my page loads fast .. it only gets the text forecast from the site and then uses the cached images preloaded by the cron job.

Since I'm on my own VPS, I have to do some efficiency things to minimize the PHP loads, even running PHP 7.1 :)
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 n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: wxspace
« Reply #10 on: April 01, 2017, 09:50:09 PM »
Seems mine even has trouble loading the text forecast also!

Offline uncle_bob

  • Member
  • *
  • Posts: 18
    • Conder Weather
Re: wxspace
« Reply #11 on: April 07, 2019, 03:31:11 AM »
Hi Guys,
Does anyone know where we can get an updated wxspace script? Mine seems borken and simply changing the http prefix to https doesn't seem to unbork it.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxspace
« Reply #12 on: April 07, 2019, 10:55:58 AM »
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 uncle_bob

  • Member
  • *
  • Posts: 18
    • Conder Weather
Re: wxspace
« Reply #13 on: April 08, 2019, 07:52:24 AM »
Thanks Ken!

Offline vinesweather

  • Senior Contributor
  • ****
  • Posts: 293
    • The Vines Weather
Re: wxspace
« Reply #14 on: February 29, 2020, 07:24:02 PM »
Hi Ken
Is ths the latest version? I'm getting a 007 error on an image of the sun and my script appears slightly different to what yours is displaying.

https://vinesweather.com/wxspace.php

Thanks
Chris