Author Topic: Weather ALert 5 - Update  (Read 3245 times)

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3904
    • View Profile
Weather ALert 5 - Update
« on: September 26, 2024, 09:46:29 am »
The Weather Alert v5 was a great Plugin originally written by Bill DeWitt and rewritten by Spitfire2600.
For whatever reason it stopped working and began producing errors when run.

I traced the issue to an apparently, no-longer-used format of a w1 prefix instead of the traditional www prefix.

I checked the original site and it was still up and running.

Changing the w1 to www seemed to work so I went through the Plugin and substituted the www where ever there was a w1.
I saved the Plugin and tested it several times and it worked perfectly.

There are 7 locations inside of the Plugin to supply that 4-letter code (replace it with the ones that are shown in the Plugin).

The code: objXMLDoc.load("http://www.weather.gov/xml/current_obs/KAOH.xml") indicates the original creator's nearest airfields or airport where weather was posted. (Those 4 letters are for Lima, Ohio).

Go to the weather.gov site and at the upper left, put your City & State in the box and press enter.
You should see a new screen with your 4 Leffer callsign displayed.

Lightspeed, yours should be KIRK (Kansas City, MO

Since it has changed, go through the code and change the following lines to make sure none were missed.:
Just change the KIRK for any other 4 Letter callsign. Save your work and start Hal.

The weather should match any other weather that you're used to or that's near you.

82
130
233
265
332
358
384
Modify message

Here is a sample of line 82 in the Plugin: objXMLDoc.load("http://w1.weather.gov/xml/current_obs/KDMW.xml"
Change it to: objXMLDoc.load("http://www.weather.gov/xml/current_obs/KDMW.xml" then go through the Plugin and change all of the other lines with the w1.

Make these changes in your copy of the Plugin OR download the one I made corrections to and copy it to your current:
 C:\Program Files (x86)\Zabaware\Ultra Hal 7 folder, overwriting the problem one and you should be all set.
« Last Edit: September 27, 2024, 08:59:13 am by Art »
In the world of AI it's the thought that counts!

- Art -

lightspeed

  • Hero Member
  • *****
  • Posts: 6819
    • View Profile
Re: Weather ALert 5 - Update
« Reply #1 on: September 26, 2024, 10:54:51 am »
Art , i know in the past, there was a plug in that had to have your zip code entered in it, but didn't see that within the plug in unless i missed it. does it have a area code  etc.so it gets the correct weather for each users location.   
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6819
    • View Profile
Re: Weather ALert 5 - Update
« Reply #2 on: September 26, 2024, 11:23:30 am »
OKAY TRIED AND TESTED IT, MINE IS WORKING ALTHOUGH THE WEATHER IT GAVE  didn't match with accu weathers 
here is hals . weather . Of course. Loading local weather. The current weather conditions are Overcast. The present temperature outside is 75.2 degrees. The humidity is 89 percent. The winds are South at 5.8 mph (5 kt).

accuweather . 68 degree's .
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3904
    • View Profile
Re: Weather ALert 5 - Update
« Reply #3 on: September 27, 2024, 09:03:01 am »
Lightspeed,

Please read and follow my MODIFIED post above. You'll need the CALLSIGN for your local Airpost or Airfield. Your location should be KIRK.

You were either getting my weather location or the weather area for Lima, Ohio, depending on which was in your Plugin.

It should work fine after you make those changes. It Should take a couple of minutes tops.
« Last Edit: October 11, 2024, 09:50:26 am by Art »
In the world of AI it's the thought that counts!

- Art -