Author Topic: Curly's Wx Story script  (Read 13897 times)

0 Members and 1 Guest are viewing this topic.

Offline tmabell

  • Forecaster
  • *****
  • Posts: 331
Re: Curly's Wx Story script
« Reply #150 on: July 28, 2020, 09:50:52 PM »
We know the script works because as you stated, it works on my server here.  Check your server's error logs.  When your script is viewed from the outside I get this (using Chromes Developer Tools) "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"

Hopefully, the server's error log will provide a clue.

Online chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2610
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: Curly's Wx Story script
« Reply #151 on: July 28, 2020, 10:37:08 PM »
I will get ahold of IT and see if they can do anything. I do know there are no images in any folder.




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

Online chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2610
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: Curly's Wx Story script
« Reply #152 on: August 01, 2020, 07:17:16 PM »
There has to be an issue with server.
So I was able to iframe the weather story page to focus on the story part and not see the rest of the page.



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

Online the beteljuice

  • the beteljuice
  • Senior Contributor
  • ****
  • Posts: 290
    • test site
Re: Curly's Wx Story script
« Reply #153 on: August 01, 2020, 08:38:01 PM »
Try putting this at the top of the script and see what comes back ..
Code: [Select]
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
error_reporting(E_ALL);
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 186
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #154 on: December 06, 2020, 12:36:43 PM »
Does someone have the newest WxStory_inc.php v2.24 script they could share?
For some reason, ever since I upgraded my VPS server, I only get the main story pics no Alternate pics. The written text comes thru fine but none of the alternate pics. They are not being produced into the wscache folder.
This occurs on every site I try. I need to compare my script to a working one to see if I changed something along the way.
Thanks.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 151
    • Camarillo Weather
Re: Curly's Wx Story script
« Reply #155 on: December 06, 2020, 03:04:42 PM »
Does someone have the newest WxStory_inc.php v2.24 script they could share?
For some reason, ever since I upgraded my VPS server, I only get the main story pics no Alternate pics. The written text comes thru fine but none of the alternate pics. They are not being produced into the wscache folder.
This occurs on every site I try. I need to compare my script to a working one to see if I changed something along the way.
Thanks.

Reply #14 in this thread has a link to v2.25
Eric

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 186
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #156 on: December 06, 2020, 05:48:30 PM »
Thanks Eric for the link. I had definitely missed that.
Applied the couple of changes and now all working fine
« Last Edit: December 17, 2020, 09:39:39 AM by rrrick8 »
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline K6GKM

  • CamWX.com
  • Senior Member
  • **
  • Posts: 54
    • CamWX
Re: Curly's Wx Story script
« Reply #157 on: December 06, 2020, 08:29:14 PM »
Not sure how I'd missed this wonderful tool until now.  I'll be using this as an include on a page with other data, but I know for a fact my local WFO doesn't generate a weather story daily.  I'm not too fond of an image placeholder if there's no current weather story...  I don't suppose anyone out there has a mod to suppress the weather story code entirely if there's no current images?

If not, no worries...

Thanks,
Grant
Grant Miles - Camarillo, CA, USA
Owner/Admin - CamWX.com
SKYWARN Spotter
Davis Vantage Vue, WD, GRLevel3

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 493
    • Up Country Maui Weather
Re: Curly's Wx Story script
« Reply #158 on: December 07, 2020, 11:56:38 AM »
Hi All,

I have not used this script as it does not include Hawaii and Alaska.

Hope maybe one day we could be included?

Aloha.

--Stan Y.
  Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 120
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline tmabell

  • Forecaster
  • *****
  • Posts: 331
Re: Curly's Wx Story script
« Reply #159 on: December 07, 2020, 12:06:28 PM »
The NWS offices in Alaska and Hawaii do not make the Weather Story available so they cannot be included in the script.

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 493
    • Up Country Maui Weather
Re: Curly's Wx Story script
« Reply #160 on: December 07, 2020, 12:35:27 PM »
Thanks for the reply tmabell.  That is what I would have thought but maybe one of these days they will have one, so we will be able to be added to this script.

