Author Topic: PHP/AJAX Script or NWS Issue?  (Read 1077 times)

0 Members and 1 Guest are viewing this topic.

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
PHP/AJAX Script or NWS Issue?
« on: June 24, 2017, 10:09:50 AM »
I doubt this is a PHP/AJAX script issue but it certainly doesn't look correct. Any thoughts?
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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP/AJAX Script or NWS Issue?
« Reply #1 on: June 24, 2017, 10:15:40 AM »
Oooh... that is strange.

The JSON for the forecast via api.weather.gov shows
Code: [Select]
    "periods": [
        {
            "number": 1,
            "name": "Today",
            "startTime": "2017-06-24T07:00:00-07:00",
            "endTime": "2017-06-24T18:00:00-07:00",
            "isDaytime": true,
            "temperature": 98,
            "temperatureUnit": "F",
            "temperatureTrend": null,
            "windSpeed": "-146 mph",
            "windDirection": "N",
            "icon": "https://api.weather.gov/icons/land/day/few?size=medium",
            "shortForecast": "Sunny",
            "detailedForecast": "Sunny, with a high near 98. North wind around -146 mph, with gusts as high as 1.1472352069703E+37 mph. New snow accumulation of 2.990763E+37 to 2.990763E+37 inches possible."
        },
        {
            "number": 2,
            "name": "Tonight",
            "startTime": "2017-06-24T18:00:00-07:00",
            "endTime": "2017-06-25T06:00:00-07:00",
            "isDaytime": false,
            "temperature": 56,
            "temperatureUnit": "F",
            "temperatureTrend": null,
            "windSpeed": "-146 mph",
            "windDirection": "N",
            "icon": "https://api.weather.gov/icons/land/night/sct?size=medium",
            "shortForecast": "Partly Cloudy",
            "detailedForecast": "Partly cloudy, with a low around 56. North wind around -146 mph, with gusts as high as 1.1472352069703E+37 mph. New snow accumulation of 2.990763E+37 to 2.990763E+37 inches possible."
        },
so it's an api.weather.gov issue I think.. the script just displays (without alteration) the "detailedForecast" value in the JSON for the text of the forecast.
Looks like they have an issue with the GFS->text conversion routines. 

BTW, my point-forecast from the API appears ok, so it may be just an issue for some forecast points/areas.
Same issue shows on https://forecast-v3.weather.gov/point/38.9541,-119.7657

I clicked around on the foreacst-v3.weather.gov site in the Reno, NV WFO area, and all the ones tried had the same anomalies in the forecasts. 
« Last Edit: June 24, 2017, 10:23:27 AM by saratogaWX »
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 Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: PHP/AJAX Script or NWS Issue?
« Reply #2 on: June 24, 2017, 11:39:06 AM »
Hehe, maybe it means the wind will blow backwards, so just be prepared for a 146mph S wind :D

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: PHP/AJAX Script or NWS Issue?
« Reply #3 on: June 24, 2017, 07:01:36 PM »
Well, I've been sitting mostly in the sun all day today at a fund raiser for our local food closet. It was around 93°F and absolutely no breeze at all - a dead calm.

At least we had a 10x20' pop-up to partially shade us but the heat from a gravel parking lot was intense. Several of our volunteers had dizzy spells from the heat even though all of us were well hydrated (with water). The event netted us around $1500 so that will help towards our $1.4million goal for a new facility that we desperately need.

We could have used some of that snow forecasted for today  :lol:
Code: [Select]
This Afternoon
 
Mostly sunny, with a high near 98. North wind around -146 mph, with gusts as high as 1.1472352069703E+37 mph. New snow accumulation of 1.993842E+37 to 1.993842E+37 inches possible.
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 chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: PHP/AJAX Script or NWS Issue?
« Reply #4 on: June 24, 2017, 07:04:14 PM »
Is that in metric or Kelvin???????????



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: PHP/AJAX Script or NWS Issue?
« Reply #5 on: June 24, 2017, 07:07:12 PM »
Is that in metric or Kelvin???????????

Yes!  :roll:
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