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

0 Members and 1 Guest are viewing this topic.

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #50 on: December 18, 2017, 06:58:28 PM »
You can hide the errors by commenting out the error reporting function at the top of the script.
When I looked earlier on your site, your current weather story was showing but the map wasn't. You need to get that part working first if you want to use the map. You need to set the settings correctly to point to where you added the WFOmaps
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #51 on: December 18, 2017, 07:01:09 PM »
You can hide the errors by commenting out the error reporting function at the top of the script.
When I looked earlier on your site, your current weather story was showing but the map wasn't. You need to get that part working first if you want to use the map. You need to set the settings correctly to point to where you added the WFOmaps

Now the .png doesnt want to load http://gosportwx.com/wxstory.php
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #52 on: December 18, 2017, 07:03:50 PM »
You can hide the errors by commenting out the error reporting function at the top of the script.
When I looked earlier on your site, your current weather story was showing but the map wasn't. You need to get that part working first if you want to use the map. You need to set the settings correctly to point to where you added the WFOmaps

Now the .png doesnt want to load http://gosportwx.com/wxstory.php
Did you add the preg_replace codes from above?  The .png is showing in your "View Source" but it still has the random numbers atteached.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #53 on: December 18, 2017, 07:07:35 PM »
Ya I fixed that part now. Want to use the map it looks cool
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #54 on: December 18, 2017, 07:08:24 PM »
Ok, I see you have the image back now need to get the map working.
Your view source shows that you are calling for it in here... ./cache/WS_mapind.png

Did you upload the WFOmaps into that cache folder or into a different folder? They are the ones that are in the wsimages folder
« Last Edit: December 18, 2017, 07:10:15 PM by rrrick8 »
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #55 on: December 18, 2017, 07:10:36 PM »
Ok, I see you have the image back now need to get the map working.
Your view source shows that you are calling for it in here... ./cache/WS_mapind.png

Did you upload the WFOmaps into that cache folder or into a different folder? They are the ones that are in the wsimages folder

wsimages
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #56 on: December 18, 2017, 07:13:47 PM »
Ok, I see you have the image back now need to get the map working.
Your view source shows that you are calling for it in here... ./cache/WS_mapind.png

Did you upload the WFOmaps into that cache folder or into a different folder? They are the ones that are in the wsimages folder

wsimages
So you need to change the settings to reflect where you uploaded them to.... $wfomaps        = './wsimages/';       // folder containing individual WFO coverage maps

You also need to upload the WS_map that was in the zip to your images folder.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #57 on: December 18, 2017, 07:15:19 PM »
Ok I done that.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #58 on: December 18, 2017, 07:18:41 PM »
Ok I done that.

Did both? WS_map into images folder and uploaded complete wximages folder onto your server?
If so, can you post your setting from the script like you did earlier so I can see them?
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #59 on: December 18, 2017, 07:26:56 PM »
Below is attached my wxStory_inc.php in a txt file

Mike
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #60 on: December 18, 2017, 07:27:31 PM »
This is my Map Settings from the script...
//  MAP & DATA SETTINGS
$useWFOmap      = true;               // true=use map to select WFO     false=use drop down menu to select the WFO
$ws_mapfolder   = './images/';         // main map image file FOLDER   WS_map.png goes into "images" folder;
$ws_cachefolder = './wscache/';        // cache file FOLDER
$wfomaps        = './wsimages/';       // folder containing individual WFO coverage maps   Upload entire wsimages folder onto your server
$mapname        = 'WS_map';            // main map name - without extension
$ift            = '.png';              // map image file extension
$autocacheclean = true;                // true=auto delete cache files older than 1 day   false=keep cache files
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #61 on: December 18, 2017, 07:28:38 PM »
This is my Map Settings from the script...
//  MAP & DATA SETTINGS
$useWFOmap      = true;               // true=use map to select WFO     false=use drop down menu to select the WFO
$ws_mapfolder   = './images/';         // main map image file FOLDER   WS_map.png goes into "images" folder;
$ws_cachefolder = './wscache/';        // cache file FOLDER
$wfomaps        = './wsimages/';       // folder containing individual WFO coverage maps   Upload entire wsimages folder onto your server
$mapname        = 'WS_map';            // main map name - without extension
$ift            = '.png';              // map image file extension
$autocacheclean = true;                // true=auto delete cache files older than 1 day   false=keep cache files

