Author Topic: BIX Weather story moved.. how to update wxStory_inc.php?  (Read 832 times)

0 Members and 1 Guest are viewing this topic.

Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 45
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
BIX Weather story moved.. how to update wxStory_inc.php?
« on: December 23, 2024, 04:02:44 PM »
Wishing a happy and a merry to all who observe, and no rush fixing this on the eve of the eve...

Boston's weather story has moved, and I tried a few things on wxStory_inc.php and did not improve the situation.

The story graphic used to be at https://www.weather.gov/images/box/weatherstory.gif

and now it's at https://www.weather.gov/images/box/weatherstory.png

Both are still online but only the latter seems to be getting updated.

I'm okay editing php files, so would be glad to make the change, but I'm afraid there's too much holiday around here for me to look at it right now. If anyone has some spare time, pointers on which lines to change would be appreciated.

Happy holidays to all, and to all a good night!
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 45
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: BOX Weather story moved.. how to update wxStory_inc.php?
« Reply #1 on: December 23, 2024, 05:02:09 PM »
Carefully proofread my post and only see the typo in the titles after sending! No more nog for me. It's BOX, Boston's NWS.
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline tmabell

  • Forecaster
  • *****
  • Posts: 439
    • Mishawaka Weather
Re: BIX Weather story moved.. how to update wxStory_inc.php?
« Reply #2 on: December 24, 2024, 04:03:06 PM »
Try changing lines 245 & 246 to this

Code: [Select]
} else if ($wswfo == "box") {
$image[1] = "https://www.weather.gov/images/box/weatherstory.png";    // watch out, this might change

and line 291 to this

Code: [Select]
$myurl = "https://www.weather.gov/box/weatherstory";
Clear the cache and reload.  You should be good.

Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 45
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: BIX Weather story moved.. how to update wxStory_inc.php?
« Reply #3 on: December 24, 2024, 10:59:21 PM »
That did it! Thanks.
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9