Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)

VERSION 4.10 BETA 3 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
  • Added support for the OPTIONAL Rainer’s Cloud Base Image (you must have installed the Cloud Base script first)
  • Added 2 new rows of data to wind and rain if using Cloud Based script as it makes the columns longer!

The items I haven’t been able to test are: The switching items in rain when it’s raining (3 weeks with no rain here!) and the new wind options for 60 and 120 minute averages. I also fixed the FWI for the two periods that were missed and added support for metric cloud height.

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 and to get the new wind and rain tags added.

Scott

Scott,
I have been testing the Beta 3 version and noticed a couple of things.

When using the cloud base graphic, there is an item in the Rain/Snow column for Avg For Month using the currentmonthaveragerain tag. This tag doesn’t appear to be working correctly as it changes value during the day. At noon, your site was displaying a value of 2.67. At 1:30 pm, it was displaying 2.71. And based on your rain detail pages, the only September rain you have had is 2.05 in 2008 and 0.01 in 2009.

In Weather Display, I have it set to just show strikes within 100 miles and only those strikes show in the strike counts. But the entries for distance, time, and bearing are still updating for strikes outside this range. Also the distance has no unit of measure (i.e. miles or kilometers).

Murry

Murry,

I too have noticed the average rain tag doesn’t work. It is doing the same thing the solor noon tag is/was doing and thats changing all day long every day. I think this is one Brian will have to look at when he has time. In the mean time I will probably replace that tag with something else.

The lightning strikes item I’m not sure how I could recreate, I only have the one-wire version and that doesn’t give direction or distance. I will add in the unit of measure tag to the script though! Thanks!

Scott

Version 4.10 Beta 4 is available for testing.

Removed average rain and replace it with last 7 days rain. Fixed “hasn’t rained in xx days” and added Units to Lightning distance. Beta is available only at the beta link posted below:

www.websterweatherlive.com/downloads/Ajax-DashboardALT_WWL410b.zip

I really need to find out if the rain measurements work and switch out correctly when it’s raining. It hasn’t rained here in over a month so no way to check!

Scott

Hi Scott

Thanks for your hard work, got one problem with the new beta Nexstorm distance “Miles” now shows but i can only see count (516) flash up when a update occurs. Not sure if I have missed something or if it’s a bug.
BTW testtags shows the correct reading “516”

Tony

Did you replace both the ajaxWDwx.js and the ajax-dashboard.php files?

I found and fixed the problem in the ajaxWDwx.js file! I’ve also released the script now. Thanks for the beta help!

Scott

VERSION 4.10 is RELEASED!
NOTE: VERSION 4 and later REQUIRES YOU TO BE RUNNING VERSION 1.10 of the Ajax-Dashboard from Ken True!

Version 4.10 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
  • FWI correction for 2 missing possible values
  • Added support for the OPTIONAL Rainer’s Cloud Base Image (you must have installed the Cloud Base script first)
  • Added 2 new rows of data to wind and rain if using Cloud Based script as it makes the columns longer!

I’ve validated the code and it has been in beta testing for weeks. If you want you can download the package at: www.websterweatherlive.com/wxScripts.php

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 and to get the new wind and rain tags added.

Scott

Hey Scott. Got 4.10 installed. THANK YOU for your hard work.

2 issues, for the life of me cannot get the thermometer to show, and the
cloud graphic continually flashes. The thermometer has me stumped.

Also, the 60 and 120 min. avg for wind both show calm.
Tags were missing. Thats fixed.

Tony

Tony,

For some reason your code for the thermometer has been altered. It should read:

		  </tr>
                  <tr align="center">
                      <td align="center" valign="top" class="data1" style="text-align: center;border: none">
  		          <span class="ajax" id="ajaxthermometer">
                          <?php $tstr = "Currently $temperature, Max: $maxtemp, Min: $mintemp"; ?>
                          <img src="thermometer.php?t=<?php echo strip_units($temperature); ?>" alt="<?php echo $tstr; ?>"
		          title="<?php echo $tstr; ?>" height="170" width="54" /> </span> 
		      </td>

