I just wish Boise, Idaho had weather story info too.All you had to do is ask for it. They have a Story today!!
[Tue Apr 05 13:54:05.127905 2022] [php:warn] [pid 11708:tid 800] [client 192.168.10.1:52687] PHP Warning: getimagesize(./wscache/wsimg_boi.png): Failed to open stream: No such file or directory in C:\\www\\wxStory_inc.php on line 583, referer: https://mymishawakaweather.com/MidwestWXStory.php
[Tue Apr 05 13:54:05.127905 2022] [php:error] [pid 11708:tid 800] [client 192.168.10.1:52687] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in C:\\www\\wxStory_inc.php:587\nStack trace:\n#0 C:\\www\\MidWestWXstory.php(226): include()\n#1 {main}\n thrown in C:\\www\\wxStory_inc.php on line 587, referer: https://mymishawakaweather.com/MidwestWXStory.php
[Tue Apr 05 17:53:32.778895 2022] [php:warn] [pid 11708:tid 768] [client 192.168.10.1:51647] PHP Warning: imagecreatefrompng(): gd-png: libpng warning: Interlace handling should be turned on when using png_read_image in C:\\www\\wxStory_inc.php on line 678, referer: https://mymishawakaweather.com/
[Tue Apr 05 17:53:50.870929 2022] [php:warn] [pid 11708:tid 808] [client 192.168.10.1:51670] PHP Warning: Undefined variable $imgheight in C:\\www\\wxStory_inc.php on line 734, referer: https://mymishawakaweather.com/MidwestWXStory.php
[Tue Apr 05 17:53:58.436362 2022] [php:warn] [pid 11708:tid 768] [client 192.168.10.1:51671] PHP Warning: Undefined variable $imgheight in C:\\www\\wxStory_inc.php on line 734, referer: https://mymishawakaweather.com/MidwestWXStory.php?i=pih
<?php if (file_exists($wsimg)) {?>
<tr>
<td style="text-align:center"><img src="<?php echo $wsimg ?>" style="width: <?php echo $tablewdth; ?>px; height: <?php echo $imgheight ?>px;" alt=" " /></td>
</tr>
<tr>
<?php }; ?>
<body><pre style="word-wrap: break-word; white-space: pre-wrap;">Gusts to 65 mph from east/southeast near the coast today. Heavy rain Downeast from ~7am-2pm. Locally 3” rain could fall in just a few hours. Minor coastal flooding around the early afternoon high tide.
Northern Maine, snow and sleet totals generally <1”, except higher amounts over higher elevations. Changing to rain by early afternoon.
</pre></body>
<?php
$mainStory = array (
'WeatherStory' =>
array (
0 => '',
1 => '',
2 => 'https://www.weather.gov/images/car/WeatherStory.gif',
3 => 'https://www.weather.gov/car/',
4 => './wscache/wsimg_car_WeatherStory.gif',
5 => 'gif',
6 => 'WeatherStory',
7 => 'car',
8 => 'Caribou',
),
);
$altStory = array (
);
$nfo = 'Caribou';
$hdlnr = array (
0 => ' <td style="text-align: center; background-color:#F0F7FF; padding: 6px 0px 6px;"><a href="/weather/st/wxstory.php?i=car&ifn=WeatherStory" title="" style="text-decoration: none; color: #0071BC; font-size: 1.3em;">Weather Story</a></td>',
);
?>
<?php if(strlen($wsdata)>0){ ?>
<tr>
<?php if ($UseShowHide) { ?>
<td> <!-- align was center -->
<div id="myDIV" style = "width: <?php echo $tablewdth; ?>px;text-align: left;background-color: white;margin-top: 5px; display: <?php echo $CDisplay; ?>;">
<?php echo $wsdata; ?>
</div>
<button id="myButton" style="float: left;background-color: #0071BC; margin-top: 5px; padding: .3em; -moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 6px;color: white;font-size: 12px; font-weight:600; text-decoration: none; border: none; " onclick="myFunction()"> <?php echo $CCaption;?> </button>
</td>
<?php } else { ?>
<td style="text-align:justify; line-height: 160%;"><?php echo $wsdata; ?></td>
<?php } ?>
</tr>
<?php } ?>
Joe, the map file must be named WS_map.png. Give that a try. - JimJim, I've got a similar issue with the map being drawn, here's the error I'm getting: [ You are not allowed to view attachments ]
527 files cleared from cache. Issue persists.
wsdata_bis.php, wsdata_grr.php showed up after I tested the page. Plus a couple of matching wsimg files.
Looks to be a Firefox issue. New FF 102 doesn't like it. Chrome and Edge are fine.
Content Encoding Error
An error occurred during a connection to www.bismarckweather.net.
Please contact the website owners to inform them of this problem.
hunter362, lets try this:God Bless America! That worked, changed owner and group to www-data permissions to 0755 and it WORKS fine now! Thank you Jim
In your script settings change to $ws_mapfolder = './images2/ then create that folder on the server and put WS_map.png in it. That way we've got everything "fresh". We can write our story images to wscache so there should be no reason that we can't write to this folder.
- Jim
I tried making the images2 folder and change my script. No change for me.
// $html = preg_replace("/\.png\?(.+?)/" , ".png " , $html); // cut off random numbering of png
// $html = preg_replace("/\.jpg\?(.+?)/" , ".jpg " , $html); // cut off random numbering of jpg
// $html = preg_replace("/\.gif\?(.+?)/" , ".gif " , $html); // cut off random numbering of jpg
$html = preg_replace("/\.png\?[^\"]+/" , ".png" , $html); // cut off random numbering of png
$html = preg_replace("/\.jpg\?[^\"]+/" , ".jpg" , $html); // cut off random numbering of jpg
$html = preg_replace("/\.gif\?[^\"]+/" , ".gif" , $html); // cut off random numbering of jpg
What's your URL Steve?
<td style="text-align:center"><img src="./wscache/wsimg_jax_KJAX_loop.gif-3a5e55a06dccdad1c7da5476437.6a8" style="width: 700px; height: 400px;" alt=" " /></td>
I'm sorry, bu I'm going through a "week from hell" and will have time to look at this next week. - Jim
<td style="text-align:center"><img src="<?php echo $wsimg ?>" style="width: <?php echo $tablewdth; ?>px; height: <?php echo $imgheight ?>px;" alt=" " /></td>
<td style="text-align:center"><img src="<?php echo $wsimg ?>" style="width: <?php echo $tablewdth; ?>px;" alt=" " /></td>
Deprecated: Implicit conversion from float 393.75 to int loses precision in /homepages/10/d942756231/htdocs/wxStory_inc.php on line 708
Deprecated: Implicit conversion from float 393.75 to int loses precision in /homepages/10/d942756231/htdocs/wxStory_inc.php on line 709
Hi All,
Guess that Hawaii, Alaska and other US Territories are still not doing this.
How or who can I ask to see if the NWS office will be able to include a Story?
What if, they are interested to do this, as to where and what they will put the story info?
Any suggestions or recommendations welcome.
Happy Holidays and stay safe and healthy,
Aloha,
--Stan Y.
Maui, Hawaii