WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: BurnsvilleWeather on May 16, 2012, 11:03:14 PM

Title: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on May 16, 2012, 11:03:14 PM
UPDATE:  Webster Weather Live is now called Burnsville Weather Live.  All current and future scripts will be hosted at the new link below!  Thanks!

Alternative Dashboard version 6.71 is now available (Full version and replacement for all V6.xx Versions)!  Version 6.xx expands on a lot of sections and changes the look quite a bit at the top.  I made this version to fit my station so it may not be right for everyone.  Please look over the requirement and be sure to do a backup before trying to use it.  I suggest you already have Version 5.xx minimum, version 6.5 ideal running to use this or be pretty patient with making a lot of changes!


Requirements:
Updated and expanded AjaxWDwx.js file based on version 9.xx from Bashewa Weather
Many more testtags to add in and a new config file for Alt-Dashboard6

New Features since version 6.6x:

New icons for Station Records separate from Weather-Underground (official, since they usually come from a NWS site in the USA).  I made it so you can show the readings under the temperature either from WU or your station (if you have 2 years of data or more) like before but now you can show the record Icon for one, both or none.  

Solar switching icon/section from Jerry Wilkins (with his permission, thanks Jerry!) and all the neat things that can do.  There are several changes for the config file too.

Tide Display and Switchable Lightning Display.  Now you can leave SNOW or TIDE on all the time and Lightning (if you have it), will over-ride the display if there is lightning being read on your station.  (You set the level to make it over-ride).

The Soil section now can handle both Imperial and Metric Temperatures with Icons for both.  There are also new Icons for both Official Records and Station Records if you choose to use them.

This version is also up-to-date with most of Ken's changes, many minor changes (dew point arrow, _ in one reading, etc) and some cosmetic changes as well.  This new version will now become the only version 6.xx version I will support since it has all the previous files and options plus more.