yep mine looks like that except i use /cache instead of /wscache ... idk why its not generating like it should..
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #62 on: December 18, 2017, 07:31:27 PM »
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #63 on: December 18, 2017, 07:37:35 PM »
Try the new updated WS_map.png I posted here earlier.

Download it then upload to your server in the images folder overwriting the current one.

Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #64 on: December 18, 2017, 07:41:38 PM »
Try the new updated WS_map.png I posted here earlier.

Download it then upload to your server in the images folder overwriting the current one.



That's what I used. I just went back to the original style i had with the drop down menu.. I tried everything :(
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #65 on: December 18, 2017, 07:46:32 PM »
Ok.  Just seems like it's an issue that it can't get the WS_map.png 
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #66 on: December 18, 2017, 08:04:08 PM »
Ok.  Just seems like it's an issue that it can't get the WS_map.png

Maybe Ken can chime in on this once he is back on *shrugs*
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 519
    • Tyler Texas Weather
Re: Curly's Wx Story script
« Reply #67 on: December 18, 2017, 08:50:12 PM »
Mike,

I've seen this error before and it was caused by an image being uploaded in ASCII mode instead of Binary mode. Make sure first you can view the image correctly on your machine after you've downloaded it from the forum. If that works, ensure you're FTPing correctly to your host.

Steve

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #68 on: December 18, 2017, 09:43:03 PM »
Mike,

I've seen this error before and it was caused by an image being uploaded in ASCII mode instead of Binary mode. Make sure first you can view the image correctly on your machine after you've downloaded it from the forum. If that works, ensure you're FTPing correctly to your host.

Steve

That was what i was about to do i was using FileZilla and switched to CoreFTP and it fixed it now to figure why the cache isnt wanting to update and process the image files...

http://gosportwx.com/wxstory.php?i=lsx
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: Curly's Wx Story script
« Reply #69 on: December 19, 2017, 09:13:26 AM »
What version of php is your host using?

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #70 on: December 19, 2017, 12:21:56 PM »
What version of php is your host using?

7.1
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: Curly's Wx Story script
« Reply #71 on: December 19, 2017, 12:24:45 PM »
You may want to review my earlier mention of a change I made to restore functionality when using php 7.1 + up.  However, My version of the script is not displaying the St. Louis images either.  rrrick8, is that site showing an image?  Jerry's site isn't working for LSX either.  Right now I'm stumped.

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: Curly's Wx Story script
« Reply #72 on: December 19, 2017, 12:48:52 PM »
You may want to review my earlier mention of a change I made to restore functionality when using php 7.1 + up.  However, My version of the script is not displaying the St. Louis images either.  rrrick8, is that site showing an image?  Jerry's site isn't working for LSX either.  Right now I'm stumped.

Looking at the lsx  issue.... there is a ? in their time stamp/number after the image.  Removing that fixed it for me.
So, we add the following to the preg_replace grouping and watch to see if it adversely effects the script in other ways.

Code: [Select]
$html = preg_replace("/\?/" , " " , $html);               // cut out ?

Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Curly's Wx Story script
« Reply #73 on: December 19, 2017, 02:18:19 PM »
You may want to review my earlier mention of a change I made to restore functionality when using php 7.1 + up.  However, My version of the script is not displaying the St. Louis images either.  rrrick8, is that site showing an image?  Jerry's site isn't working for LSX either.  Right now I'm stumped.

Looking at the lsx  issue.... there is a ? in their time stamp/number after the image.  Removing that fixed it for me.
So, we add the following to the preg_replace grouping and watch to see if it adversely effects the script in other ways.

Code: [Select]
$html = preg_replace("/\?/" , " " , $html);               // cut out ?


Thanks Rick that fixed it :)
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Curly's Wx Story script
« Reply #74 on: December 21, 2017, 11:05:29 PM »
Rick, another map change, please. psr (Phoenix) needs to be green. Had a chat with the manager here and he indicates they are now supporting Story. I have it up at http://tiggrweather.net/wxstory.php.

Thanks.
John
W7JKG