Author Topic: Alternative Dashboard version 6.95 Released  (Read 85857 times)

0 Members and 1 Guest are viewing this topic.

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative Dashboard version 6.94 Released
« Reply #500 on: October 13, 2015, 08:27:02 PM »
6.84?  Where did you see that?  :shock: :lol: :oops:  I think you're seeing things!


NOTE:  I've incorporated several of the changes you mentioned into the 6.84 revision (now dated 13-OCT-2015) and is in the archive available for download.  Thanks for pointing out some of the format errors and best practices!
Picky me, again.  You mean 6.94 above and below, right?
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative Dashboard version 6.94 Released
« Reply #501 on: October 13, 2015, 08:45:17 PM »
Brian has declared the latest versions of WD as 'production' and no longer in beta.  The last beta was I think b287.
I believe that is correct. He is currently up to 296, with the usual multiple releases/updates per version number, so there's been a lot of work on it.

Scott, I've been running it since 262 and have found it to be working well, especially since it went production.
John
W7JKG

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative Dashboard version 6.94 Released
« Reply #502 on: October 14, 2015, 05:35:37 PM »
Now why when I place the new testtags into WD's webfiles folder.  All I get is a white screen
Your non-standard setup of the site has made it difficult for us to help, although Jerry has dug deeply (as always) and corrected a lot of problems for you.

I have attached the testtags.txt that I am using on my site, which is a slightly higher version than yours. At this point I have no idea why yours is not working.
John
W7JKG

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #503 on: October 14, 2015, 06:48:38 PM »
Now why when I place the new testtags into WD's webfiles folder.  All I get is a white screen
Your non-standard setup of the site has made it difficult for us to help, although Jerry has dug deeply (as always) and corrected a lot of problems for you.

I have attached the testtags.txt that I am using on my site, which is a slightly higher version than yours. At this point I have no idea why yours is not working.

I don't understand the non-standard setup?????  The only mods I have made to the code, besides the menu, is adding some tracking and protection code to the header and footer.

Mark

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #504 on: October 14, 2015, 06:51:44 PM »
The copy of testtags I am trying to use.

Mark

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative Dashboard version 6.94 Released
« Reply #505 on: October 15, 2015, 01:50:16 AM »
I don't understand the non-standard setup?????  The only mods I have made to the code, besides the menu, is adding some tracking and protection code to the header and footer.
Poor wording on my part. My apology.

When that was written yesterday there were still items on your home page that were not working, even after Jerry's hard work. Today I see most have been fixed. However, your Solar Summary is still completely blank, Cloud Level is not showing the icon, and Lightning Strikes is essentially blank even though Oct: is showing a count. The strike info comes from testtags and all are 0 there except, of course, for the info from Oct: on down. Not sure why.
John
W7JKG

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #506 on: October 15, 2015, 09:25:59 AM »
I'll send you whatever files you want.

Mark

Offline Gert Woerden

  • Member
  • *
  • Posts: 32
Re: Alternative Dashboard version 6.94 Released
« Reply #507 on: October 18, 2015, 04:56:36 AM »
Hi
I wonder is it possible to edit the lines from the Lightning Strikes  Nexstorm into the dashboard
To the Lightning Strikes  from  blitzortung ??
greetings   Gert

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #508 on: October 18, 2015, 07:54:53 AM »
Hi
I wonder is it possible to edit the lines from the Lightning Strikes  Nexstorm into the dashboard
To the Lightning Strikes  from  blitzortung ??
greetings   Gert
Apples and oranges, Gert.  It might be possible to do so, but since the dashboard reflects local conditions and the strikes Blitzortung registers are mostly far away.  The Blitzortung total doesn't mean a great deal without a map showing their location.  A small map by itself without the number would provide adequate information, but the map I've added to my dashboard contains the number as well.

The attached file should get you going.   I also use ET, so my setup differs from what's described.  I can share that as well if anyone's interested.  Displaying both ET and Blitzortung does make for an overlong column.
« Last Edit: October 18, 2015, 07:56:34 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Gert Woerden

  • Member
  • *
  • Posts: 32
