Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)

Version 4.1 will now include a way to automatically change column 2 on the last row (Currently usually ET) to snow. The new configuration allows you to set the start and end month for snow to show. After that, it will change on it’s own as well as the footnotes and the headings. I’ve also modified the rain section to add in the last date and time of the last tip to show only when it’s not already raining. Also take off the VP Storm rain if it’s at 0 and the rate if it’s at 0.

Version 4.1 will be available for beta testing this weekend sometime. If there is anything else someone really wants, now is the time to speak up again!!! You can see the current work in progress at www.websterweatherlive.com 8O

Scott

Hi Scott,

I’ve done some other wee alterations to make the Nexstorm lightning work better.
For those of us using Nexstorm, we can’t use the 1, 5, 30, 60 minute counts from the testtags file that’s in the standard Alt-Dashboard as these only work with the 1-Wire detectors.
So, what I’ve done is to remove the 5 minute count (as there currently isn’t one for Nexstorm), moved everything up one level in the table and added the Nexstorm last strike bearing & distance at the bottom of the table.

This requires the addition of the following tags in testtags.txt:
$lighteningcountlasthour = “%lighteningcountlasthournextstorm%”;
$lighteningcountlastminute = “%lighteningcountlastminutenextstorm%”;
$lighteningcountlast30minutes = “%lighteningcountlast30minutesnextstorm%”;
$lighteningcountlast12hour = “%lighteningcountlast12hournextstorm%”;
$lighteningbearing = “%nextstormbearing%”;
$lighteningdistance = “%nextstormdistance%”;

I stuck to the same names as you have used for ease of alterations but you may want to rename them.

The table code I’m using now looks like this:

