Author Topic: Very Slow at Times  (Read 395 times)

0 Members and 1 Guest are viewing this topic.

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Very Slow at Times
« on: March 07, 2024, 08:57:06 AM »
So over the past few days my website has been very slow at times, almost to the point where it probably should have timed out.
So I have checked with my provider and if this will help:
Hello Frank,

I checked the resource allocation and usage for the website, and it is fine. There are plenty of resources that are free to use, but the website is still slow at times.

The page is waiting for a response from the server, but our server is serving the PHP scripts without any delay.
https://pennlake.us/test.php

It looks like this page is waiting to fetch data from some external sources that are causing the delay in the website to load.

Sincerely,


I guess my question would be are any of the NWS sites having issues that might affect my site?

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: Very Slow at Times
« Reply #1 on: March 07, 2024, 09:49:32 AM »
So now I have this displayed:

Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/hogan2/pennlake.us/get-aqi-rss.php:37 Stack trace: #0 /home/hogan2/pennlake.us/get-aqi-rss.php(27): getAQIdata('https://feeds.e...', 'realtime') #1 /home/hogan2/pennlake.us/ajax-dashboard6.php(110): include_once('/home/hogan2/pe...') #2 /home/hogan2/pennlake.us/index.php(98): include_once('/home/hogan2/pe...') #3 {main} thrown in /home/hogan2/pennlake.us/get-aqi-rss.php on line 37

If i remember I did an udate on this last month?

Ok back to normal now?????
« Last Edit: March 07, 2024, 10:00:53 AM by yamiacaveman »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Very Slow at Times
« Reply #2 on: March 07, 2024, 10:08:45 AM »
Did you customize get-aqi-rss.php V1.02 from
Quote
$urlRealtime = "https://feeds.enviroflash.info/rss/realtime/134.xml";  //San Jose, CA - Current Air Quality
That's the default url for my area's AQI.
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 yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: Very Slow at Times
« Reply #3 on: March 07, 2024, 10:51:58 AM »
I thought I did but?????? I will go check.

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: Very Slow at Times
« Reply #4 on: March 07, 2024, 10:56:27 AM »
No I did not!
So is there a list for PA that I can use or just my local town name?

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: Very Slow at Times
« Reply #5 on: March 07, 2024, 03:25:51 PM »
So I changed the get-aqris file to the below and nothing.
$urlRealtime = "https://feeds.enviroflash.info/rss/realtime/591.xml";  //Scranton and Wilkes-Barre, PA - Current Air Quality

Not knowing what I'm doing I then tried to add:
https://feeds.enviroflash.info/rss/realtime/591.xml?id=09026EEF-D51A-A7B6-98A3FA7B8DC33AA3<

No changes  No Update Recieved AQi unknown?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Very Slow at Times
« Reply #6 on: March 07, 2024, 06:40:49 PM »
That's the correct url (https://feeds.enviroflash.info/rss/realtime/591.xml) for your area.  Looking at it in a browser does show data about AQI
Quote
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
        <channel>
          <title>Scranton and Wilkes-Barre, PA - Current Air Quality</title>
         <link>https://www.airnow.gov/</link>
         <description>EnviroFlash RSS Feed</description>
         <language>en-us</language>
         <webMaster>dmc@airnowtech.org (AIRNow Data Management Center)</webMaster>
         <pubDate>Thu, 07 Mar 2024 06:15:03 EST</pubDate>
         <item>                      
            <title>Scranton and Wilkes-Barre, PA - Current Air Quality</title>
             <link>https://feeds.enviroflash.info/rss/realtime/591.xml?id=0FFBB70E-D244-9E9A-9E9587F9C9E3A2F8</link>
            <description>
               <!-- Format data output -->
               &lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;
               &lt;table style="width: 350px;"&gt;
                  &lt;tr&gt;
                     &lt;td&gt;
                        &lt;br /&gt;
                     &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                     &lt;td valign="top"&gt;
                        &lt;div&gt;&lt;b&gt;Location:&lt;/b&gt;  Scranton and Wilkes-Barre, PA&lt;/div&gt;&lt;br /&gt;
                        &lt;div&gt;
                           &lt;b&gt;Current Air Quality:&lt;/b&gt;
                           03/07/24 6:00 PM EST&lt;br /&gt;&lt;br /&gt;
                           &lt;div&gt;
                              Good  - 25 AQI - Particle Pollution (2.5 microns)&lt;br /&gt;
                                 &lt;br /&gt;
                              Good  - 20 AQI - Ozone&lt;br /&gt;
                                 &lt;br /&gt;
                              
                           &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div&gt;&lt;b&gt;Agency:&lt;/b&gt; Pennsylvania Dept. of Environmental Protection &lt;/div&gt;&lt;br /&gt;
                        &lt;div&gt;&lt;i&gt;Last Update: Thu, 07 Mar 2024 06:15:03 EST&lt;/i&gt;&lt;/div&gt;
                     &lt;/td&gt;
                  &lt;/tr&gt;
               &lt;/table&gt;
               &lt;/div&gt;
            </description>
         </item>
        </channel>
      </rss>
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 yamiacaveman

  • Forecaster
  • *****
  • Posts: 441
    • Penn Lake Weather
Re: Very Slow at Times
« Reply #7 on: March 08, 2024, 08:12:05 AM »
Thanks Ken,

But what else am I missing? The section on my web page looks like it's getting the data and display some of the data but the image still says No update received and AQI Unknown.

 

anything