Re: Alternative Dashboard version 6.94 Released
« Reply #509 on: October 18, 2015, 09:33:41 AM »
Hi
thanks for your help
this will also works but I really need only the TXT on the dashboard
on my dashboard you see also a png from the lightning but this one is from Nexstorm
this I have done on the easy way into the dashboard6
Code: [Select]
if ($useAQI) {  //  Show Air Quality Index - PLASE YOUR CODE IN PLACE OF THIS SECTION AND START HERE Removing the line above too!
?>
          <td align="center" valign="middle" rowspan="3"><table border="0" cellpadding="2" cellspacing="0">
            <tr>
              <td class="data2" style="text-align: center; font-size: 12px;"><a href="http://www.weerstation-woerden.nl/NSDisplay.php" target="_blank"><img src="http://www.weerstation-woerden.nl/nexstorm.png" width="180" height="180" border="0" /></a><br />

I can now easy edit the img src=   to a map from Blitzortung of course

but now I think it is not so easy what I want to do

thanks for your help

greetings  Gert

Hi
I wonder is it possible to edit the lines from the Lightning Strikes  Nexstorm into the dashboard
To the Lightning Strikes  from  blitzortung ??
greetings   Gert
Apples and oranges, Gert.  It might be possible to do so, but since the dashboard reflects local conditions and the strikes Blitzortung registers are mostly far away.  The Blitzortung total doesn't mean a great deal without a map showing their location.  A small map by itself without the number would provide adequate information, but the map I've added to my dashboard contains the number as well.

The attached file should get you going.   I also use ET, so my setup differs from what's described.  I can share that as well if anyone's interested.  Displaying both ET and Blitzortung does make for an overlong column.
« Last Edit: October 18, 2015, 09:38:29 AM by Gert Woerden »

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #510 on: October 19, 2015, 10:20:24 AM »
Would someone please send me a link to get the "Fire Danger" icons?  I have what looks like two different sets of Fire icons.  But they are labled differently.

Jerry Wilkins I would prefer to use what you have.  But I see no reference to the setup in the install files.

Mark

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #511 on: October 19, 2015, 11:27:14 AM »
Would someone please send me a link to get the "Fire Danger" icons?  I have what looks like two different sets of Fire icons.  But they are labled differently.

Jerry Wilkins I would prefer to use what you have.  But I see no reference to the setup in the install files.

Mark
You can obtain the script in this threadThe 'ajaxWDwx3.js' script needs a mechanism for updating it in real time when it's a part of the dashboard.  This is what needs to be added to 'ajaxWDwx3.js' in order for 'firedangerWD.php' to regularly update via AJAX, in context:(Code Deleted 2015 Oct 21)

This is the REVISED snippet, again in context, in my dashboard that displays the image:
Code: [Select]
<?php // end $useCBI   ?>                 
<?php if ($useFD) {  //  Show Chandler Buring Index using firedangerWD.php ?>
                          <tr>
                            <td colspan ="2" style="text-align: center;">
                              <span class="ajax" id="ajaxfdimg">
                              <script type="text/javascript"><!--
                              //<![CDATA[
                                var jq = jQuery.noConflict();
                                function reloadFireDanger() {
                                  if (ajaxUpdates < update.maxupdates) {
                                    jq("#ajaxfdimg").load("ajax-dashboard6.php" + " #ajaxfdimg");
                                  }
                                  setTimeout('reloadFireDanger()',120000);
                                }
                                setTimeout('reloadFireDanger()',120000);
                                //]]>
                                -->
                              </script>
                        <a href="<?php echo $fwi_url?>" target="_blank" title="Nebraska Wildfire Danger"><img src="firedangerWD.php" height="135" width="170" alt=""/></a>
</span>
                            </td>
                          </tr>
<?php // end $useFD   ?>                 
                 
and this is the 'AltAjaxDashboardConfig6.php' entry, again in context, that controls its display:
Code: [Select]
//  NOTE if FWI, FD and CBI are false, nothing will display.  If two or all are ture, you will have one messed up display!
// Settings for FIRE INDEX & STORM PREDICTION GRAPHIC - TOP ROW UNDER FORECAST     (***ONLY ONE OF THE FOLLOWING MUST BE TRUE!!!)
$useFWI    = false;           // Set to true to display Fire Weather Index
                              // (MUST BE FALSE IF CHANDLER BURNING INDEX IS ON!!!)
$useCBI    = false;            // Set to true to display Chandler Burning Index
                              // (MUST BE FALSE IF FIRE WEATHER INDEX IS ON!!!)
$useFD = true; // Use FiredangerWD.php graphic
// (ONLY ONE OF THESE THREE MAY BE ON (TRUE)!!!)
$fwi_url   = "wxnfsfiredanger.php"; // Page to link to when user clicks on FWI Link.  See http://www.wxforum.net/index.php?topic=18814.0
                              //
Hope this helps.

Edit 2015 Oct 21:  The ajaxWDwx3.js 'firedangerWD.php' code, although it is syntactically identical to that of 'cloud-base.php' code, doesn't work!  This may be because the image isn't saved by 'firedangerWD.php' but directly displayed by the browser.  I've substituted a jQuery partial page load of just this portion of 'ajax-dashboard6.php' that DOES work.  If you're not loading jQuery as a part of <head>, this code won't work until you do so.  Here is a jQuery load snippet:
Code: [Select]
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

The ajaxWDwx3.js code has been deleted, and I have revised the 'ajax-dashboard6.php' snippet above.  The 'firedangerWD.php' reload times out when ajax times out, and resumes when the dashboard's 'REFRESH' is clicked.
« Last Edit: October 21, 2015, 07:53:25 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #512 on: October 19, 2015, 02:04:46 PM »
Outstanding!

Any chance of these settings making their way into the next dashboard?


Mark

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #513 on: October 19, 2015, 06:27:54 PM »
I think I got the js code right.  But I'm unclear on what to overwrite with the other two scripts?

Mark

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #514 on: October 19, 2015, 06:50:03 PM »
I think I got the js code right.  But I'm unclear on what to overwrite with the other two scripts?

Mark
Just the context, because they are additions.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Alternative Dashboard version 6.94 Released
« Reply #515 on: October 19, 2015, 06:56:30 PM »
Code: [Select]
//  NOTE if FWI, FD and CBI are false, nothing will display.  If two or all are ture, you will have one messed up display!
// Settings for FIRE INDEX & STORM PREDICTION GRAPHIC - TOP ROW UNDER FORECAST     (***ONLY ONE OF THE FOLLOWING MUST BE TRUE!!!)
$useFWI    = false;           // Set to true to display Fire Weather Index
                              // (MUST BE FALSE IF CHANDLER BURNING INDEX IS ON!!!)
$useCBI    = false;            // Set to true to display Chandler Burning Index
                              // (MUST BE FALSE IF FIRE WEATHER INDEX IS ON!!!)
$useFD = true; // Use FiredangerWD.php graphic
// (ONLY ONE OF THESE THREE MAY BE ON (TRUE)!!!)
$fwi_url   = "wxnfsfiredanger.php"; // Page to link to when user clicks on FWI Link.  See http://www.wxforum.net/index.php?topic=18814.0
                              //
I really appreciate your help.  And I don't want to be a pain.  Life has made me a little slow to learn.  It looks to me the above code needs to replace some code.

Mark

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #516 on: October 21, 2015, 07:56:37 PM »
The ajaxWDwx3.js 'firedangerWD.php' code posted above, although it is syntactically identical to that of 'cloud-base.php' code, doesn't work!  This may be because the image isn't saved by 'firedangerWD.php' but directly displayed by the browser.  I've substituted a jQuery partial page load of just this portion of 'ajax-dashboard6.php' that DOES work.  If you're not loading jQuery as a part of <head>, this code won't work until you do so.  Here is a jQuery load snippet:
Code: [Select]
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

The ajaxWDwx3.js code has been deleted, and I have revised the 'ajax-dashboard6.php' snippet above.  The 'firedangerWD.php' reload times out when ajax times out, and resumes when the dashboard's 'REFRESH' is clicked.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #517 on: October 22, 2015, 09:02:27 AM »
It turns out that the 'firedangerWD.php' autoupdate code described above has been leaving large rectangular black holes in my dashboard!  The potential gain with any autoupdate scheme for 'firedangerWD.php' is far outweighed by the associated problems, so I've gone back to no autoupdates for this graphic.  A 'REFRESH' will do nothing, but a browser refresh of the page will update the graphic.

My current recommended a'jax-dashboard6.php code' in view of the non-functioning AJAX updates:
Code: [Select]
<?php // end $useCBI   ?>                 
<?php if ($useFD) {  //  Show Chandler Buring Index using firedangerWD.php ?>
                          <tr>
                            <td colspan ="2" style="text-align: center;">
                        <a href="<?php echo $fwi_url?>" target="_blank" title="Nebraska Wildfire Danger"><img src="firedangerWD.php" height="135" width="170" alt=""/></a>
                            </td>
                          </tr>
<?php // end $useFD   ?>                 

I'm done fiddling with this.

Edit 2015 Oct 23:  I couldn't leave it alone 'cause I needed to know where I messed up.  See below.
« Last Edit: October 23, 2015, 05:23:47 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #518 on: October 23, 2015, 06:04:03 PM »
Basically nearly starting over on the 'firedangerWD.php' ajax-dashboard ajax-update display:  This one does work if you'll patiently watch the Fire Danger Image redraws here.  As the temperature and/or humidity change, the 'firedangerWD.php' image redraws.

Modifications were needed in 'firedangerWD.php', ajaxWDwx3.js, and of course 'ajax-dashboard6.php'.  I used the cloud-base reloading code as my model and decided that since the Saratoga template already had an array of clientraw parameters the code to read this into 'firedangerWD.php' could bypass this and the temperature and humidity could be passed to 'firedangerWD.php' on the command line with '$_GET'.  Those are the modifications made to this version of 'firedangerWD.php'.  (Right-click, choose 'Save as...', and save without the '.txt'.)

The modifications to 'ajaxWDwx3.js' were only half done as initially described, then deleted in a previous post.  The first addition, in context:
Code: [Select]
//------------------------------------------------------------------------------
// FIRE INDEX: optional setting for the fire risk graphic
// tag: "ajaxfdimg"
// e.g. graphic name: "./firedangerWD.php"
var fireImg3 =
   {src   : "./firedangerWD.php" // path and script for dynamic CBI image
   ,width : 170 ,height: 135 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   ,useTag: "ajaxfdimg"
   };

//------------------------------------------------------------------------------
// WEBCAM IMAGE: optional setting for the webcam graphic

The second 'ajaxWDwx3.js' modification, also in context, adds this:
Code: [Select]
      set_ajax_obs("ajaxcloudheight",cloudText);


// Fire Risk ... FireDangerWD
      ;;;set_ajax_obs('ajaxProgress',rand+'fire','in Fire Danger');
      temp = clientraw[ 4];
      humidity = clientraw[5];
      param = '?temp=' + temp +'&humidity=' + humidity;
      set_ajax_obs("ajaxfdimg", param
         ,'<img src="'  + fireImg3.src + param
         + '" width="'  + fireImg3.width
         + '" height="' + fireImg3.height
         + '" hspace="' + fireImg3.hspace
         + '" vspace="' + fireImg3.vspace
         + '" />');


// Fire Risk ... (FWI)
You don't need to place it exactly where I did, but it seems to fit best right there.

Lastly, the 'ajax-dashboard6.php' modification, again in context:
Code: [Select]
<?php // end $useCBI   ?>                 
<?php if ($useFD) {  //  Show Chandler Buring Index using firedangerWD.php ?>
                          <tr>
                            <td colspan ="2" style="text-align: center;">
                        <a href="<?php echo $fwi_url?>" target="_blank" title="Nebraska Wildfire Danger">
                                <span class="ajax" id="ajaxfdimg"><img src="firedangerWD.php" height="135" width="170" alt=""/></span></a>
                            </td>
                          </tr>
<?php // end $useFD   ?>                 
The 'title="***"' obviously needs to be modified to reflect the your link in 'AltAjaxDashboardConfig6.php', '$fwi_url'.

Hopefully this project is now finished. :-) It had been too long since I last played with 'ajaxWDwx3.js' and I had forgotten what I had learned earlier!

Edit 2015 Oct 24:  I neglected to include one obvious additional ingredient to complete the above recipe, the relevant section of 'AltAjaxDashboardConfig6.php':
Code: [Select]
//  NOTE if FWI, FD and CBI are false, nothing will display.  If two or all are ture, you will have one messed up display!
// Settings for FIRE INDEX & STORM PREDICTION GRAPHIC - TOP ROW UNDER FORECAST     (***ONLY ONE OF THE FOLLOWING MUST BE TRUE!!!)
$useFWI    = false;           // Set to true to display Fire Weather Index
                              // (MUST BE FALSE IF CHANDLER BURNING INDEX IS ON!!!)
$useCBI    = false;            // Set to true to display Chandler Burning Index
                              // (MUST BE FALSE IF FIRE WEATHER INDEX IS ON!!!)
$useFD = true; // Use FiredangerWD.php graphic
// (ONLY ONE OF THESE THREE MAY BE ON (TRUE)!!!)
$fwi_url   = "wxnfsfiredanger.php"; // Page to link to when user clicks on FWI Link.  See http://www.wxforum.net/index.php?topic=18814.0
                              //
(This was posted earlier, but the omission here was unintentional.)

Edit 2015 Nov 5:  It bothered me that the temperature in 'firedangerWD.php' wasn't switching when the 'METRIC | IMPERIAL' UOM switching was performed.  There's a post below that explains the necessary modifications to achieve UOM switching in 'firedangerWD.php'.
« Last Edit: November 05, 2015, 05:27:50 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Alternative Dashboard version 6.94 Released
« Reply #519 on: October 23, 2015, 06:37:33 PM »
Great job! I really like it, especially how despite the fact it gives quite a lot of parameters and variables, it is still nice and organized and one easily finds what they want.  =D&gt; =D&gt; =D&gt;

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #520 on: October 23, 2015, 07:05:02 PM »
Great job! I really like it, especially how despite the fact it gives quite a lot of parameters and variables, it is still nice and organized and one easily finds what they want.  =D&gt; =D&gt; =D&gt;
Thanks for the kind words, but the credit really belongs to Scott Thompson who created and maintains the Alternate Dashboard6!  He's the brains behind it, and I just try to tweak things here and there, sometimes successfully and sometimes not. :-)
« Last Edit: October 23, 2015, 07:54:07 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #521 on: October 24, 2015, 07:26:54 PM »
It seems that my wind chill and outside temps are always the same. I doubled check my testtags, and everything seems correct. In the config file, I changed these settings, but it didn't seem to change anything..

// Settings for Feels Like Section (***You can set one or the other or BOTH if you wish!!!)
$useFL     = true;            // Set to false if you do not want to show the "Feels Like" Temperature above the colored word under the Temperature
$useHC     = true;            // Set to true if you want to show Heat Index and Wind Chill here instead
$MWC       = '40';            // Set to 40 for F and 4.4 for C
$MHI       = '80';            // Set to 80 for F and 26.6 for C

I did have both set to false, changing them to true didn't seem to change anything, but that could be because of my current temp of 64.

Any ideas?

Thanks

http://www.northbendweather.com/testtags.php?sce=view


"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 gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #522 on: October 25, 2015, 12:35:02 AM »
It seems that my wind chill and outside temps are always the same. I doubled check my testtags, and everything seems correct. In the config file, I changed these settings, but it didn't seem to change anything..

// Settings for Feels Like Section (***You can set one or the other or BOTH if you wish!!!)
$useFL     = true;            // Set to false if you do not want to show the "Feels Like" Temperature above the colored word under the Temperature
$useHC     = true;            // Set to true if you want to show Heat Index and Wind Chill here instead
$MWC       = '40';            // Set to 40 for F and 4.4 for C
$MHI       = '80';            // Set to 80 for F and 26.6 for C

I did have both set to false, changing them to true didn't seem to change anything, but that could be because of my current temp of 64.

Any ideas?

Thanks

http://www.northbendweather.com/testtags.php?sce=view
Scott says this in his 'SetupInstructionsAlatDashboard69x.pdf':

"E – Feels Like and/or Wind Chill/Heat Index.

Some people didn’t like the Feels like temperature and wanted to use more standard readings like Wind Chill and Heat Index. I’ve made it so you can choose either or both now or even neither! – Note: It will only display if there is more than 2 degrees difference from the current temperature.
$useFL = true <For Feels like $useHC = true <For Heat Index and Wind Chill.
"

And this is the 'ajax-dashboard6.php code' that displays these values:
Code: [Select]
<?php if (($useHC) && ((strip_units($nowTemp) >= $MHI))) { ?>
                                <?php langtrans('Heat Index'); ?>:&nbsp;<span class="ajax" id="ajaxheatidx2">
                                <?php echo strip_units($heati) . $uomTemp?></span><br />
                            <?php // End Use Heat Index or WindChill Readings  ?>
                            <?php if (($useHC) && ((strip_units($nowTemp) < $MWC))) { ?>
    <?php langtrans('Wind Chill'); ?>:&nbsp;<span class="ajax" id="ajaxwindchill2">
                                <?php echo strip_units($windch) . $uomTemp?></span><br />
                            <?php // End Use Heat Index or WindChill Readings ?><?php if (($useFL) && (abs((strip_units(abs($nowTemp))) - abs($feelslike)) >= 2)) { ?>
                                <?php langtrans('Feels like'); ?>:&nbsp;<span class="ajax" id="ajaxfeelslike">
                                <?php echo strip_units($feelslike) . $uomTemp?>
                                </span><br/>

<?php // End Use Feels Like Display  ?>                         
which uses boundaries of '$MHI' (Maximum Heat Index) and '$MWC' (Minimum Wind Chill).

You've posted the relevant 'AltAjaxDashboardConfig6.php' snippet setting these boundaries:
Code: [Select]
$useFL     = true;          // Set to false if you do not want to show the "Feels Like" Temperature above the colored word under the Temperature
$useHC     = true;           // Set to true if you want to show Heat Index and Wind Chill here instead
$MWC       = '40';            // Set to 40 for F and 4.4 for C
$MHI       = '80';            // Set to 80 for F and 26.6 for C
//

So, unless the temperature is above 80°F the Heat Index won't display or the temperature is below 40°F the Wind Chill won't display.  Additionally 'Feels Like' won't display unless there's a 2° difference between it and the outside temperature.  That's what the code says.  The Heat Index and Wind Chill values are both supplied by Weather Display's 'clientraw.txt' and 'testtags.php'.  The 'Feels Like' value is only supplied by 'testtags.php'.

When conditions warrant, with your current settings your ajax-desktop69x will display those values appropriately.
« Last Edit: October 25, 2015, 12:51:34 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.94 Released
« Reply #523 on: November 05, 2015, 05:26:38 PM »
I wasn't happy with the 'firedangerWD.php' graphic ignoring UOM changes between 'METRIC | IMPERIAL', so I modified 'ajaxWDwx3.js' and 'firedangerWD.php' to enable UOM switching.

This is the new 'ajaxWDwx3.js' 'fireImg3' section, in context:
Code: [Select]
      set_ajax_obs("ajaxcloudheight",cloudText);


// Fire Risk ... FireDangerWS
      ;;;set_ajax_obs('ajaxProgress',rand+'fire','in Fire Danger');
      temp = clientraw[ 4];
      humidity = clientraw[5];
param = '?temp=' + temp +'&humidity=' + humidity + '&uom=' + useUOM;
      set_ajax_obs("ajaxfdimg", param
         ,'<img src="'  + fireImg3.src + param
         + '" width="'  + fireImg3.width
         + '" height="' + fireImg3.height
         + '" hspace="' + fireImg3.hspace
         + '" vspace="' + fireImg3.vspace
         + '" />');


// Fire Risk ... (FWI)
The only change is the addition of " + '&uom=' + useUOM" to "param = '?temp=' + temp +'&humidity=' + humidity", which makes that line read
"param = '?temp=' + temp +'&humidity=' + humidity + '&uom=' + useUOM;"

The changes to 'firedangerWD.php' are slightly more extensive, so downloading the latest version is your best bet.  You can see it working on my homepage when you switch UOM's.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline txweathergeek

  • TXweathergeek
  • Senior Member
  • **
  • Posts: 99
    • The Weather Geek
Re: Alternative Dashboard version 6.94 Released
« Reply #524 on: November 13, 2015, 04:39:07 PM »
Hello. I installed, or at least tried to install, version 6.94 to my website today but nothing happened. I have the same dashboard as before. Any ideas what step I have missed or what went wrong?

http://dfweathergeek.com/index.php
Thanks very much!

TXweathergeek.

 

anything