Author Topic: SunPlot  (Read 41774 times)

wurzelmac

  • Storm
  • *****
  • Posts: 1479
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Tahoe 26.5.2
Re: SunPlot
« Reply #45 on: February 02, 2021, 07:45:26 AM »
To come back to xair's mention: Has anything changed with the ISP you are using? Maybe the host is not executing PHP's any more?  ???
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 4122
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.9 | WeatherCat 4.0.0 | Supportive Wife
Re: SunPlot
« Reply #46 on: February 02, 2021, 11:24:01 PM »
Reinhard:

You are a genius! Mystery solved. Your question triggered a moment of illumination in my mind.

I tried out some firewall software and I didn't like it because it was blocking legitimate users from my site. I deleted it. I did not know that before I deleted it, it added an .htaccess file to my uploads directory, blocking all php files from executing. Deleting that file restored the sunplot to it's original function.

Once again you have saved the day.

I love this little script Mark wrote and am glad I can still use it.

Thank you, mate!
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1479
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Tahoe 26.5.2
Re: SunPlot
« Reply #47 on: February 03, 2021, 07:24:21 AM »
Blick: Glad the amazing script is back online on your site!  [tup]

Cheers,
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 4122
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.9 | WeatherCat 4.0.0 | Supportive Wife
Re: SunPlot
« Reply #48 on: February 03, 2021, 08:01:09 AM »
Thank you! I just sent an hour clicking on every link your site. You have great taste in color and graphic design. Have a great day.

Gruß, Blick
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1479
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Tahoe 26.5.2
Re: SunPlot
« Reply #49 on: February 03, 2021, 06:34:43 PM »
Thanks alot visiting my site - and thanks for your honorable words, Sir.

 [cheers1]
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 4122
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.9 | WeatherCat 4.0.0 | Supportive Wife
Re: SunPlot
« Reply #50 on: September 26, 2026, 04:18:30 PM »
Mark:

I just noticed that sunplot.php updates just fine on my website, but is stuck on my iPhone. It appears to be the only item on that web page that is not updating. Loading from cache?

Any suggestions?
Blick


mcrossley

  • Gale
  • ****
  • Posts: 280
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: SunPlot
« Reply #51 on: Today at 12:56:14 PM »
Hi Blick,

There are two ways of tackling this:

1. Write some JavaScript to sets the image name on your page - that way you can append a unique parameter to end of the image file URL that forces the browser to download the image each time.

2. Add an instruction to your web server config via a ".htaccess" file that then tells the browser not to cache this image.

Looking at your web site now, it seems option 1 has already been applied - but only to periodic image refreshes. The initial load does not use the cache buster.

Option two is worth a shot.

Create a file called ".htaccess" in root folder of your web - if it does not already exist.
Add the content:
Code: [Select]
<Files wp-content/uploads/Weather/sunplot.php>
  FileETag None
  Header unset ETag
  Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  Header set Pragma "no-cache"
  Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</Files>

That makes the web server send instructions to the browser not to cache the image - but it is up to the browser if it honours that recommendation.
Mark