cloudy

Author Topic: FWI Graphic  (Read 4813 times)

0 Members and 1 Guest are viewing this topic.

Offline HometownZone

  • Scott
  • Posts: 1,243
  • Webster Weather LIVE Scripts
  • Webster, MN, USA
    • Webster Weather LIVE
Re: FWI Graphic
« Reply #15 on: May 20, 2009, 10:51:14 AM »
These are very nice looking graphics thank you, but I can not get them to show. I have changed the name in the ajax-dashboard but they won't show.

It's looking for the following image:  ajax-images/fire-1.png  When I check that folder, that image is not there.

Scott
Scott

www.WebsterWeatherLIVE.com

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: FWI Graphic
« Reply #16 on: May 20, 2009, 01:09:04 PM »
These are very nice looking graphics thank you, but I can not get them to show. I have changed the name in the ajax-dashboard but they won't show.

Here is my code... I am using the second set from the first post

You need to place the graphics into the ./ajax-images/.. folder.
Also no need for such heavy code. This will do:
Code: [Select]
<?php
switch (true) {
  case (
$chandler 50  ): echo "<img src=\"${imagesDir}fire-0.png\" alt=\"Chandler Burning Index: VERY LOW\"/>"; break;
  case (
$chandler 75  ): echo "<img src=\"${imagesDir}fire-1.png\" alt=\"Chandler Burning Index: LOW\"/>";      break;
  case (
$chandler 90  ): echo "<img src=\"${imagesDir}fire-2.png\" alt=\"Chandler Burning Index: MODERATE\"/>"; break;
  case (
$chandler 97.5): echo "<img src=\"${imagesDir}fire-3.png\" alt=\"Chandler Burning Index: HIGH\"/>";     break;
  case (
$chandler>= 97.5): echo "<img src=\"${imagesDir}fire-4.png\" alt=\"Chandler Burning Index: EXTREME\"/>";  break;
// end switch
?>
« Last Edit: May 21, 2009, 07:10:18 AM by Meerkat »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: FWI Graphic
« Reply #17 on: May 20, 2009, 05:15:41 PM »
You need to place the graphics into the ./ajax-images/.. folder.

DUH, that's right. That's what I get for working on this real late at night and tired. All is good now so thanks you two.


Also no need for such heavy code.

That's Scotts code from the Alternate Dashboard script, not mine. I would be afraid to alter it in anyway since it might be wrote a certain way for the Dashboard

-Thanks

Offline FLWeather

  • Posts: 164
  • Jupiter, FL
    • Live Jupiter, FL Weather
Re: FWI Graphic
« Reply #18 on: June 06, 2009, 07:07:19 PM »
I have these great pictures installed, but for some reason it always shows the moderate picture. I just don't know why!!!
http://www.joe4speed.com/wxindex.php

Offline FLWeather

  • Posts: 164
  • Jupiter, FL
    • Live Jupiter, FL Weather
Re: FWI Graphic
« Reply #19 on: June 09, 2009, 02:30:32 PM »
Got it!

Offline KeithW

  • Posts: 673
  • Angels Camp, California, USA
    • Angels Camp, CA, USA Weather
Re: FWI Graphic
« Reply #20 on: September 29, 2009, 07:58:32 PM »
I have the fwi-7 set installed and working on my page, now. They look great. I really appreciate
the work put into them.

I do have a request, however: would it be possible to get a set like #7, but using the same
wording as Brian uses on his FWI pointer graphic? He uses low, moderate, high, very high, and
extreme. The #7 set uses very low, low, moderate, high, and extreme. It would be nice if they
were consistent. I know it's a nit-pick, but would appreciate the change if it's easily accomplished.

Thanks!

-Keith
-Keith