Aloha,

--Stan Y.
   Maui, Hawaii
« Last Edit: December 07, 2020, 01:29:48 PM by Silversword »
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 120
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 186
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #161 on: December 07, 2020, 01:11:28 PM »
The NWS offices in Alaska and Hawaii do not make the Weather Story available so they cannot be included in the script.
Never say never. Took a long time for Eastern Region to use it.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mchlwvr614

  • Member
  • *
  • Posts: 6
Re: Curly's Wx Story script
« Reply #162 on: December 17, 2020, 09:27:06 AM »
Wasn't sure if I should add to this thread or create a new one.  Anyways... I thought I had this script working but it looks like the cached images are randomly created as empty files, zero bytes.  Any ideas on what to look for?  Thank you

http://weavernet.dyndns.org/etnwx/wxStory.php


Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 904
    • North Bend Weather
Re: Curly's Wx Story script
« Reply #163 on: December 18, 2020, 05:45:30 PM »
I tried v2.25 and the stories wont show up. My cache directory looks good. Got the permissions set to 775.

https://www.northbendweather.com/wxstory.php

My local NWS does publish stories almost everyday. https://www.weather.gov/sew/

Any ideas? Running php 7.2
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 663
    • Lake Huron Weather
Re: Curly's Wx Story script
« Reply #164 on: December 18, 2020, 06:25:25 PM »
No idea but interesting.  I can see the image when viewed with my site/page.  Yours has the text just not the image, strange.  Will be interested in the answer.  Wish I could help.

UPDATE: just went to add the link from my site and the Seattle Wx Story is gone, just like that.

Davis Vantage Pro2, Serial Data Logger,
WD 10.37S-(b60), VWS V15.00p03, Weatherlink 6.0.3,  Fling 2.35, 7 Pro 64Bit
KMICHEBO10 - CW3699 - Cheboygan, MI

Offline mkutche

  • Forecaster
  • *****
  • Posts: 930
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #165 on: December 19, 2020, 09:50:22 AM »
I tried v2.25 and the stories wont show up. My cache directory looks good. Got the permissions set to 775.

https://www.northbendweather.com/wxstory.php

My local NWS does publish stories almost everyday. https://www.weather.gov/sew/

Any ideas? Running php 7.2

same the only story that shows up for me is KIND. for now I just $useallwfos     = false;   

update none seem to work now..
« Last Edit: December 19, 2020, 11:21:19 AM by mkutche »
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 930
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #166 on: December 19, 2020, 12:06:39 PM »
ya idk what's going on how to fix it i even went back to 2.24 and it still doesn't work, when it use to.
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline tmabell

  • Forecaster
  • *****
  • Posts: 331
Re: Curly's Wx Story script
« Reply #167 on: December 19, 2020, 12:47:09 PM »
Ver 2.25 has been tweaked a few times to address these issues.  Try my version which has been updated and is currently working.


Offline mkutche

  • Forecaster
  • *****
  • Posts: 930
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #168 on: December 19, 2020, 01:24:18 PM »
Ver 2.25 has been tweaked a few times to address these issues.  Try my version which has been updated and is currently working.

I can see other Story pics but IND .. maybe i need to clear my wscache folder as shows the files but for the pic its wsimg_ind_Tab2FileL.png?1978e7d7654242cfc1bcc4de6247.1e4

edit: update your file worked! and cleared my wscache too thanks :)
« Last Edit: December 19, 2020, 01:28:08 PM by mkutche »
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 904
    • North Bend Weather
Re: Curly's Wx Story script
« Reply #169 on: December 19, 2020, 01:53:44 PM »
Your file worked for me too. Thanks.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline tmabell

  • Forecaster
  • *****
  • Posts: 331
Re: Curly's Wx Story script
« Reply #170 on: December 19, 2020, 02:41:00 PM »
I'm thinking that with the tweaks I mentioned that perhaps we should refer to this as Ver 2.25b?  Maybe Ken has thoughts on giving it the once over and an upgraded version number so as to keep confusion to a minimum.  \:D/

 

anything