<?php
  if ($useLIGT) {  //  Show Lightning
?>
              <tr>
                <td class="data1" nowrap="nowrap">Last Minute:</td>
                <td style="text-align: right;" class="data1">
				  <span class="ajax" id="ajaxlightning">
				  <?php echo $lighteningcountlastminute; ?>
                  </span>
			    </td>
              </tr>
              <tr>
                <td class="data1" nowrap="nowrap">Last 30 Minutes:</td>
                <td style="text-align: right;" class="data1">
				  <?php echo $lighteningcountlast30minutes; ?>
				</td>
              </tr>
              <tr>
                <td class="data1" nowrap="nowrap">Last 60 Minutes:</td>
                <td style="text-align: right;" class="data1">
				  <?php echo $lighteningcountlasthour; ?>
				</td>
		      </tr>
              <tr>
                <td class="data1" nowrap="nowrap">Last 12 Hours:</td>
                <td style="text-align: right;" class="data1">
				  <?php echo $lighteningcountlast12hour; ?>
				</td>
		      </tr>
              <tr>
                <td class="data1" nowrap="nowrap"><?php  echo $monthname; ?>:</td>
                <td style="text-align: right;" class="data1">
				  <?php echo $lighteningcountmonth; ?>
				</td>
		      </tr>
              <tr>
                <td class="data1" nowrap="nowrap"><?php  echo $date_year ?> to Date:</td>
                <td style="text-align: right;" class="data1">
				  <?php echo $lighteningcountyear; ?>
				</td>
		      </tr>
               <tr>
                <td class="data1">Last
Strike:</td>
                <td style="text-align: right; font-size: 10px" class="data1">
				  <span class="ajax" id="ajaxlightningtime">
				  <?php echo $lighteningcountlasttime; ?>
                  </span>
				</td>
				</tr>
				<tr>
                <td class="data1" nowrap="nowrap">Last Bearing:</td>
                <td style="text-align: right;" class="data1">
				  <span class="ajax" id="ajaxlightningbearing">
				  <?php echo $lighteningbearing; ?></span>&deg;
				</td>
              </tr>
			  <tr>
                <td class="data1" nowrap="nowrap">Last Distance:</td>
                <td style="text-align: right;" class="data1">
				  <span class="ajax" id="ajaxlightningdist">
				  <?php echo $lighteningdistance; ?></span> mls
				</td>
		      </tr>
            </table>
           </td>
          <td align="center" valign="middle">
		    <table width="200" border="0" cellpadding="2" cellspacing="0">

You’ll notice that I’ve also added the bearing & distance into the Ajax updates, as this data is included within the clientraw file, so I’ve added the following to the ajaxWDwx.js:


lighteningcountdistance = clientraw[118];
set_ajax_obs("ajaxlightningdist",lighteningcountdistance);
lighteningcountbearing = clientraw[119];
set_ajax_obs("ajaxlightningbearing",lighteningcountbearing);

The only other alteration I made was to move the Davis VP2 ISS details to the bottom of the Station All Time Records table as this made the three lower tables more even in size.

Help yourself if you want to include the above.

Martin.

Martin

Thanks, I will add that in to support the Nexstorm and your other suggestion too! Thanks again

Scott

Hi Scott,
thanks for your answer.
Last question: I would translate your alternative dashboard in Italian language but i don’t know which file should i edit.
i tried to edit language-it.txt but without success.
Could you help me?
Thanks again,

Alessandro

Alessandro

At the time I modified the script, I didn’t know about the language files so I did not include support for it. In the future I may upgrade it to include support for that. Sorry.

Scott

Hi Scott,

Please consider including Rainer’s cloud-base graphic into your Alternative Dashboard Script.

VERSION 4.10 BETA ready for testing
NOTE: VERSION 4 and later REQUIRES YOU TO BE RUNNING VERSION 1.10 of the Ajax-Dashboard from Ken True!

This new version contains the following changes and additions:

  • Added in support for Automatic Snow Season Display. (You pick start and end months)
  • Added full support for NexStorm count tags and the Distance and Bearing tags
  • Reformatted the snow measurement to 0.00 format (it was 3 decimal places)
  • Reformatted the ET measurements to 0.00 format (it was 3 decimal places)
  • Added last rain tip to display when it is not raining
  • Removed VPstorm and Rain Rate tags when it’s not raining (made room for last tip date/time)
  • Removed Solar Noon tag as it wasn’t working
  • Moved the very small info line for Icon and VP Status under All Time Records
  • Cleaned up some code and formatting
  • Added NWS normal readings for the day

I’ve validated the code and have been testing it as much as I can here. It is now ready for beta testing. If you want to test it, you can download the package at: www.websterweatherlive.com/downloads/Ajax-DashboardALT_WWL410b.zip

Be sure to read the instructions! There are a number of config changes at the top of the code and you will need to replace your ajax-dashboard.php and ajaxWDwx.js files. You will also need to add a few tags to testtags.txt if you have NexStorm.

Scott

Hi Scott!
I’m editing your alternative dashboard to allow the translation to others language like the italian using language-xx.txt file.
When i’ll finish my job i’ll post here.
Best regards,

Alessandro

I like having the NWS normal high and low for today’s date in addition to the NWS records. I added them see the attached pic

Frank


Scott
I have set up the new version to test. I don’t use snow here in Georgia so I have the snow start and end set to zero and turned off the other snow settings (I think). However, I still have the section for snow displaying in the bottom row - see http://frankpinkston.com/weather/fcp_wx_main_3.php

The prior version has a blank area - see http://frankpinkston.com/weather/fcp_wx_main.php

I like what you gave done in the rain section with last rain date etc :slight_smile:

Also, on your dashboard on websterweather, below the thermometer image you show the local high/low as well as NWS records and normals. Can you add that to the template? I always come back and add that to mine but the formatting does not look as good as yours. :wink:

Thanks - its a great piece of work !

Frank

Frank,

Thanks, I did find the error for the snow (make sure you have the blank header config item true) and did add in the NWS Normal readings as well from a previous suggestion. The new updated ajax-dashboard.php file is now in the beta archive. Download the beta again and just replace that file and see how it runs. I think I’ve also fixed the issue with the larger text size in one part of the NWS records area. Thanks again

Scott

Recommendation:
Replace Fire Risk w/ Outlook.
Move Outlook to Moon.
Move Moon to where Fire Risk was originally.
Switch Lightning and Precip.

Justification:
Have hazardous conditions up top.

What are your thoughts?
This might entail some extra work, but if I make the change, then each new release I will have to change it.

Scott,
I have the newest version running and it looks much better. The snow section is now blank as it should be for my configuration. I did see one minor thing in the NWS area. It looks fine in Firefox. In IE8 the record low and nowmal low are on the same line. See the attached screen pics.

http://frankpinkston.com/weather/fcp_wx_main_3.php is the newest version

Frank


Frank,

Try downloading again, I’ve fixed that problem I think now. I don’t have IE8 so I can’t test it on that platform.

Scott

Hello,

I see version 4.10 of ajax-dashboard.php has changed the filename extension of all the NWS icons used for current conditions from jpg to gif. Example…
Version 4.00 “skc.jpg”, // 0 imagesunny.visible
Version 4.10 “skc.gif”, // 0 imagesunny.visible
This change is also reflected in the ajaxWDwx.js Version 3.00 versus 4.10.

is there a source of these icons as gif’s?

http://www.sandpointweather.com/scripts/wxindex.php

Thanks
Dennis

If you just go through the list and change the file extensions of those icons in ajax-dashboard.php & ajaxWDwx.js then it’ll work fine. :wink:

Martin,

I understand that. But I’m trying to keep to a minimum, the edits I have to make when new versions become available.

http://www.sandpointweather.com/scripts/wxindex.php

Thanks
Dennis

I’m testing some animated GIF’s for that and changed it. I’ll change it back for the released version to jpg. This is still the beta and I missed that change before I released the beta.

Scott

Just to be clear Scott will you please give us the download location again. Thanks

Frank

The BETA version of 4.10 can be downloaded at: www.websterweatherlive.com/downloads/Ajax-DashboardALT_WWL410b.zip

Scott