And you have:

                  <tr align="center">
                      <td align="center" valign="top" class="data1" style="text-align: center;border: none">
  		          <span class="ajax" id="ajaxthermometer">
                          <?php $tstr = "Currently $temperature, Max: $maxtemp, Min: $mintemp"; ?>
                          <img src="thermometer.php?t=<?php echo $temperature; ?>" alt="<?php echo $tstr; ?>"
		          title="<?php echo $tstr; ?>" height="170" width="54" /> </span> 
		      </td>

If you notice, you are missing the Strip_units before sending the temperature to thermometer.php. The cloud graphic flashed with every update, mine does that too. Not sure if thats normal or not but I think it is as it re-drays the image every update.

Scott

I think I played with it so much, I put the old thermometer.php in there.

Tried your suggestion, still not working.

Would it have something to do with the New ajaxWDwx.js file?
If I put that in there I get zero updates, plus the last updated time is blank in the seconds spot.
So I have an older version in there that works.

On the new ajaxWDwx.js file you would want to be sure the settings at the top of the file match what you use (location of the thermometer.php file being one of them) as it would be by default what I use. Otherwise though the changes I made were to fix additions of the Lightning pieces and some formatting changes. For some reason it’s not finding thermometer.php so I’m guessing that there is a path error to that file in either the js or dashboard php files.

I also notice that the windrose graphic is bad when it first starts so the path to those are not set correctly in the ajax-dashboard.php file too!

Scott

I had some path issues. Think I’m all set (to fiddle with it some more)

THANKS!

Scott,

Thanks for replying to my earlier email this morning.

I have v4.10 on my site and wish to have the cloud height image and as I described in the email, the image doesn’t show. I get the following message when I test it:

Fatal error: Call to undefined function: idate() in /homepages/15/d234598541/htdocs/trajnet/wdl/cloud-base.php on line 1376

I tried your suggestion regarding the pathway to clientraw.txt with no success. I’m at a loss as to what else to try.

If there are any other suggestions, I’ll try them.

Thanks,

Traj

I think you’re going to have to check with the person the made that script. I installed it to add support for it to my script, I never had any problems with mine so I really haven’t even looked it myself. Sorry.

Scott

Traj,

When I look up the PHP function idate() I see that it is a PHP 5 function. Perhaps your server hasn’t been upgraded to 5 yet?

  • Jim

Thanks Scott and Jim.

I have been in contact with Rainer and he has been a tremendous help. Yes, that is the problem. Although my server will support php5, some finagling would have to be done. I’m not ready to tackle that yet.

Rainer has shown me changes in the code to get it to work for me. Wxpeople are the greatest!

Best,

Traj :smiley:

I noticed a version comment in the ajaxWDwx.js that says:
// — Version 2.12 - 07-Mar-2008 – added fix for ‘flashing icon/thermometer’ from Jim at jcweather.us

Would this be something that could also be done for the flashing cloud graphic?

Minor Update Version 4.20

Since I’ve added the Hobby Boards UV to my system I’ve noticed that at night the UV section is kinda useless (shows None). I’ve modified the code to switch it to the UV Forecast at night and the Current UV in the day. I’ve also noticed that sometimes the UV will show ZERO during the day. I’ve modified the java script to make it say “Updating…” as long as solar is greater then zero (If you don’t have solar it will still say ZERO). I’ve also added an option to the Weather Underground High/Low readings for those that can’t use WU’s stuff (by request). Here are the changes:

  • Switching Current UV and Forecast UV for day and night times
  • Switching headers for both UV and Solar based on Current reading or Info/Forecast
  • Added Sun/moon rise and set times in place of Weather Underground readings as an option
  • Reformatted the current temperature section to make better use of the space
  • Remove the Cloud Height reading on the bottom row, column 2 if using the cloud hight graphic instead
  • Fixed column width problem when date changes to 10 characters in the last rain tip (Pushed the column too wide)
  • Several cosmetic changes
  • Fix for UV reading of ZERO during the day… it now will say “updating…” rather then “0 - NONE”

This is mostly a cosmetic update. It is available for download now.

You will find the script at: http://www.websterweatherlive.com/wxScripts.php and it is available to view on my web’s main page now.

help needed, just converted to this dashboard, cannot get the thermometer graphics to display Celsius, I’ve changed the relevant php file but no luck. anybody show me where I’m going wrong


1 Like

I’ve got ‘F’ in that area in the thermometer.php file as I think the