13-SEP-2012 - Download Version 6.71 HERE:
www.burnsvilleweatherlive.com/wxScripts.php (http://www.burnsvilleweatherlive.com/wxScripts.php)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Bunty on May 17, 2012, 04:22:00 AM
I have it running just fine at http://stillwaterweather.com/wx/2ndhome.php (http://stillwaterweather.com/wx/2ndhome.php)  Thank you!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gwwilk on May 17, 2012, 11:08:46 AM
Thanks, Scott, for the kind words.

Since I contributed significantly to the bloat in the ajaxWDwx.js file, I thought I should share the version I compressed online at http://www.lotterypost.com/js-compress.aspx (http://www.lotterypost.com/js-compress.aspx) which is less than half the size.  Just rename the original ajaxWDwx.js file to something appropriate, and use this compressed version ajaxWDwx67.min.js.txt after renaming it to ajaxWDwx.js  This file gets copied to the client computer and does the heavy lifting during real-time updates, so smaller is definitely better.  The compressed version differs slightly in that the title of the SI icon displays the method rather than the icon number when moused over.

A few words about the Solar Index might be appropriate.  I, like a few others, wondered why my SI was so high early and late in the day when the absolute W/m2 was quite low.  It turns out that the solar percent value used in the calculation, while essential for determining cloud cover, was not ideal for scaling the amount of solar energy hitting my sensor.  I devised an alternate scale using W/m2 based on the station's record high solar reading and set up a toggle in the dashboard code to switch back and forth between the two SI methods.  The problem with my code was that while the values of solar energy either as W/m2 or solar percent were updating via ajax, the SI icon was static, and thus not very useful when compared with the UV Index and icon which were 'live'.  Earlier this month I finally learned enough about what was going on between ajaxWDwx.js and ajaxDashboard6.php to finish the project by making the SI icons 'live' as well.

The configuration flags for the SI section were added so that you can default to either SI scale and toggle or not.  If SI switching is used, a terse footnote shows up that attempts to explain what's going on.

I do appreciate Scott's putting up with my questions and for allowing me to make life even more confusing for people. :-)

Edit:  It occurred to me during my bike ride this morning that there is another modification in the compressed ajaxWDwx76.min.js.txt I posted.  If you find that your current condition icon isn't working, I use the animated .gif's rather than the distribution's .jpg's, and the compressed ajaxWDwx67.min.js.txt is set up for .gif's.  Let me know if you're unable to compress the distribution ajaxWDwx.js and I'll try to provide one.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Andy G on May 17, 2012, 02:18:11 PM
Hi Scott and thanks for all your work on this script

I have one problem (its a old problem) I get this error when I use the newest .js file your "http://www.sunprairieweather.com/clientraw.txt file could not be found" in the past when I updated to the newest dashboard I used version .js version 4.2 and never get any errors but loose some functionality any ideas what is causing this off the top of your head dont go to any trouble i can alaways use the .js version that I dont get errors with http://www.sunprairieweather.com (http://www.sunprairieweather.com)

Thanks Andy
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 17, 2012, 02:29:35 PM
You do need to go in and edit it or use the config file with it.  I don't normally put the config file in the archive because it is a requirement of version 6 to have that installed already.  Send me an email with your email and I'll send you a copy.  If you haven't done a lot of custom mods on your site, it's pretty easy to setup.

Scott

Hi Scott and thanks for all your work on this script

I have one problem (its a old problem) I get this error when I use the newest .js file your "http://www.sunprairieweather.com/clientraw.txt file could not be found" in the past when I updated to the newest dashboard I used version .js version 4.2 and never get any errors but loose some functionality any ideas what is causing this off the top of your head dont go to any trouble i can alaways use the .js version that I dont get errors with http://www.sunprairieweather.com (http://www.sunprairieweather.com)

Thanks Andy
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jgillett on May 17, 2012, 05:54:30 PM
Hey Scott,

It's picky-picky again.

Think there's a small problem here in ajax.dash, ~2146...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $FootSI; ?>

Currently all it prints is the <sup>9</sup>. Shouldn't it be...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $Foot9; ?>

Many thanks for your usual great job. I can see a lot of work went into this update.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jdee on May 17, 2012, 05:56:56 PM
Scott Thank you once again for this script - outstanding!

Can you have a look here http://www.carrowhawny.com and tell me whats going on with the formatting under the Liquid Precipitation element as the text is not formatted correctly - also is the column spacing correct?

Many thanks

Phil
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gwwilk on May 17, 2012, 07:09:13 PM
Hey Scott,

It's picky-picky again.

Think there's a small problem here in ajax.dash, ~2146...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $FootSI; ?>

Currently all it prints is the <sup>9</sup>. Shouldn't it be...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $Foot9; ?>

Many thanks for your usual great job. I can see a lot of work went into this update.


I'll jump in here, John, since I created the problem you've discovered.  I also noticed the persistence of my temporary footnote name when I was updating my dashboard this morning, and I should have said something.  A search for $FootSI and replacement with $Foot9 will indeed solve the problem.  My apologies.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 17, 2012, 07:40:25 PM
My fault, I missed that one!  It's been corrected in the archive as of now!   #-o

Scott

Hey Scott,

It's picky-picky again.

Think there's a small problem here in ajax.dash, ~2146...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $FootSI; ?>

Currently all it prints is the <sup>9</sup>. Shouldn't it be...

<?php
   if (($haveUV) and ($dayornight == 'Day') and ($useSISwitch)) {
?>
<sup>9</sup> <?php echo $Foot9; ?>

Many thanks for your usual great job. I can see a lot of work went into this update.


I'll jump in here, John, since I created the problem you've discovered.  I also noticed the persistence of my temporary footnote name when I was updating my dashboard this morning, and I should have said something.  A search for $FootSI and replacement with $Foot9 will indeed solve the problem.  My apologies.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gwwilk on May 17, 2012, 07:57:06 PM
Scott Thank you once again for this script - outstanding!

Can you have a look here http://www.carrowhawny.com and tell me whats going on with the formatting under the Liquid Precipitation element as the text is not formatted correctly - also is the column spacing correct?

Many thanks

Phil

The column spacing appears to be correct, Phil, given the graphics at the top of your dashboard.  However, there's a formatting glitch as you point out.

Scott, there are 3 areas that don't center when 'wide' is set, and this is one of them.  'Almanac' and 'Wind' are the other two.  A <td ...align="center"... > addition in the appropriate place fixes each of them.  I have corrected the dashboard code on my site so that there is consistent formatting when 'wide' is set.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 17, 2012, 10:03:58 PM
Re-Released with fixes:

I found a validation error that I've now fixed and added in the center code for those that have wide display (I can't test this one so someone will need to tell me if it's ok).  I also fixed the footnote! 

Since so few have downloaded it so far, if you have a version dated the 16, please update to the 17th version.  The archive is now online, just drop in the main php file. 

Scott
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jgillett on May 18, 2012, 12:08:14 AM
My fault, I missed that one!  It's been corrected in the archive as of now!   #-o

Scott

Naw - you just deliberately left it that way so I'd have something to find... Tank U!   :lol:
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gwwilk on May 18, 2012, 12:18:48 AM
Re-Released with fixes:

I found a validation error that I've now fixed and added in the center code for those that have wide display (I can't test this one so someone will need to tell me if it's ok).  I also fixed the footnote! 

It's OK, Scott.  I downloaded the new release and the wide alignment is good.  Thanks!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Andy G on May 18, 2012, 12:49:13 AM
You do need to go in and edit it or use the config file with it.  I don't normally put the config file in the archive because it is a requirement of version 6 to have that installed already.  Send me an email with your email and I'll send you a copy.  If you haven't done a lot of custom mods on your site, it's pretty easy to setup.

Scott
Hi Scott

Did you get my email I can send again if you didnt?

Thanks
Hi Scott and thanks for all your work on this script

I have one problem (its a old problem) I get this error when I use the newest .js file your "http://www.sunprairieweather.com/clientraw.txt file could not be found" in the past when I updated to the newest dashboard I used version .js version 4.2 and never get any errors but loose some functionality any ideas what is causing this off the top of your head dont go to any trouble i can alaways use the .js version that I dont get errors with http://www.sunprairieweather.com (http://www.sunprairieweather.com)

Thanks Andy
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jgillett on May 18, 2012, 02:24:44 AM
Updated version posted, Scott. Looks good so far. Will know more tomorrow when it's 'day'.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jdee on May 18, 2012, 07:23:25 AM
Thank you Scott - all sorted and working as advertised - Brillant!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 18, 2012, 07:36:22 AM
Hmmmm  8-)

My fault, I missed that one!  It's been corrected in the archive as of now!   #-o

Scott

Naw - you just deliberately left it that way so I'd have something to find... Tank U!   :lol:
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 18, 2012, 07:38:13 AM
You may need to send again, I didn't receive anything.  Just click the email icon under my name on the left, then you can send me an email directly.  Thanks

You do need to go in and edit it or use the config file with it.  I don't normally put the config file in the archive because it is a requirement of version 6 to have that installed already.  Send me an email with your email and I'll send you a copy.  If you haven't done a lot of custom mods on your site, it's pretty easy to setup.

Scott
Hi Scott

Did you get my email I can send again if you didnt?

Thanks
Hi Scott and thanks for all your work on this script

I have one problem (its a old problem) I get this error when I use the newest .js file your "http://www.sunprairieweather.com/clientraw.txt file could not be found" in the past when I updated to the newest dashboard I used version .js version 4.2 and never get any errors but loose some functionality any ideas what is causing this off the top of your head dont go to any trouble i can alaways use the .js version that I dont get errors with http://www.sunprairieweather.com (http://www.sunprairieweather.com)

Thanks Andy
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 18, 2012, 07:39:07 AM
Great!  I think this one might finally be finished!

Scott

Thank you Scott - all sorted and working as advertised - Brillant!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Andy G on May 18, 2012, 12:40:09 PM
You may need to send again, I didn't receive anything.  Just click the email icon under my name on the left, then you can send me an email directly.  Thanks

Hi Scott

Sorry for the trouble I tried emailing you again using the board mesage icon I see no email icons under anyone's name except my own. maybee i need to change a setting in my profile.

Sorry for the trouble

Thanks andy
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: n3ouc on May 18, 2012, 01:59:54 PM
Hey Scott,
All set up here and everything is working perfectly!
Thank You for a fantastic script...

Take Care,
Mike
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jgillett on May 18, 2012, 02:34:02 PM
All appears to be working as advertised in 'day', Scott.

As always - thanks for you hard work.

Looking forward to the new mobile.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Torjan on May 22, 2012, 06:07:37 AM
Hello!
Trying out the new V 6.70
Has got everything working except that the page does not switch over to heat index when it is warm enough.
Shows only the wind chill all the time?  Anybody have an idea.


http://regnskvett.com/index.php?lang=en (http://regnskvett.com/index.php?lang=en)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 22, 2012, 07:45:47 AM
Make sure you have the switch temperature in the config file set correctly.  It's set 65F by default.  Also, I noticed that you have a lot of red "X" images at startup.  To fix that make sure that the settings in the config and at the beginning of the main .php file are set.  Remember there are actually 2 programs running!

Scott


Hello!
Trying out the new V 6.70
Has got everything working except that the page does not switch over to heat index when it is warm enough.
Shows only the wind chill all the time?  Anybody have an idea.


http://regnskvett.com/index.php?lang=en (http://regnskvett.com/index.php?lang=en)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Torjan on May 22, 2012, 10:01:06 AM
Hi!
Inserted 18.33C instead of 65F. and it worked fine. Has been corrected in some of the paths clean up the red X. Taking little by little.
Must be out enjoying the weather there is a long time since it was such temperatures here with us.

Thank you scott.

Torjan
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gtstricky on May 22, 2012, 03:40:13 PM
Mine seems to be working great so far. http://www.kennettweather.com
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: rh205 on May 22, 2012, 04:53:06 PM
Hi,

All seems to be working OK here, but for some reason the tide clock ignores morning high and low tides and shows the next tide of the afternoon. The dashboard is at www.gosportweather.co.uk/wxindex.php (http://www.gosportweather.co.uk/wxindex.php) and the tide page showing tide times is at http://gosportweather.co.uk/tideprediction.html (http://gosportweather.co.uk/tideprediction.html). I have checked the settings but can't seem to get it working correctly.

Any suggestions as to why it ignores morning tides?

Regards,

Ross Hodgman
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on May 22, 2012, 09:13:04 PM
Glad you got it!  Enjoy the great weather!!  \:D/

Scott

Hi!
Inserted 18.33C instead of 65F. and it worked fine. Has been corrected in some of the paths clean up the red X. Taking little by little.
Must be out enjoying the weather there is a long time since it was such temperatures here with us.

Thank you scott.

Torjan
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: ALITTLEweird1 on May 22, 2012, 09:20:10 PM
Thanks Scott for the update and all of your work on this.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Torjan on May 25, 2012, 08:14:44 AM
Hi,

All seems to be working OK here, but for some reason the tide clock ignores morning high and low tides and shows the next tide of the afternoon. The dashboard is at www.gosportweather.co.uk/wxindex.php (http://www.gosportweather.co.uk/wxindex.php) and the tide page showing tide times is at http://gosportweather.co.uk/tideprediction.html (http://gosportweather.co.uk/tideprediction.html). I have checked the settings but can't seem to get it working correctly.

Any suggestions as to why it ignores morning tides?
   
Regards,

Ross Hodgman

Hi!
It is like this One my page to.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: jahuff on June 01, 2012, 11:25:49 AM
Thanks Scott,

6.70 in production and working fine.

John

Also thanks to gwwilk for the compressed file it's also working fine.

Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: rh205 on June 18, 2012, 08:04:06 AM
Hi,

I am finding that the tide clock isn't displaying correctly in IE 9. It seems to be completely off centre. I just wonder how I could fix this as most of my visitors use IE. The code for the tide clock is also failing the validation check at W3C.

The errors I get are:

Line 870, Column 3: document type does not allow element "p" here

Line 870, Column 100: document type does not allow element "img" here; assuming missing "caption" start-tag

The code is:


$next_tide_time = date('H:i T', strtotime("+$mins_to_next_tide minutes"));
echo "<p>".time_till_tide($mins_to_next_tide * 60)." to $tide_type tide at $next_tide_time </p>";
$mins_to_next_tide_rounded = round_tide_time($mins_to_next_tide);
$tide_image = select_tide_image($mins_to_next_tide_rounded,$tide_type);
echo "<img src=\"tides/$tide_image\" width=\"250\" alt=\"\"></img><br />";



  //echo $nexttidequarter;
?>

Any help would be appreciated.

 
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: McLouthWX on June 18, 2012, 11:36:54 AM
Try removing the double quote immediately after "<p>.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on June 18, 2012, 07:19:02 PM
I've made a change to that section of code for the next version.  If you replace the lines in questions with:

Code: [Select]
$next_tide_time = date('h:i A T', strtotime("+$mins_to_next_tide minutes"));
echo "<p>" . time_till_tide($mins_to_next_tide * 60) . " to " . $tide_type . " tide at<br />" . $next_tide_time . "</p>";

This will be the code that will be(is) in version 6.71 when it gets released.  Image below shows how it will look.  (Note, I don't use Tide so there is no graphic, it just shows how the placement and wording is.)

Scott


Hi,

I am finding that the tide clock isn't displaying correctly in IE 9. It seems to be completely off centre. I just wonder how I could fix this as most of my visitors use IE. The code for the tide clock is also failing the validation check at W3C.

The errors I get are:

Line 870, Column 3: document type does not allow element "p" here

Line 870, Column 100: document type does not allow element "img" here; assuming missing "caption" start-tag

The code is:


$next_tide_time = date('H:i T', strtotime("+$mins_to_next_tide minutes"));
echo "<p>".time_till_tide($mins_to_next_tide * 60)." to $tide_type tide at $next_tide_time </p>";
$mins_to_next_tide_rounded = round_tide_time($mins_to_next_tide);
$tide_image = select_tide_image($mins_to_next_tide_rounded,$tide_type);
echo "<img src=\"tides/$tide_image\" width=\"250\" alt=\"\"></img><br />";



  //echo $nexttidequarter;
?>

Any help would be appreciated.

 
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Bunty on June 20, 2012, 01:45:40 PM
The "feels like" feature under current temp on my 6.70 front page doesn't seem to work properly.  Starting out it lands on a reasonable temp, but after a brief time changes to a much higher figure that doesn't seem right.  Don't know what's the matter.  It sure doesn't feel like it's as bad as 102.  It's at: http://stillwaterweather.com/wx/2ndhome.php (http://stillwaterweather.com/wx/2ndhome.php)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: cospringswx on June 20, 2012, 02:33:31 PM
Probably because of the high humidity. Thats probably right
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Bunty on June 20, 2012, 03:29:02 PM
OK, you must be right.  Someone else with 6.7, who has similar conditions, has the "feels like" temp around 100.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Weather Display on June 21, 2012, 05:03:49 AM
I bet as soon as you go outside and do some work it will feel like that hot :lol: ;)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: WeatherAnomaly on June 22, 2012, 03:30:30 PM
For the tide prediction I cannot find the icons. Were the icons for tide s suppose to be included with the 6.7.version? Thanks in advance. Nice work on v6.70.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on June 24, 2012, 12:57:40 PM
For the tide prediction I cannot find the icons. Were the icons for tide s suppose to be included with the 6.7.version? Thanks in advance. Nice work on v6.70.

The tide items are there only for those already setup and running with it since I did not write that module.  One you have it setup and working, it will display on the dashboard.  Sorry.

Scott
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: tnwxman on July 04, 2012, 09:41:27 PM
Hi,

I just upgraded to 6.70. I have three issues.

1. I chose to have the heat index and wind chill display instead of the feels like temperature. However the feels like temperature continues to display.

$useFL     = false;            // Set to false if you do not want to show the "Feels Like" colored word under the Temperature
$useHC     = true;           // Set to true if you want to show Heat Index and Wind Chill here instead

2. I set up the soil moisture / temperature like I did in the previous ver. Now I get the statement sensor below freezing when the soil temp. 4" down is 90 plus degrees.

3. When I click the the wording for full forecast (upper right above chandler burn index) I get the wxsim forecast instead of NWS.

Any suggestions?

Thanks.

Bob

Happy 4th everyone.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on July 06, 2012, 02:27:07 PM
The sensor below freezing is because the sensor is totally dry and I didn't anticipate that happening other then freezing.  I have a fix for it, email me directly and I will send you the update.  As for the other, I will have to check, I just got back from vacation so it will be later this weekend.

Scott


Hi,

I just upgraded to 6.70. I have three issues.

1. I chose to have the heat index and wind chill display instead of the feels like temperature. However the feels like temperature continues to display.

$useFL     = false;            // Set to false if you do not want to show the "Feels Like" colored word under the Temperature
$useHC     = true;           // Set to true if you want to show Heat Index and Wind Chill here instead

2. I set up the soil moisture / temperature like I did in the previous ver. Now I get the statement sensor below freezing when the soil temp. 4" down is 90 plus degrees.

3. When I click the the wording for full forecast (upper right above chandler burn index) I get the wxsim forecast instead of NWS.

Any suggestions?

Thanks.

Bob

Happy 4th everyone.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: tnwxman on July 06, 2012, 04:45:47 PM
Hi Scott,

Just filled out the contact form at your website for you to send the information. I understand about vacation and the other items. When ever you get a chance.

Thanks.

Best regards,

Bob
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: ed2kayak on July 07, 2012, 03:39:02 PM
Minor issue:
No record high icon showing. I'm getting this validation error, probably the reason.

NVM didn't have new icons. duh.

Still getting validation though.

ine 619, Column 99: document type does not allow element "img" here

…c_HIGH.gif" alt="Official Record High"/>                                       



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: ed2kayak on July 07, 2012, 07:32:29 PM
Hi Scott,

My dashboard was showing the wrong high temp today, minor point I know off by 0.1 (Shows 102.0 actual was 102.1, the time is correct). Really would not have noticed but we had record high today.
Is it because of rounding with ajxaxtempmax?

<span class="ajax" id="ajaxtempmax" style="font-size: 16px; " lastobs="102.0&amp;deg;F">102.0°F</span>

Thanks a bunch!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on July 07, 2012, 07:41:40 PM
My guess is that this is a rounding error.  Either way this would be passed to the script from Weather Display as such.  You can verify that by looking at the testtags.txt file.

Scott

Hi Scott,

My dashboard was showing the wrong high temp today, minor point I know off by 0.1 (Shows 102.0 actual was 102.1, the time is correct). Really would not have noticed but we had record high today.
Is it because of rounding with ajxaxtempmax?

<span class="ajax" id="ajaxtempmax" style="font-size: 16px; " lastobs="102.0&amp;deg;F">102.0°F</span>

Thanks a bunch!

Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: aggieman on July 08, 2012, 05:58:47 PM
Hi All,

I was switching from Version 6.20 to 6.70 and then got this message:

Parse error: syntax error, unexpected '%', expecting ']' in /virtual/users/e15634-16474/web/testtags.php on line 552

Placed the new testtags v1.07 in my local file.  Any ideas?

Thanks!
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on July 08, 2012, 07:40:11 PM
Hi All,

I was switching from Version 6.20 to 6.70 and then got this message:

Parse error: syntax error, unexpected '%', expecting ']' in /virtual/users/e15634-16474/web/testtags.php on line 552

Placed the new testtags v1.07 in my local file.  Any ideas?

Thanks!

You may have added in the additional tags (many are added to the base 1.07) and wiped out the line(s) that must remain at the end.  Double check that.

Scott
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on July 08, 2012, 08:04:16 PM
UPDATE:  I've made several minor changes to version 6.70 and have a new beta release 6.71

In this new release:

Fixed the format issue for the Tide Display
Fixed the Soil 200cb issue and changed the wording to include 200
Fixed incorrect Ajax tag for heat index (not sure how long that hasn't worked!)
NEW FEATURE: Added ability to replace or add Heat Index/Wind Chill to or in-place of Feels Like Temperature
but to do so had to add to the ajaxWDwx.js file for the extra dup tags.  You will need to replace both files!

The config file has had the settings for the new feature for quite awhile, it was just labeled as future.  It will now start working.  You can actually display both now too as you will see on my site currently.  If you want to beta test this, please drop me an email and I will send you both the .js and .php files.

Scott

PS:  Would especially like someone that can test wind chill to beta test if that fits anyone!! 
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: bucks County Weather on July 28, 2012, 02:32:43 PM
I seem to have an issue where the 24 hour time is selected to display in the file, when my page opens it in fact does display 24 hour time, then switches over to normal display. I've changed what I had to, or so I thought...where are the time display settings located???
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on July 28, 2012, 05:46:24 PM
I seem to have an issue where the 24 hour time is selected to display in the file, when my page opens it in fact does display 24 hour time, then switches over to normal display. I've changed what I had to, or so I thought...where are the time display settings located???

Well first I noticed you are using the wrong version of testtags.txt (yours is version 1.6 and you should be on 1.7, included in archive).  Next you need to add in the rest of the files from the archive. (See instructions in the archive).

Are you on Ken's version 3 script or still on version2?

The time setting is located in the settings.php file

Scott
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: bucks County Weather on July 29, 2012, 03:57:36 PM
Since re-starting my site after 5 months of being offline its requiring too much time, that I don't have right now to get it all working correctly..
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: mickopla on September 08, 2012, 06:43:39 AM
I'm currently running the 6.60 beta and want to upgrade to 6.71. I copy over the needed files and make alterations in the settings for my station but on the dash page i get no data. Ive never had problems upgrading before.Any ideas on what could be wrong??

Cheers

Mike
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: gwwilk on September 08, 2012, 09:08:03 AM
Mike, unfortunately the alt-dashboard's creator and guru, Scott, is no longer frequenting the forum due to health issues.  Without his help, we're all a bit at sea here.  I see that you're currently back to the 6.60 beta on your site (btw a url to your site in the query is always a good idea), and I will readily admit I've no clue regarding your problem with the 6.71 release.

The best advice I can give is to be sure you're using the latest 'testags.txt' source file in WD.  Also, I highly recommend the free cross-platform file comparison utility, 'DiffMerge' (http://www.sourcegear.com/diffmerge/downloads2.html), as a way to sort out configuration issues between script releases.  It is also vital for preserving any additional customization that you have done to the scripts.  Let us know regarding your progress, and we'll try to help sort things out as best we can.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: mickopla on September 08, 2012, 04:11:50 PM
Mike, unfortunately the alt-dashboard's creator and guru, Scott, is no longer frequenting the forum due to health issues.  Without his help, we're all a bit at sea here.  I see that you're currently back to the 6.60 beta on your site (btw a url to your site in the query is always a good idea), and I will readily admit I've no clue regarding your problem with the 6.71 release.

The best advice I can give is to be sure you're using the latest 'testags.txt' source file in WD.  Also, I highly recommend the free cross-platform file comparison utility, 'DiffMerge' (http://www.sourcegear.com/diffmerge/downloads2.html), as a way to sort out configuration issues between script releases.  It is also vital for preserving any additional customization that you have done to the scripts.  Let us know regarding your progress, and we'll try to help sort things out as best we can.

Thanks for the tip re DiffMerge. I ran the software and found a few differences in my altdashboard.php file which i changed and now i have version 6.70 working. The only thing to not work correctly is the tides section even though i have it switched on and generating tide details in WD. This is similar to version 6.60 beta where tides didn't work for me also.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on September 09, 2012, 03:50:51 PM
Back from Surgery and will be able to help a bit now while I recover.  The Tides script is setup in the config file and you must have the tides script already installed from it's original creator for it to work.  All I did was allow the script to put the information on the page and move the config to the dashboard config section.  Make sure it works stand-alone first then turn it on in the dashboard. 

Scott

Mike, unfortunately the alt-dashboard's creator and guru, Scott, is no longer frequenting the forum due to health issues.  Without his help, we're all a bit at sea here.  I see that you're currently back to the 6.60 beta on your site (btw a url to your site in the query is always a good idea), and I will readily admit I've no clue regarding your problem with the 6.71 release.

The best advice I can give is to be sure you're using the latest 'testags.txt' source file in WD.  Also, I highly recommend the free cross-platform file comparison utility, 'DiffMerge' (http://www.sourcegear.com/diffmerge/downloads2.html), as a way to sort out configuration issues between script releases.  It is also vital for preserving any additional customization that you have done to the scripts.  Let us know regarding your progress, and we'll try to help sort things out as best we can.
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on September 09, 2012, 03:55:51 PM
I'm currently running the 6.60 beta and want to upgrade to 6.71. I copy over the needed files and make alterations in the settings for my station but on the dash page i get no data. Ive never had problems upgrading before.Any ideas on what could be wrong??

Cheers

Mike

Mike,

Differences between 6.60 and 6.71 are a new ajaxWDwx.js file, new config file with a few new settings and the new main script.  Make sure all three are updated on your site.  My guess is you didn't update to the lasted .js file as there and several additions there.

Scott
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: SlowModem on September 09, 2012, 03:56:47 PM
Back from Surgery and will be able to help a bit now while I recover.

I don't know anything about the fancy internet web stuff.  But I do wish you a speedy recovery and good health!  :)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: mickopla on September 10, 2012, 06:27:46 PM
Back from Surgery and will be able to help a bit now while I recover.  The Tides script is setup in the config file and you must have the tides script already installed from it's original creator for it to work.  All I did was allow the script to put the information on the page and move the config to the dashboard config section.  Make sure it works stand-alone first then turn it on in the dashboard. 

Scott

Mike, unfortunately the alt-dashboard's creator and guru, Scott, is no longer frequenting the forum due to health issues.  Without his help, we're all a bit at sea here.  I see that you're currently back to the 6.60 beta on your site (btw a url to your site in the query is always a good idea), and I will readily admit I've no clue regarding your problem with the 6.71 release.

The best advice I can give is to be sure you're using the latest 'testags.txt' source file in WD.  Also, I highly recommend the free cross-platform file comparison utility, 'DiffMerge' (http://www.sourcegear.com/diffmerge/downloads2.html), as a way to sort out configuration issues between script releases.  It is also vital for preserving any additional customization that you have done to the scripts.  Let us know regarding your progress, and we'll try to help sort things out as best we can.

Great to have you back Scott. I wish you a speedy recovery.
I got 6.70 to work but official record low doesn't appear when i hit a record low. Official high does appear.Is there anything i can check in order to get both working?? Thanks in advance

Mike
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on September 10, 2012, 09:47:51 PM
Mike,

Official records come from Weather Undergrounds records based on your chosen official site.  If you have nothing setup for it in the config of Weather Display it will not work.  Check there first, let me know what your settings are if they are set.

Scott


Back from Surgery and will be able to help a bit now while I recover.  The Tides script is setup in the config file and you must have the tides script already installed from it's original creator for it to work.  All I did was allow the script to put the information on the page and move the config to the dashboard config section.  Make sure it works stand-alone first then turn it on in the dashboard. 

Scott

Mike, unfortunately the alt-dashboard's creator and guru, Scott, is no longer frequenting the forum due to health issues.  Without his help, we're all a bit at sea here.  I see that you're currently back to the 6.60 beta on your site (btw a url to your site in the query is always a good idea), and I will readily admit I've no clue regarding your problem with the 6.71 release.

The best advice I can give is to be sure you're using the latest 'testags.txt' source file in WD.  Also, I highly recommend the free cross-platform file comparison utility, 'DiffMerge' (http://www.sourcegear.com/diffmerge/downloads2.html), as a way to sort out configuration issues between script releases.  It is also vital for preserving any additional customization that you have done to the scripts.  Let us know regarding your progress, and we'll try to help sort things out as best we can.

Great to have you back Scott. I wish you a speedy recovery.
I got 6.70 to work but official record low doesn't appear when i hit a record low. Official high does appear.Is there anything i can check in order to get both working?? Thanks in advance

Mike
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on September 15, 2012, 05:01:27 PM
UPDATE:  Version 6.71 is now released and available to download!

Whats NEW in version 6.71?
Fix for format issue in Tide.
Changes to Soil for 200cb to display properly.  
Can now use Heat Index and Wind Chill instead of Feels Like under current Temp. Just use settings in config.
Added ability to block soil moisture display if you only have temp probes for soil.

Upgrading Notes:
New config included for those updating, you need to update that to use this new version.  BE SURE TO MAKE A BACKUP OF YOUR OLD CONFIG FILE FIRST and be sure to set the config file to match your old site and needs!

Link to download is in message 1 of this thread!

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jgillett on September 15, 2012, 09:09:18 PM
Hi Scott,

Hopefully these updates mean you are on the mend! Continued best wishes.

I have (of course) a problem. Unable to get this one to upzip. It just locks up my program. Tried the D/L twice. The zip for the mobile update worked fine.

Thanks.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on September 15, 2012, 10:02:04 PM
Hi Scott,

Hopefully these updates mean you are on the mend! Continued best wishes.

I have (of course) a problem. Unable to get this one to upzip. It just locks up my program. Tried the D/L twice. The zip for the mobile update worked fine.

Thanks.

Just checked the download and I was able to open it fine here.  Wonder if anyone else is seeing an issue?  As for being on the mend... yeah, getting better but sleep a lot and not a lot of energy yet so not much time on the computer yet but slowly working back!  Thanks

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jgillett on September 16, 2012, 02:18:05 AM
Scott, anything different between this one and the 6.71b I've been running?

Thanks.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on September 16, 2012, 11:19:03 AM
Scott, anything different between this one and the 6.71b I've been running?

Thanks.

Just a few changes to the soil sections.  If you don't use soil you are ok.

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jgillett on September 16, 2012, 11:48:46 AM
Just a few changes to the soil sections.  If you don't use soil you are ok.

Scott

Great - thanks.

BTW, finally did get a good download (now that I don't need it!).
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on September 23, 2012, 01:29:51 PM
Hi Scott!
Thanks for this new version....
I've set it correctly but i don't manahe to change time format to 24 hour.
This is my settings file:

Code: [Select]
$timeFormat = 'D, M-d-Y H:i';  // Fri, 31-Mar-2006 6:35pm TZone
//$timeOnlyFormat = 'g:ia';    // h:mm[am|pm];
$timeOnlyFormat = 'H:i';     // hh:mm
$dateOnlyFormat = 'd-M-Y';   // d-Mon-YYYY
$WDdateMDY = false;     // true=dates by WD are 'month/day/year'
//                     // false=dates by WD are 'day/month/year'

....while this is the code on my ajaxWDwx.php:

Code: [Select]
// METRIC
var metricUOM =
   {Temp: '&deg;C' // [ &dec;C | &dec;F ] ..........................Temp
   ,Wind: 'kph'    // [ kts | mph | kph  | m/s  ] ................. Wind
   ,Baro: 'hPa'    // [ hPa | mb  | inHg | mmHg ] ................. Baro
   ,Rain: 'mm'     // [ mm  | in  ] ............................... Rain
   ,Snow: 'cm'     // [ cm  | in  ] ............................... Snow
   ,Alti: 'm'      // [ m   | ft  ] ........................... Altitude
   ,Dist: 'km'     // [ m   | km  | miles] .................... Distance
   ,Deg : '&deg;'  // [ deg | &deg; ] ........................ Direction
   ,dateFmt: "j-M-Y" // 26-04-2009 ... same format as "date" function in php (eg. for DE use "j.M.Y", for NL use "j-M-Y)
   ,timeFmt: "H:i:s" // 15:27:01 ..... same format as "date" function in php  ( for 12h clock use "g:i:s a" )
   ,timeHM : "H:i"   // 15:27 ........ same format as "date" function in php  ( for 12h clock use "g:i a" )

Other issue: After this release the summary text near icon doens't translate anymore.
Before this version i've set like this on my language-it.txt :
Code: [Select]
langlookup|Partly cloudy -  cumulonimbus clouds observed|Parzialmente nuvoloso - Avvistati cumulonembi|

Link: http://www.meteocarmignano.it
What's wrong?
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: vossen on September 25, 2012, 01:52:36 PM
Hello and thanks again WebsterWeather for your work!

i been able now to implement your script into wordpress.
but, there is one BUT  :grin:

the translation part, it drives me mad  :shock:

in english i'm fine, but like to get it in a nother language and, there is no way.
i mean i get it somewhere, but not all are translated.

my question is.
this files are needed to change language is:

Settings.php
ajax-dashboard6.php
AltAjaxDashboardConfig6.php
language-xx.txt
language-xx.js
ajaxWDwx.js

common.php

but what ever i do, it does takes only part from here and there and i wounder,
from where the english part is coming, as i do not include the language-en.txt file.

i did read this http://saratoga-weather.org/wxtemplates/multilanguage.php (http://saratoga-weather.org/wxtemplates/multilanguage.php).

perhaps it would help me, if you could tell me, from where the english text is coming.
i can't see this in my files installed.

regards

Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on October 28, 2012, 10:25:26 AM
Just a quick note to all that use my scripts:  As of November this year, I will be shutting down my site, Webster Weather Live.  It has been a great 5+ year run for it and it was a lot of fun.  Depending on how things go, I may start up again after I get settled in my new location.  I will continue to have the files for my scripts available for download and will post the link when it changes.  Thanks to everyone that has supported me and my tries at learning PHP through these scripts!

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on October 28, 2012, 12:18:22 PM
Hi Scott,
i've seen that weather condiction text doesn't translate in italian language when condiction station override metar.
I've attached an example......
Image below you can see "Nessun Fenomeno" coming from station while "dusk" coming from what??
Is it possible to translate "dusk" word?
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on October 28, 2012, 02:04:18 PM
Hi Scott,
i've seen that weather condiction text doesn't translate in italian language when condiction station override metar.
I've attached an example......
Image below you can see "Nessun Fenomeno" coming from station while "dusk" coming from what??
Is it possible to translate "dusk" word?
Regards,

Alessandro

Dusk and Night time come from WD.  There is a check box to remove both but not sure there is any method to rename them in WD.  You could probably strip them out and translate them in the Java script as we change a few things there already like removing the "/" and "_" characters.  Will look into it for the next version if no-one else finds a way in the mean time.

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on October 28, 2012, 04:00:01 PM
you can set solar decriptions (which include dusk ), in the solar setup in WD
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Stetson1 on October 28, 2012, 05:52:47 PM
So I've upgraded to the 6.71 Alt Dashboard and have just one issue. I cannot get my wind rose to display. I checked to make sure I had the graphics and I do, it will load for a second then just text appears. Any help is appreciated.

Todd
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on October 28, 2012, 07:44:22 PM
So I've upgraded to the 6.71 Alt Dashboard and have just one issue. I cannot get my wind rose to display. I checked to make sure I had the graphics and I do, it will load for a second then just text appears. Any help is appreciated.

Todd

Todd,

The ajaxWDwx.js loads after the page loads and trys to update the page.  The image it is trying to load is a .jpg one.  You have two places to think about with the ajax updates, one is the main code (.php) and the updates from the java script.  Change them both to match the image type and it will work!

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Stetson1 on October 28, 2012, 08:29:03 PM
Thanks, did not realize the js file also had a reference (or I just didn't remember it). All is working now.

Todd
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on October 31, 2012, 05:52:57 PM
Hi scott,
i've my weather condiction text (when station overrides Metar) like this:

(http://i.imgur.com/hKGRh.png)

It should ok but i dislike the dash "/" after "Pioviggine" :(
Is it possible to delete slash?
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on October 31, 2012, 07:08:51 PM
Alessandro, I may have a solution for you, but I'm not sure.  Would you replace the fixupCondition function in the ajaxDashboard6.php with this fixupCondition?
Code: [Select]
 function fixupCondition( $inCond ) {
    global $DebugMode;

    $Cond = str_replace('_',' ',$inCond);
$Cond = strtolower($Cond);
$Cond = preg_replace('| -|','',$Cond);
$Cond = trim($Cond);
$dt = '';

$vals = array();
if(strpos($Cond,'/') !==false) {
$dt .= "<!-- vals split on slash -->\n";
$vals = explode("/",$Cond);
}
if(strpos($Cond,',') !==false) {
$dt .= "<!-- vals split on comma -->\n";
$vals = explode(",",$Cond);
}
$ocnt = count($vals);
if($ocnt < 1) {
 if (preg_match('$/',$inCond)) { preg_replace('$/','',$inCond);}
 return(langtransstr(trim($inCond))); }
foreach ($vals as $k => $v) {
 if($DebugMode) { $dt .= "<!-- v='$v' -->\n"; }
 $v = ucfirst(strtolower(trim($v)));
 $vals[$k] = langtransstr($v);
 if($DebugMode) { $dt .= "<!-- vals[$k]='".$vals[$k]."' -->\n"; }
}

if($vals[0] == '') {$junk = array_shift($vals);}
if(isset($vals[2]) and $vals[0] == $vals[2]) {$junk = array_pop($vals);}
reset($vals);
$t = join(', ',$vals);

// return($Cond . "' orig=$ocnt n=" . count($vals) ." t='$t'");
    if($DebugMode) {
      $t = "<!-- fixupCondition in='$inCond' out='$t' ocnt='$ocnt' -->" . $dt . $t;
}
if (preg_match('$/',$inCond)) {$t = preg_replace('$/','',$t);}
    return(langtransstr($t));
  
  }

Let me know if it works for you, or worse still breaks something.  It doesn't break my dashboard, so that's a start.

Edit:  Thanks to Ken True a slightly more compact version of this code is near the bottom of this thread (http://www.wxforum.net/index.php?topic=17045.0).
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 01, 2012, 01:33:12 AM
No lucky gwwilk :(
Dash remains on my weather condictions text (when condictions station overrides metar).
Regards,

Alessandro

Edit: One thing.
I've a Davis Vantage Vue without a solar sensor.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on November 01, 2012, 06:54:27 AM
If that doesn't work, Alessandro, the '/' is most likely coming from the translated string rather than the original.  Check your translation file(s)?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 01, 2012, 07:04:18 AM
If that doesn't work, Alessandro, the '/' is most likely coming from the translated string rather than the original.  Check your translation file(s)?


No gwwilk,
it's impossible because all text from station has a dash while text from metar hasn't that.  :sad:
I've attached my language file.
Thanks for your time,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on November 01, 2012, 11:46:37 AM
This looks suspicious:
langlookup|Overcast -  rain, drizzle; mist|Coperto - Pioggia / Pioviggine; Foschia|

Try a modified fixupCondition() that deletes the trailing slash after the translation.  Deleting the slash before the translation wasn't very bright on my part. ](*,)
Code: [Select]
 function fixupCondition( $inCond ) {
    global $DebugMode;

    $Cond = str_replace('_',' ',$inCond);
$Cond = strtolower($Cond);
$Cond = preg_replace('| -|','',$Cond);
$Cond = trim($Cond);
$dt = '';

$vals = array();
if(strpos($Cond,'/') !==false) {
$dt .= "<!-- vals split on slash -->\n";
$vals = explode("/",$Cond);
}
if(strpos($Cond,',') !==false) {
$dt .= "<!-- vals split on comma -->\n";
$vals = explode(",",$Cond);
}
$ocnt = count($vals);
if($ocnt < 1) {
 $inCond = (langtransstr(trim($inCond)));
 $inCond = preg_replace('|/$|','',$inCond);
 return $inCond;
}
foreach ($vals as $k => $v) {
 if($DebugMode) { $dt .= "<!-- v='$v' -->\n"; }
 $v = ucfirst(strtolower(trim($v)));
 $vals[$k] = langtransstr($v);
 if($DebugMode) { $dt .= "<!-- vals[$k]='".$vals[$k]."' -->\n"; }
}

if($vals[0] == '') {$junk = array_shift($vals);}
if(isset($vals[2]) and $vals[0] == $vals[2]) {$junk = array_pop($vals);}
reset($vals);
$t = join(', ',$vals);

// return($Cond . "' orig=$ocnt n=" . count($vals) ." t='$t'");
    if($DebugMode) {
      $t = "<!-- fixupCondition in='$inCond' out='$t' ocnt='$ocnt' -->" . $dt . $t;
}
$t = (langtransstr($t));
$t = preg_replace('|/$|','',$t);
    return $t;
  
  }

See if this new code works, Alessandro.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 02, 2012, 03:21:02 AM
Hi Jerry,
i've replaced my part of code with yours on ajax-dashboard file.
I let you know how it goes when weather condiction text from my station overrides metar.
Thanks a lot,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 04, 2012, 02:57:12 AM
Hi Jerry and Ken,
it works =D&gt; =D&gt; \:D/ \:D/
Thank you very much for your patience,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on November 04, 2012, 08:33:37 AM
Good to hear, Alessandro.  In my case sometimes even a blind hog can find an occasional acorn. :-)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 06, 2012, 03:28:56 PM
Good to hear, Alessandro.  In my case sometimes even a blind hog can find an occasional acorn. :-)


 :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:

(http://i.imgur.com/BwyDU.png)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on November 06, 2012, 03:42:18 PM
Alessandro,

The text 'Pioviggine/' is displayed only if JavaScript is enabled.  The PHP page is showing 'Nessun fenomeno'.

So, the problem is in the ajaxWDwx.js (alternative) JavaScript .. the PHP is working fine.

(It's best to try the problem page with JavaScript turned off to see if the problem exists, if it doesn't, then the area to diagnose is in JavaScript instead and not the PHP).

The alternative ajaxWDwx.js script uses
Code: [Select]
      currentcond = clientraw[49];
      // currentcond = currentcond.replace(/_/g,' ');
      // currentcond = currentcond.replace(/^\/Dry\//g,'');
      currentcond = currentcond.replace(/\\/g,', ');
      // currentcond = currentcond.replace(/\//g,', ');
      currentcond = ajax_fixupCondition(currentcond);
      currIconNr  = parseInt(clientraw[48]);
      set_ajax_obs("ajaxcurrentcond" ,currentcond);
to replace the condition text, along with
Code: [Select]
// slice and dice the clientraw[49] for possible translation of current weather
function ajax_fixupCondition( rawcond ) {
var cond  = rawcond;
    cond  = cond.replace(/_/gm,' ');     // replace any _ with blank.
    cond  = cond.replace(/[\r\n]/gm,''); // remove embedded CR and/or LF
//  cond  = cond.replace(/\//gm," &amp; ");
var conds = cond.split(". ");            // split up the arguments.
   
var tstr = '';
   for (var i=0;i<conds.length;i++) {
      var t = conds[i];
      t = t.toLowerCase();
      t = t.ucfirst();
      t = t.replace(/\s+$/,'');  // trim trailing blanks
      if(langTransLookup[t]) conds[i] = langTransLookup[t];
      else                   conds[i] = t;
   }
   if (conds[0].length == 0) { conds.splice(0,1);  } // remove blank entry
   if (conds[0] == conds[2]) { conds.splice(2,1); } // remove duplicate last entry
   return(conds.join('. '));
}; // end ajax_fixupCondition function

Best regards,
Ken
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on November 06, 2012, 06:31:26 PM
Wouldn't a possible easy solution be to change 'langlookup|Overcast -  rain, drizzle; mist|Coperto - Pioggia / Pioviggine; Foschia|' to 'langlookup|Overcast -  rain, drizzle; mist|Coperto - Pioggia, Pioviggine; Foschia|' in your translation text, Alessandro?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 07, 2012, 04:47:03 PM
Wouldn't a possible easy solution be to change 'langlookup|Overcast -  rain, drizzle; mist|Coperto - Pioggia / Pioviggine; Foschia|' to 'langlookup|Overcast -  rain, drizzle; mist|Coperto - Pioggia, Pioviggine; Foschia|' in your translation text, Alessandro?

No Jerry,
because my issue is only with "Drizzle" and not "Overcast -  rain, drizzle; mist".....this is a condiction text from metar.
When weather condiction from my station overrides metar and says "Drizzle" the italian translation is "Pioviggine/" instead of "Pioviggine" :(
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on November 11, 2012, 02:40:21 AM
Hi guys,
i've another question.
I've seen that the weather condictions text not corrisponding the rain rate  value.
Please, look the image below.
With 72mm/hr RR weather condictions text shows "Light Rain"  :?: :?: :?: (or Drizzle with 48mm/hr).
How does it possible?
Thanks in advance,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 04, 2012, 04:22:46 AM
Hi guys,
there is something wrong on my dashboard.
It seems that my condiction text "Pioviggine" remains always in Italian language and this text not changing with high rain rate.
Where does it get this text?
Is it possibile that with 13.56mm/h is drizzle (Pioviggine)?
Any help please?
Thanks in advance,

Alessandro

Edit: Issue is in this part of code....
Code: [Select]
<td align="center" style="text-align: center; border: 1px solid gray;">
 <span class="ajax" id="ajaxcurrentcond">
 <?php echo ' ' $t1?> </span><br/><br/>
                </td>

or issue is in my clientraw?
Pioviggine is coming from clientraw.txt (image below)  :?: :?:
But where does clientraw get this text?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 04, 2012, 01:01:22 PM
Hi Alessandro,

It is likely that you are running WD in Italian.  Make sure that WD, Setup, Language, Use English for Reports used for web scripts has 'Yes' selected.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 04, 2012, 01:28:59 PM
Hi Alessandro,

It is likely that you are running WD in Italian.  Make sure that WD, Setup, Language, Use English for Reports used for web scripts has 'Yes' selected.

Hi Ken  :!:
How are you? I hope fine  :grin:
So, probably i have solved my issue but i'm not sure  :roll:
First of all....my WD is already in english ;) (look image nr.1 below)
My issue is when station override metar. In this case all texts are in italian language and it gets from wd menu (look image nr.2 below) that's why i don't manage to translate that text  :!: :!:
What do you think about, should i translate all text in english newly?

Other issue...."Pioviggine" showed always despite rain rate changed values.
So, with any values of RR (50mm/h or 5mm/h) condiction text was always "Pioviggine".
This problem is caused from Summary Image icon setup of WD.
Please, look the image nr.3 below. Now i've set it like the image but yesterday i've set it like the image nr. 4.
So, which is the correct setup for these values?
Thank you so much for your help.
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 04, 2012, 02:07:12 PM
Hi Alessandro,

Yes, your cattura2.png screen (with all the Italian words) is the cause of the issue .. those should be restored to the English defaults, then the translation functions should work again for your website.

I looked through WD, and couldn't find that specific panel .. where is it in the WD menus?

Best regards,
Ken
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 04, 2012, 02:44:03 PM
he is mixing up settings screen shots from older versions of WD with newer versions of WD by the looks
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 04, 2012, 02:47:50 PM
That may explain why I can't seem to find that particular screen in my current WD.

If that setting panel still exists, where do I find it on the current WD?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 04, 2012, 03:22:49 PM
Hi Ken!

I've installed the newest version of WD not an old!!
That panel is in Units & other settings of WD.
Please look the images below ;)
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 04, 2012, 03:34:58 PM
ah , yes...the same settings are in the units setup

they match though for the summary image and icon setup

for me here
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 04, 2012, 04:43:59 PM
Hmmm... I was referring to the panel titled "Own Weather Conditions" that Alessandro showed with Italian text.

I can't seem to find how to open the "Own Weather Conditions" panel with my WD 10.37R-(b43) - there seems to be no button to push in the Weather Icon Setup TAB of the Universal Setup dialog invoked by the Units and Other Settings icon on the Control Panel.

Greatly confused...

Ken
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 04, 2012, 05:30:46 PM
Hmmm... I was referring to the panel titled "Own Weather Conditions" that Alessandro showed with Italian text.

I can't seem to find how to open the "Own Weather Conditions" panel with my WD 10.37R-(b43) - there seems to be no button to push in the Weather Icon Setup TAB of the Universal Setup dialog invoked by the Units and Other Settings icon on the Control Panel.

Greatly confused...

Ken

Ken,
have you got "Units & Other settings" menu on Wd control panel?
If yes push this button and you will see the Rainfall tab.....
what kind of value have you got on Rainfall section?
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 04, 2012, 05:33:43 PM
Ken
go to control panel
summary image and icon
then the thresolds tab

then see the button to set the names for rain threholds
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 04, 2012, 08:24:43 PM
if I added a number value that corresponded to the weather description being sent
in that setup screen
(there are 21 of them..so a number from 1 to 21, corresponding)
then those descriptions would not need to be set to english, if that number was used to set the needed description...from a look up table..in php...and that look up table has the different languages...
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 05, 2012, 01:07:54 AM
Ken
go to control panel
summary image and icon
then the thresolds tab

then see the button to set the names for rain threholds
AhHa!  Thanks Brian.. that was the key.

Alessandro, your 'words' should likely match the English ones in my setup (the default English, since I'd never adjusted any of them).

Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 05, 2012, 01:30:03 AM
Ok Ken,
but what about Rainfall setup?
If it set not correctly (like me) condiction text during rain not change with Rain Rate values.
Yesterday during rain, it show always Pioviggine (Moderate drizzle in your case) without consider Rain rate values.
How do yuo set this menu in WD?
Which are the correct values?
Mine are like the image attachment on above post.
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 05, 2012, 01:41:44 AM
you need to have the english words there instead
but I have suggested a possible work around for that (see my post above)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 05, 2012, 04:09:48 AM
you need to have the english words there instead
but I have suggested a possible work around for that (see my post above)

Hi Brian,
i've already translated all words in english language (image below) but i would know if Rainfall setup values are correct or not (image 2 below)
Because i've seen that yesterday, during rain, condiction text remains all the time on Pioviggine (Moderate drizzle) without consider rain rate values.

Is it correct now or not?
Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 05, 2012, 12:47:23 PM
the 50 minute setting is a long time
that means its going to keep saying the rain condition report for 50 minutes after the last rain guage tip
that will be the problem
default is much less than that
I use 10 minutes
Title: Re: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: ardsar on December 05, 2012, 02:17:09 PM
Hi guys,

Just trying to get this up and running. I've got an issue where some records on the dashboard are incorrect I.e. some are in 2014 however the records page are showing the correct values.

The other problem has already been discussed but I did not find an answer. I have a soil temp probe but no moisture sensor and the dash board indicates frozen ground.

www.bearsbythesea.co.uk

Thanks

Andy.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 05, 2012, 03:49:57 PM
the 50 minute setting is a long time
that means its going to keep saying the rain condition report for 50 minutes after the last rain guage tip
that will be the problem
default is much less than that
I use 10 minutes

Thanks Brian,
please, could you tell me what values have you got on the other two settings?

Minutes to check back for recent rain/its stopped rain?
Thanks in advance,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 05, 2012, 03:52:37 PM
recent rain in 5 minutes
(that is default)
stopped raining I have set as 60 minutes
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 05, 2012, 04:24:35 PM
recent rain in 5 minutes
(that is default)
stopped raining I have set as 60 minutes


Thanks Brian ;)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on December 06, 2012, 02:26:35 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: gwwilk on December 06, 2012, 02:56:22 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.

This is great news, Scott.  Does that mean that WWL-mobile.php will become BWL-mobile.php? :-)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Chris_K on December 06, 2012, 03:01:06 PM
Great to hear Scott....Welcome back !!!!!!!!!!!!!!!!
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: saratogaWX on December 06, 2012, 04:31:01 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.
Awesome! Great to have you back.

Best regards,
Ken
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on December 06, 2012, 05:06:22 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.

This is great news, Scott.  Does that mean that WWL-mobile.php will become BWL-mobile.php? :-)

Probably!

Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Silversword on December 06, 2012, 05:09:18 PM
Yes, welcome back Scott in your new digs.  Finally got my ajax V3 up and running as this version of dashboard now on line. Now to play around with Win 8 on my new computer.  Another steep learning curve to conquer.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jgillett on December 06, 2012, 05:11:09 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.

Great news, Scott! Hopefully this also means the medical problem is at least better, and will continue to progress in that direction.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: CNYWeather on December 06, 2012, 07:09:16 PM
Just an FYI, my new location will be coming back online in the next few weeks, my new web address will be www.BurnsvilleWeatherLive.com.  All the scripts and other stuff I've created will be available there by the end of the year hopefully.

Scott
Formally Webster Weather Live.

Great news Scott!! Glad you're coming back.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on December 10, 2012, 11:01:09 AM
UPDATE:  Webster Weather Live is now called Burnsville Weather Live.  All current, past and new script updates will be hosted at the new site.  See message 1 for link!   Thanks!

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 10, 2012, 11:29:00 AM
Hi Scott and others support team :)
great news about your come back  ;)

I still having an issue about a slash after my all condictions text (please see image below).
I've give an eye to all Wd menu but without any success.
I haven't any solar sensor and i'm really don't know how to fix this problem.
I'm editing my language-it.txt to add a slash after all condictions text but it's not the solution!
Any more help please  :oops: :oops:

Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 10, 2012, 12:24:48 PM
so does that / show in the clientraw.txt file ?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: i_fiorentino on December 10, 2012, 02:54:32 PM
so does that / show in the clientraw.txt file ?

No Brian,
because slash "/" shows only when weather condictions from station overrides weather condictions from metar. If it shows only weather condiction from metar all it's ok.
When station overrides metar slash "/" shows after all condictions text.
Here is my clientraw file: http://www.meteocarmignano.it/clientraw.txt

Regards,

Alessandro
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 10, 2012, 06:22:49 PM
Scott I've loaded the dashboard and I am using wide mode and I have alot of empty space on the right. Can this be modified so it can be centered? Click on my sig to go to my site.

Thanks
Ryan
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 10, 2012, 07:29:39 PM
I think I got it!

http://hayskansasweather.com/
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Jeff on December 10, 2012, 10:30:27 PM
Looking good Ryan!

J
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 10, 2012, 11:53:11 PM
Looking good Ryan!

J

Hey Thanks Jeff! I'm having a hard time with some things though.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 11, 2012, 02:13:51 AM
How would I get my monthly average rain to display? I have a few areas with no data and if someone would be willing to lend a hand I'd appreciate it.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 11, 2012, 01:00:09 PM
What am I missing to get the average rain and average snow for December? I can't get the moon to display either?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 11, 2012, 03:39:33 PM
Dashboard is stuck on Overcast and Gloomy and its been crystal clear all day? What setting controls that?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 11, 2012, 04:04:22 PM
and so what is WD itself reporting for current conditions/icon
and what is your solar % calculation in WD , etc
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on December 11, 2012, 04:06:41 PM
and so what is WD itself reporting for current conditions/icon
and what is your solar % calculation in WD , etc

Thanks for responding Brian but I removed that dashboard and put my old one back on for now until I have time to work on it.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jahuff on December 19, 2012, 09:26:00 PM
Hi,

I seem to be having a problem with the "December Avg" snow it should be 42 and it is showing 79.30. Is anyone else seeing this problem? Any suggestions on how to correct.

Thanks,

John
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 19, 2012, 09:43:32 PM
and so that is the info that WD is providing?
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jahuff on December 19, 2012, 09:52:25 PM
Hi Brian,

I am trying to track that down now. The data http://www.johnsnhweather.com/wxsnowsummary.php?r=wxsnowsummary.php shows avg. of 42 but the desktop is showing 79.30. It looks like the desktop is doing some calculation. I am trying to figure it out. I think WD is correct.

Thanks,

John

These are the calculations I have found so far
Code: [Select]
// Snow setup
if($snowtoday == '---' or $snowtoday == '') {$snowtoday = '0';}
if($burntime == '---' or $burntime == '') {$burntime = 'N/A';}
if($avgmonthrain1 == ''){
$avgmonthrain1 = ${'avrain'.strtolower(strftime("%b"))};
$avgmonthsnow1 = ${'avsnow'.strtolower(strftime("%b"))};
$avgmonthtemp1 = ${'avtemp'.strtolower(strftime("%b"))};
}
if (preg_match('|in|i',$uomRain)) { // use USA measurements
  $snowseason = $snowseasonin; // Snow for season you have entered under input daily weather, inches
  $snowmonth = $snowmonthin; // Snow for month you have entered under input daily weather, inches
  $snowtoday = $snowtodayin; // Snow for today you have entered under input daily weather, inches
  $snowyesterday = $snowyesterday; // Yesterdays' snow
  $snownow = $snownowin; // Current snow depth, inches.
  $apparentsolartemp = $apparentsolartempf;    // Apparent Solar
  //$avgmonthsnow1 = ($avgmonthsnow1 * .3937);  //Removed for version 3 of the ajax script from Ken True (Thanks Tim for the find)
} elseif (isset($snowseasoncm)) { // use Metric measurements
  $snowseason = $snowseasoncm; // Snow for season you have entered under input daily weather, cm
  $snowmonth = $snowmonthcm; // Snow for month you have entered under input daily weather, cm
  $snowtoday = $snowtodaycm; // Snow for today you have entered under input daily weather, cm
  $snowyesterday = $snowyesterday; // Yesterdays' snow
  $snownow = $snownowcm; // Current snow depth, cm.
  $apparentsolartemp = $apparentsolartempc;    // Apparent Solar
}
if ((preg_match('|in|i',$uomRain) and strip_units($wetbulb) > 32)
        or (preg_match('|[A-Za-z]m|i',$uomRain) and strip_units($wetbulb) > 0)) { //Check to see if snow is possible
        $freezing = false;
        } else {
        $freezing = true;
}
//$displaySNOW = true;
//if (!$useSNOW) { $freezing = false; } // if useSNOW is set to false, then never allow any snow related items to turn on.
$rndiff = $monthrn - $avgmonthrain1; // calculate difference in rain vs avg
$sndiff = $snowmonthin - $avgmonthsnow1; //calculate difference in snow vs avg
$decimalComma = (strpos($temperature,',') !==false)?true:false; // using comma for decimal point?
//Setup up Lightning Over-ride
if (($useLIGT) and ($lighteningcountlast5minutes > $minLcnt)) $S3C2 = $S3C2 + 6; // Lightning count in last 5 minutes indicates Lightning present
if (($useSNOW) and ($snownow > 0)) $S3C2 = $S3C2 + 5;  //Snow is on the ground
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: ed2kayak on December 19, 2012, 09:58:52 PM
If you view your testtags:

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

You can see this: $avsnowdec = '79.3'; //Average snow for dec from your inputted snow data (cm)

This is generated by WD

Sorry, my error not WD tag

Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: ed2kayak on December 19, 2012, 10:26:57 PM
Jeff,

Sorry, I posted too quickly and contradicted myself.  :-(

I just looked at the latest testtags and I believe it is a WD function.

Brian could answer for sure.

Tag in question (I believe) is:  %avsnowdec%.................Average snow for dec from your inputted snow data (cm)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jahuff on December 20, 2012, 09:32:44 AM
Hi Jeff,

I am still looking into this. Thanks for your input.

John
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Weather Display on December 20, 2012, 12:08:26 PM
so WD is providing the correct info?
maybe its a conversion of units problem in the script?
 //$avgmonthsnow1 = ($avgmonthsnow1 * .3937);  //Removed for version 3 of the ajax script from Ken True (Thanks Tim for the find)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jahuff on December 20, 2012, 03:59:20 PM
Hi Brian,

I uncommented that line of code and it now shows 31.85, if you look at this report http://www.johnsnhweather.com/wxsnowsummary.php?r=wxsnowsummary.php it shows 42.1. I'm not sure whats going on.

Thanks,

John
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 08, 2013, 09:57:08 PM
I am trying to set up my station.   I have most working except for a few items that I can't figure out.  I am not sure why my solar summary is not showing anything.  Here are my settings:

// Settings for LAST ROW - COLUMN TWO     (***ONLY ONE OF THE FOLLOWING SHOULD BE TRUE!!!!)
$useET     = false;            // Set to true if you want ET to show *AND* you have solar!!!
                              // (ET Does NOT calculate if you don't have solar!!)
$useBCH    = true;           // Set to true if you don't want ET or don't have solar and can't show ET.
                              // It will put in a blank colum heading and a blank column.
$useDNT    = false;           // Set to true if you don't want ET or don't have solar and can't show ET.
                              // But want to use the DONATION option for the column instead
                              // NOTE if all three are false, nothing will display and your headings will be messed up.
                              // If more then one are ture, you will have one messed up display!
$useSNOW2  = false;           // set to false to never show snow here section (if true, $useDONATE below must be false or the display will be screwed up!)
                              // NORMALLY not ever true as SNOW is in row 3 Column 2 normally


//  NOTE if both FWI and CBI are false, nothing will display.  If both are ture, you will have one messed up display!

$haveUV        = false;        // set to false if no UV sensor
$haveSolar     = true;        // set to false if no Solar sensor
$useSISwitch   = false;         // set to false if no SI switching is desired
$useWM2SI      = true;

I can not get the snow/lightning/tide to work.

$useLIGT   = true;            // set to true to show lightning counts when there is no snow on the ground.
                              // (if true, Lightning will over-ride TIDE display if more then $minLcnt (set below) is reached in 5 mins)
$useSNOW   = false;            // Normally always TRUE unless you want TIDE to Display. SNOW & TIDE CANNOT BE BOTH TRUE!!!
                              // Snow will over-ride the lightning section if you have snow on the ground.
$useTIDE   = true;           // Set to True to display TIDE information.
                              // Lightning will over-ride Tide.  SNOW & TIDE CANNOT BE BOTH TRUE!!!
$S3C2      = '5';

Finally the wind rose is not showing.  I am not sure of gif file needed or the directory where it should go.

Thanks for the help and a great template.

Tom
www.weather.kq5s.com
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: cospringswx on January 08, 2013, 10:41:50 PM
The wind rose goes in the ajax images folder. I see you have yours name as a jpeg. Mine is a gif. You can change whether you want to use jpeg or gif in ajaxdashboard depending on what they are named in the ajax images folder .

// optional settings for the Wind Rose graphic in ajaxwindiconwr as wrName . winddir . wrType
$wrName   = 'wr-';       // first part of the graphic filename (followed by winddir to complete it)
$wrType   = '.gif';      // extension of the graphic filename

Hope this helps!
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 09, 2013, 06:51:53 PM
I have the settings for the wind rose set up like mentioned.  Still no luck.  Also can not get the solar to display to work.

Tom
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 09, 2013, 09:08:37 PM
I found the problem with the wind rose but still not luck on solar.

Tom
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: Chris_K on January 10, 2013, 05:23:29 AM
Shouldn't "UseET" be set to true??(at the top) since you have solar??? and set the rest in that paragraph to "false"..  The snow details will display in a separate column.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 10, 2013, 09:02:58 AM
Thanks for the suggestion. I have USEet set to true. I have tried different iterations of the settings and still no luck.

Tom 
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on January 11, 2013, 08:24:48 PM
You are using a very old version of testtags.txt (version 1.06 and the current is 1.08).  Look in the archive for the dashboard program and you will find many more files that you need to place in the right spots and add to the end of testtags.txt.  There is also a document in the archive that explains most of the settings and a read.me file that will also explain some things.

Scott


I am trying to set up my station.   I have most working except for a few items that I can't figure out.  I am not sure why my solar summary is not showing anything.  Here are my settings:

// Settings for LAST ROW - COLUMN TWO     (***ONLY ONE OF THE FOLLOWING SHOULD BE TRUE!!!!)
$useET     = false;            // Set to true if you want ET to show *AND* you have solar!!!
                              // (ET Does NOT calculate if you don't have solar!!)
$useBCH    = true;           // Set to true if you don't want ET or don't have solar and can't show ET.
                              // It will put in a blank colum heading and a blank column.
$useDNT    = false;           // Set to true if you don't want ET or don't have solar and can't show ET.
                              // But want to use the DONATION option for the column instead
                              // NOTE if all three are false, nothing will display and your headings will be messed up.
                              // If more then one are ture, you will have one messed up display!
$useSNOW2  = false;           // set to false to never show snow here section (if true, $useDONATE below must be false or the display will be screwed up!)
                              // NORMALLY not ever true as SNOW is in row 3 Column 2 normally


//  NOTE if both FWI and CBI are false, nothing will display.  If both are ture, you will have one messed up display!

$haveUV        = false;        // set to false if no UV sensor
$haveSolar     = true;        // set to false if no Solar sensor
$useSISwitch   = false;         // set to false if no SI switching is desired
$useWM2SI      = true;

I can not get the snow/lightning/tide to work.

$useLIGT   = true;            // set to true to show lightning counts when there is no snow on the ground.
                              // (if true, Lightning will over-ride TIDE display if more then $minLcnt (set below) is reached in 5 mins)
$useSNOW   = false;            // Normally always TRUE unless you want TIDE to Display. SNOW & TIDE CANNOT BE BOTH TRUE!!!
                              // Snow will over-ride the lightning section if you have snow on the ground.
$useTIDE   = true;           // Set to True to display TIDE information.
                              // Lightning will over-ride Tide.  SNOW & TIDE CANNOT BE BOTH TRUE!!!
$S3C2      = '5';

Finally the wind rose is not showing.  I am not sure of gif file needed or the directory where it should go.

Thanks for the help and a great template.

Tom
www.weather.kq5s.com

Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 12, 2013, 06:09:51 PM
Thanks.  I thought I had copied the newer tags.  Things are working much better.

Could someone tell me why my Station All Time Records is showing a low of 25.9 which is correct but the date is 1 May 2013.  The heat high is showing 1 Dec 2013 as well.   Maybe I am predicting the future but I hope it isn't 25 degrees in May in South Carolina.  It was 79 degrees today.

Tom
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on January 13, 2013, 05:14:39 PM
Thanks.  I thought I had copied the newer tags.  Things are working much better.

Could someone tell me why my Station All Time Records is showing a low of 25.9 which is correct but the date is 1 May 2013.  The heat high is showing 1 Dec 2013 as well.   Maybe I am predicting the future but I hope it isn't 25 degrees in May in South Carolina.  It was 79 degrees today.

Tom

Check the date format in both the config file for the dashboard and in settings.php.  Make sure the both are the same.  WD formats those fields differently and it requires a translation and that is based on the formats you choose in the settings. 

Scott
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: nineback on January 13, 2013, 06:21:50 PM
Scott,
Thanks.  I had this set wrong:

$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year

I had it set to false because I had WD set to d/m/y.

I changed WD back to m/d/y just to be safe.

Now the dates are correct but the updated times are now 01/13/2013 instead of 13 January 2013 like it was before.  The station all time records HIGHS and LOWS are showing m/d/y now also but the daytime and night time are showing d/m/y which is what I want.

I have looked at the code but it was not obvious to me what is wrong.

Again thanks for your help.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on January 15, 2013, 09:03:46 PM


The station all time records are stored in a different format and I've not written a function that works well for all the multitudes of formats that people want the dates in.  The update time/date I got frustrated and hard coded it to the format I wanted, you can change the format in the code there too, the date format command is pretty easy to change.  In the beta version it's controlable again but till thats ready you may have to change it in the code.  Sorry.

Scott


Scott,
Thanks.  I had this set wrong:

$SITE['WDdateMDY'] = true; // for WD date format of month/day/year.  =false for day/month/year

I had it set to false because I had WD set to d/m/y.

I changed WD back to m/d/y just to be safe.

Now the dates are correct but the updated times are now 01/13/2013 instead of 13 January 2013 like it was before.  The station all time records HIGHS and LOWS are showing m/d/y now also but the daytime and night time are showing d/m/y which is what I want.

I have looked at the code but it was not obvious to me what is wrong.

Again thanks for your help.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jonnyj771 on January 25, 2013, 02:14:37 AM
I have had the same problem as on 6.0...the images are set as gifs for the wr- icons. for some reason, upon inspecting element via chrome (have had the same problem with FF also), the element is looking for a .jpg file vs. a .gif.
I have set the config file to show .gif vs. .jpg prior to uploading. still no change.
I have also looked elsewhere in my files, can't seem to find the problem. Any Ideas?
lightningweather.com (http://lightningweather.com)
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: BurnsvilleWeather on January 25, 2013, 08:48:27 PM
I have had the same problem as on 6.0...the images are set as gifs for the wr- icons. for some reason, upon inspecting element via chrome (have had the same problem with FF also), the element is looking for a .jpg file vs. a .gif.
I have set the config file to show .gif vs. .jpg prior to uploading. still no change.
I have also looked elsewhere in my files, can't seem to find the problem. Any Ideas?
lightningweather.com (http://lightningweather.com)

The script viewer is reading the code from the .PHP file which is uised to display the image when you first load the site.  Once the site is loaded, the java script takes over and loads the image.  You have the type of file set wrong either in the java script or the main file.  They BOTH must be set correctly for it to load right.  My guess is, your ajaxWDwx.js has it set wrong. 

Scott
Title: Re: Re: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: jonnyj771 on January 27, 2013, 09:19:40 PM


The script viewer is reading the code from the .PHP file which is uised to display the image when you first load the site.  Once the site is loaded, the java script takes over and loads the image.  You have the type of file set wrong either in the java script or the main file.  They BOTH must be set correctly for it to load right.  My guess is, your ajaxWDwx.js has it set wrong. 

Scott
[/quote]

I will take a look at the java script.
Title: Re: Alternative Dashboard Version 6.71 NOW RELEASED
Post by: mickopla on January 29, 2013, 05:40:15 PM
My rain days for this year are 32 and this month 29. I checked the testtags.php and it also has those numbers. My actual rain days in Weather Display are 22. I'm wondering how i correct this error? I remember from researching this previously there is a line that can be added to one of the settings files to increase or decrease rain days but i can't recall where i saw it. Any help would be appreciated

Mike
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: Bunty on February 18, 2013, 01:15:47 PM
Hi,

1. I chose to have the heat index and wind chill display instead of the feels like temperature. However the feels like temperature continues to display.

$useFL     = false;            // Set to false if you do not want to show the "Feels Like" colored word under the Temperature
$useHC     = true;           // Set to true if you want to show Heat Index and Wind Chill here instead



Any suggestions?

Thanks.

Bob


I now have the above same problem at http://stillwaterweater.com/wx/2ndhome.php (http://stillwaterweather.com/wx/2ndhome.php)
Title: Re: Alternative Dashboard Version 6.70 NOW RELEASED
Post by: BurnsvilleWeather on February 19, 2013, 08:34:48 PM
Nothing should have changed in version 6.7x.  I'll take a look and see if I can see any reason.

Scott


Hi,

1. I chose to have the heat index and wind chill display instead of the feels like temperature. However the feels like temperature continues to display.

$useFL     = false;            // Set to false if you do not want to show the "Feels Like" colored word under the Temperature
$useHC     = true;           // Set to true if you want to show Heat Index and Wind Chill here instead



Any suggestions?

Thanks.

Bob


I now have the above same problem at http://stillwaterweater.com/wx/2ndhome.php (http://stillwaterweather.com/wx/2ndhome.php)