WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: BurnsvilleWeather on December 03, 2010, 10:28:08 PM

Title: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on December 03, 2010, 10:28:08 PM
UPDATE:  Webster Weather Live is now called Burnsville Weather Live.  All current, past and new script updates will be hosted at the new site.

Alternative Dashboard version 6.21 is now available (Added Feature and Maintenance update to V6.10)!  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 cersion 5.xx running to use this or be pretty patient with making a lot of changes!

Whats New in 6.02?
Fixed bug in double degree symbol in last row.  Not a perfect fix but will look better.  No other fixes in version 6.02!
Whats New in 6.03?
Fixed bug in Moon Phase that caused it to show 1% all the time.  You need to update both ajax-dashboard6.php and ajaxWDwx.js if updating from version 6.0x
Whats New in 6.04?
Minor update to fix double degree in min dew point for the day, date format for some users on the station High/Low trend on the last row and added the ability to set Lightning and Snow on Row 3 to false and it will display "Coming Soon" and leave that section blank.
Whats New in 6.05?
Fixed yet another bug in the Moon Phase script thanks to Ken's new update for finding the moon phases (Ken True, Saratoga-weather.org (http://Saratoga-weather.org)).  You will need to only update your ajax-dashboard6.php and ajaxWDwx.js files if upgrading from version 6.03 or 6.04.
Whats New in 6.06?
Have modifed the ajaxWDwx.js to be up-to-date with Rainer's 9.13 release but with my additions for version 6.  The new file is now known as 3.03, a bit confusing but... (Rainer, www.bashewa.com (http://www.bashewa.com))
Whats New in 6.07?
Fixed AQI no image if no reading found issue.  Fixed crazy intermittant issue where rain icon would show when below freezing and New Record High/Low would show when no record is reached thanks to all who helped find that one with me! Also fixed UV color word in the ajaxWDwx.js file again.  Updating from version 6.05 or later just needs ajax-dashboard6.php and ajaxWDwx.js (now known as Version 3.04) replaced.
Whats New in 6.08?
Fixed the php with the split() command being depreciated.  Changed the rain/snow icon to follow the wetbulb temp rather then just the set freezing value from the config file.  Changed how dates were formatted to what should be a more successful method for all date formats now. Fix issue with sun colum not formatting right if it is wider then originally created for.  Many other minor changes.  If updating from version 6.07 you just need to update the ajax-dashboard6.php file.
Whats New in 6.09?
Fixed an error introduced in Version 6.08 that may cause a preg_match function error.  If updating from 6.08 just replace the ajax-dashboard6.php file. This also effects the mobile dashboard version 1.00 and a release of version 1.02 of that has also been released.
Whats New in 6.10?
Added a fix for the UV Forecast that changes it to three icons rather then the words so it will no longer push the column too wide on the bigger words.  Also a minor addition to help with language translation.
Whats New in 6.20?
Added Solar Index Icons for the solar readings (Icons Included).  Several fixes to language support and added language support to several items missed in previous releases (UV and forecasts, etc).  Fixed issue with UV forcast at night being off a day (Thanks Jerry) and several other minor maintenance fixes.  If upgrading from version 6.10 you will need to add images, replace ajax-dashboard6.php and there is a new config file too.  Please make sure you back a backup copy of your old files before updating!
Whats New in 6.21?
Modifications for UV so values over 11 show correctly now.  Updates to Solar.


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

New Features:

New Temperature section with Large Temp, high/low and Station Records
New Current Conditions Section with Large views of Wind, Rain/snow and Current Conditions
Quick View Forecast at the top with Fire Danger under the forecast
Expanded Liquid Precipitation section with auto breakout of storm readings when raining
3rd row center can be either Lightning or Snow.  Snow can be set to auto change based on settings
4th row now shows Almanac always
4th row Irrigation Index can optionally become Snow
many other added readings and layout changes

27-JUN-11 - Download Version 6.21 HERE:
www.burnsvilleweatherlive.com/wxScripts.php (http://www.burnsvilleweatherlive.com/wxScripts.php)

Title: Re: Alternative-Dashboard Version 6.02
Post by: vossen on December 04, 2010, 10:54:38 PM
thank you very much WebsterWeather!
i still run version 6.1 and i changed the look a little bit.
as i always loved this thermometer in a dashboard.
http://weer-mauritius.info-mauritius.com/ (http://weer-mauritius.info-mauritius.com/)


i only see some translation problems, but i really like your dashboard.
thanks again
regards
stefan
p.s. i till work on the website, it's not final.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 05, 2010, 09:25:42 AM
thank you very much WebsterWeather!
i still run version 6.1 and i changed the look a little bit.
as i always loved this thermometer in a dashboard.
http://weer-mauritius.info-mauritius.com/ (http://weer-mauritius.info-mauritius.com/)

Hey Stefan

Your page looks great!  Just a suggestion... if you make the text smaller in the forecast section at the bottom it won't push that section of the grid out so far.  But it make make it a bit harder to read.  Also, version 6.02 fixes the double degree symbols in the temp history section on the bottom row.

Looking very good though!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: jahuff on December 05, 2010, 01:34:44 PM
Hi Scott,

I seem to be having an issue with snow depth at www.johnsnhweather.com

The correct snow depth is 5.5 in.

Do I have something setup wrong?

Thanks,

John

Scott I fixed my own problem I had entered 5..50 in WD.

Thanks for the great script.

John
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 05, 2010, 02:43:26 PM
Hi Scott,

I seem to be having an issue with snow depth at www.johnsnhweather.com

The correct snow depth is 5.5 in.

Do I have something setup wrong?

Thanks,

John

Scott I fixed my own problem I had entered 5..50 in WD.

Thanks for the great script.

John

Glad it's working for you!  I've done that myself!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BfdWx on December 05, 2010, 05:19:49 PM
Hi Scott,

Searched out your fix for the double degree as I have a few customizations that get messed up if I upload updates without going through them all!! Great work on this, thanks for sharing!

Regards,

Jack
Title: Re: Alternative-Dashboard Version 6.02
Post by: vossen on December 06, 2010, 01:13:32 AM
Hey Stefan

Your page looks great!  Just a suggestion... if you make the text smaller in the forecast section at the bottom it won't push that section of the grid out so far.  But it make make it a bit harder to read.  Also, version 6.02 fixes the double degree symbols in the temp history section on the bottom row.

Looking very good though!

Scott


Scott thanks,
as i like to translate the webpage in more language later, i will see what text size is the best, to small is not good to.

as by Jack, could you tell us, what have been changed to remove the double degree symbols.

and last question, do the 6.02 version works with the tag, how many sun hours per day?

best regards
stefan



Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 06, 2010, 07:47:29 AM
Hi Scott,

Searched out your fix for the double degree as I have a few customizations that get messed up if I upload updates without going through them all!! Great work on this, thanks for sharing!

Regards,

Jack

In the fix_record function:


//     return Array($rtemp,$rdate);
     return "$rtemp$Dunit<br />$rdate";

The return line is what has changed to $Dunit from UoM
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 06, 2010, 07:50:04 AM
Scott thanks,
as i like to translate the webpage in more language later, i will see what text size is the best, to small is not good to.as by Jack, could you tell us, what have been changed to remove the double degree symbols.
and last question, do the 6.02 version works with the tag, how many sun hours per day?

The sun hours per day is part of the code, it should display after the sun goes down as sun for the day.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 06, 2010, 11:52:18 PM
Hi All,

Greetings from a very cold UK ...

I know that 602 is based on the US template - but does anyone have it running in the UK ?

I use the original here :- www.dugglenet.org (http://www.dugglenet.org) and have a 25% working version of 602 here :- www.dugglenet.org/ajax6.php (http://www.dugglenet.org/ajax6.php)

Some if it's working, but most of the images from /images and /ajax-images aren't loading. The script is looking in the root for the folders - but I'm certain I changed them to the correct locations in the scripts.

Any help would be much appreciated as I'd love to use this brilliant enhancement to the script on my site.

Many Thanks, Simon.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 07, 2010, 07:44:06 AM
Hi All,

Greetings from a very cold UK ...

I know that 602 is based on the US template - but does anyone have it running in the UK ?

I use the original here :- www.dugglenet.org (http://www.dugglenet.org) and have a 25% working version of 602 here :- www.dugglenet.org/ajax6.php (http://www.dugglenet.org/ajax6.php)

Some if it's working, but most of the images from /images and /ajax-images aren't loading. The script is looking in the root for the folders - but I'm certain I changed them to the correct locations in the scripts.

Any help would be much appreciated as I'd love to use this brilliant enhancement to the script on my site.

Many Thanks, Simon.


Simon,

It looks like the images are mostly all there, but you apprear to be missing a lot of the new testtags.  Also the formatting of the script is for fixed width sites so it might be a bit off on stretching width sites.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 07, 2010, 07:52:07 AM
Hi Scott,

Yes, I agree about the stretched sides, it's just because I made a mostly unformatted page in order to get it working correctly before attempting to put it into my 'real' pages.

I've definately added the new testtags so I don't know what's gone wrong there. Also, the Almanac works on my main frontpage which uses the un-modded ajax dashboard - so I have no idea why it's not getting populated with data - as they share the same files ...

Regards, Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 07, 2010, 07:59:10 PM
Hi Scott,

Yes, I agree about the stretched sides, it's just because I made a mostly unformatted page in order to get it working correctly before attempting to put it into my 'real' pages.

I've definately added the new testtags so I don't know what's gone wrong there. Also, the Almanac works on my main frontpage which uses the un-modded ajax dashboard - so I have no idea why it's not getting populated with data - as they share the same files ...

Regards, Simon


Are you using two separate config files?  The version 6 one is different then version 5's
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 08, 2010, 02:29:07 AM
Erm, perhaps not ... I'm using the files which came in the archive - I didn't see a separate config file in there ?

Probably just me being dumb - can you send me an example please ?

Many Thanks, Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 08, 2010, 05:28:14 AM
Hi Scott,

I've made a new page (in order to get the layout right) and I'm close to getting it working I think .... but there are definately missing tags ...

http://www.dugglenet.org/ajaxtest.php (http://www.dugglenet.org/ajaxtest.php)

My testtags is attached. I'm guessing it's something very obvious ;-)

Any help much appreciated !

Kind Regards, Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 08, 2010, 06:50:01 PM
Hi Scott,

I've made a new page (in order to get the layout right) and I'm close to getting it working I think .... but there are definately missing tags ...

http://www.dugglenet.org/ajaxtest.php (http://www.dugglenet.org/ajaxtest.php)

My testtags is attached. I'm guessing it's something very obvious ;-)

Any help much appreciated !

Kind Regards, Simon

Simon,


When I look at the testtags.php, it ends in mid file here:

// 
// 
$cloudheightfeet =  '1037';   // Estimated cl

Please send me your testtags.txt or look for a problem at that point in the file.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 08, 2010, 06:51:51 PM
Erm, perhaps not ... I'm using the files which came in the archive - I didn't see a separate config file in there ?

Probably just me being dumb - can you send me an example please ?

Many Thanks, Simon

Re-download the archive file for the full set of change but here is the version 6 config (rename back to .php).

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 09, 2010, 04:20:13 AM
Hi,

Testags.txt and it's output Testtags.php.txt both attached.

The missing information eg. the almanac definately works in my original dashboard - therefore the testtags info and clientraw etc would seem to be okay.

I'm completely stumped by this one ...

Regards, Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 09, 2010, 06:21:45 AM
Scott,

I just had a thought, can you send me your testtags.php - I'll put it on the server and see if the dashboard gets populated - that way we'll know if it's testtags or something else which is wrong.

I also wondered if the US date/time format might be the problem ... a lot of the missing parameters are time related.

...Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 09, 2010, 07:47:40 AM
Hi,

Testags.txt and it's output Testtags.php.txt both attached.

The missing information eg. the almanac definately works in my original dashboard - therefore the testtags info and clientraw etc would seem to be okay.

I'm completely stumped by this one ...

Regards, Simon

Simon,

I can tell you for sure you don't have the added version 5 or 6 tags in the test tags file.  There is a text file with them in it in the download file.  I'll look more when I get home from work but unless you merged them in higher in the file, it's missing at least that.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Bub on December 09, 2010, 08:16:10 AM
They're higher up after General OR Non Weather Specific/SUN/MOON.

I've been looking through the script for both the original dashboard and v6 and (using the almanac as an example) the code appears to be the same so it's very odd that one works and the other doesnt ...

Thank you for your continued help !

Simon
Title: Re: Alternative-Dashboard Version 6.02
Post by: vossen on December 13, 2010, 08:03:30 AM

In the fix_record function:


//     return Array($rtemp,$rdate);
     return "$rtemp$Dunit<br />$rdate";

The return line is what has changed to $Dunit from UoM
thank you very much WebsterWeather, that did the job :)

i would have 3 more questions  :oops:

!) Lightning Strikes or Snow, i have no senor for snow or lightning, how i could remove it or add something else in it?

2) i get by Station All Time Records strange year (1970) http://www.weer-mauritius.info-mauritius.com/ (http://www.weer-mauritius.info-mauritius.com/) why this?

3) there is a tag searchouttext (!? not on hand right now, but i will look for it later), how i could add this one?
best regards
stefan

Title: Re: Alternative-Dashboard Version 6.02
Post by: dw1373 on December 13, 2010, 03:06:50 PM
Hi Scott,

I'm trying to implement the new version to my site. I'm running into an issue that I can't seem to wrap my hands on.

The error I am getting is "Fatal error: Call to undefined function langtransstr() in /home2/gigharb1/public_html/ajax-dashboard6.php on line 329"

I'm setting this up on a test page to work the bugs out before I move it to production. You can find it on http://www.gigharborweather.com/wxindex2.php

I think I'm getting tunnel vision.  ](*,)

Thanks
Title: Re: Alternative-Dashboard Version 6.02
Post by: BfdWx on December 13, 2010, 05:28:58 PM
 dw1373

Try putting this in the function area of the ajaxdashboard6 file.

Code: [Select]
function langtransstr($word) {
   return $word;
}

function langtrans($word) {
   echo $word;
}

Jack
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 13, 2010, 06:46:20 PM
dw1373

Try putting this in the function area of the ajaxdashboard6 file.

Code: [Select]
function langtransstr($word) {
   return $word;
}

function langtrans($word) {
   echo $word;
}

Jack


It's already in the script, you just need to uncomment it.
  (it's at the very end of the script)
Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 13, 2010, 08:05:10 PM
thank you very much WebsterWeather, that did the job :)

i would have 3 more questions  :oops:

!) Lightning Strikes or Snow, i have no senor for snow or lightning, how i could remove it or add something else in it?

2) i get by Station All Time Records strange year (1970) http://www.weer-mauritius.info-mauritius.com/ (http://www.weer-mauritius.info-mauritius.com/) why this?

3) there is a tag searchouttext (!? not on hand right now, but i will look for it later), how i could add this one?
best regards
stefan

1. Snow is a manual measurement for most all people but in any event, there is currently no option for that spot other then those two.  If anyone comes up with an idea, I'd be happy to add it.

2.  Not sure what you are seeing here.  Can you do a screen capture of exactly what you mean?

3.  Not sure what you mean here either.  I'm not using any searchouttext in this version of the script.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: dw1373 on December 13, 2010, 10:32:11 PM
Thanks Scott!

That worked and still tweaking (never ending). I noticed that under the Liquid Precipitation field, the Today: rain field is not updating yet on my live main page we have received 0.29in of rain today. Is this another setting I looked over or is this page using a different testtag I missed.

http://www.gigharborweather.com/wxindex2.php (http://www.gigharborweather.com/wxindex2.php)

Brian
Title: Re: Alternative-Dashboard Version 6.02
Post by: dw1373 on December 13, 2010, 10:52:15 PM
Scott,

Disregard the previous post I made. I figured it out and realized that I forgot to update the ajaxWDwx.js file to the server.  :oops:

Now I need to figure out how to get the AQI piece working. Great work btw.

Brian
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 14, 2010, 07:45:41 AM
Scott,

Disregard the previous post I made. I figured it out and realized that I forgot to update the ajaxWDwx.js file to the server.  :oops:

Now I need to figure out how to get the AQI piece working. Great work btw.

Good to hear you got it going!  The AQI part in version 6 is much easier now that it's RSS!  You should have no trouble!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 12:28:00 PM
Ok, I tried it. I like it. Thanks Scott
Will have to clean it up a bit.

http://cvweather.org/index.php
Where do the images go. I have images in my root, ajax-images directory and image directory?
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 14, 2010, 07:36:47 PM
Ok, I tried it. I like it. Thanks Scott
Will have to clean it up a bit.

http://cvweather.org/index.php
Where do the images go. I have images in my root, ajax-images directory and image directory?

By default, it's looking for most images in:  http://cvweather.org/ajax-images/nskc.gif

You can of course change the images directory in the configs.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 08:14:03 PM
Scott,
I need help with a few items.
1) no Chandler fire and/or cloud icons.
2) my daylight hrs is ok, but the minutes difference is off. ( The setting is in WD >ctrl panel>Solar Sensor. Lat/Long. I think?)
 
My main issues is the New Test Tags to Add.txt. I've added this to the testtags.txt  three times, but the file is always overwritten back to the old testtags.txt. The last time I closed WD, thinking it couldn't be running to update.
Suggestions?
Thanks
Ed
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 08:43:08 PM
ok. Found the CBI & sun icons.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 14, 2010, 09:17:53 PM
My main issues is the New Test Tags to Add.txt. I've added this to the testtags.txt  three times, but the file is always overwritten back to the old testtags.txt. The last time I closed WD, thinking it couldn't be running to update.

You should be editing the file testtags.txt in the c:\wdisplay\webfiles directory.  Open the file with notepad.exe and at the bottom of the file, right before:

// end of testtags.txt/testtags.php
?>

Insert the extra tags.


Save the file and exit notepad.  It sounds like you were editing testtags.php.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 09:31:09 PM
One more time.Put them here:
// end of Webster Weather Live tags for High/Low/Average plugin
// ----------------------------------------------------------------------------------------------------
$lighteningbearing = '%nexstormbearing%';
$lighteningdistance = '%nexstormdistance%';
$lighteningcountlasthournextstorm = '%lighteningcountlasthournextstorm%';
$lighteningcountlastminutenextstorm = '%lighteningcountlastminutenextstorm%';
$lighteningcountlast12hournextstorm = '%lighteningcountlast12hournextstorm%';
$lighteningcountlast30minutesnextstorm = '%lighteningcountlast30minutesnextstorm%';
$timeofdaygreeting = '%timeofdaygreeting%';
$tempchangelasthourfaren = '%tempchangelasthourfaren%'; //For snow prediction
$abshum = '%abshum%'; //For snow prediction
$avwindlastimediate15 = '%avwindlastimediate15%'; // average wind speed
$avwindlastimediate30 = '%avwindlastimediate30%'; // average wind speed
$avwindlastimediate60 = '%avwindlastimediate60%'; // average wind speed
$avwindlastimediate120 = '%avwindlastimediate120%'; // average wind speed
$currentmonthaveragerain = '%currentmonthaveragerain%'; // average rain for current month
$dayswithrainyear = '%dayswithrainyear%'; // days with rain for year
$todayhihumidex = '%todayhihumidex%'; //daily high humidex
$todaylohumidex = '%todaylohumidex%'; //Daily low Humidex
$dayornight = '%dayornight%'; // Day or night flag
$maxtemp4today = '%maxtempfortodayfromyourdata%'; // max from station's records
$mintemp4today = '%mintempfortodayfromyourdata%'; // min from station's records
$maxtemp4todayyr = '%yearmaxtempfortodayfromyourdata%'; // max year from station's records
$mintemp4todayyr = '%yearmintempfortodayfromyourdata%'; // min year from station's records
$raintodateyearago = '%raintodateyearago%'; // Rain to date from last year
// end of testtags.txt/testtags.php
?>

file name is testtags.txt 12/14/2010 9:21 in c:\wdisplay\webfiles

5 min. later the time stamp is back to  72/22/2010 4:47 pm and all the above tags are gone, at c:\wdisplay\webfiles\testtags.txt :sad:
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 14, 2010, 10:00:56 PM
One more time.Put them here:
file name is testtags.txt 12/14/2010 9:21 in c:\wdisplay\webfiles

5 min. later the time stamp is back to  72/22/2010 4:47 pm and all the above tags are gone, at c:\wdisplay\webfiles\testtags.txt :sad:

If it's changing the testtags.txt file in that directory there is a serious problem.  The only version of testtags that should change is the .php version that is created from the testtags.txt.  Has this ever worked before (is this a new install I mean)?  Also is the date format always 72/22???

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 10:15:49 PM
One more time.Put them here:
file name is testtags.txt 12/14/2010 9:21 in c:\wdisplay\webfiles


If it's changing the testtags.txt file in that directory there is a serious problem.  The only version of testtags that should change is the .php version that is created from the testtags.txt.  Has this ever worked before (is this a new install I mean)?

  Also is the date format always 72/22???


Scott
I've been using the Saratoga templates sice August, they have been working.


date is reverting to 7/22/2010, I save it time stamp changes to today. A few minutes later it back to the 7/22 ver. w/out the new tags. I am using all the latest templates, I upgraded them all when I changed web host.
No testtags.txt is the only file w/the 7/22 date.
Should I exit out of WD, then edit testtags.txt?
I'm doing this on a vnc. maybe I should just delete the testtags.txt & drop in a new (testtags.txt w/ additions)file?
It straightforward, open file, paste in new tags, save & close right?
 
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 14, 2010, 10:24:58 PM
Scott,
I'm new to the alt dashboard started with your 6.02.
Got the clouds to works had to addd php http://www.bashewa.com/download-cloud-base.php
Thanks for all the work on the script. I'll have to revisit the testtags.txt tomorrow.
Ed
Title: Re: Alternative-Dashboard Version 6.02
Post by: youngros on December 16, 2010, 04:01:59 PM
Hi Scott,

Having a bit of fun getting your script to work on a non template page www.mad-weather.com/ajax6.php and something I have noticed when trying to adapt the CSS is that your text fills the boxes, but mine is either aligned left with a large margin on the right or aligned center. I notice that weer-mauritius.info-mauritius.com does something similar. Not sure where my CSS is getting over ridden as yours looks to be the default.
Any thoughts?
Great looking script that I want to use as my home page when it is all sorted out. Also don't have snow and no lightening detector, although could have done with one last night!! Major electrical storm.

Rosalind
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 16, 2010, 08:10:03 PM
Hi Scott,

Having a bit of fun getting your script to work on a non template page www.mad-weather.com/ajax6.php and something I have noticed when trying to adapt the CSS is that your text fills the boxes, but mine is either aligned left with a large margin on the right or aligned center. I notice that weer-mauritius.info-mauritius.com does something similar. Not sure where my CSS is getting over ridden as yours looks to be the default.
Any thoughts?
Great looking script that I want to use as my home page when it is all sorted out. Also don't have snow and no lightening detector, although could have done with one last night!! Major electrical storm.

Rosalind

Looks like you're using a bit wider area then the script was written for.  In the script, at the start of each section, look for the <table> commands and adjust the width there to fit your needs.  That will help I think.  Otherwise it's looking real good!  You have a nice site there!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 16, 2010, 08:11:54 PM
I'll be a bit slow to respond to any questions about the script for a week or so around Christmas, will have a lot of guests so won't have much time on the computer.  I'll be back answering around the 27th!

Happy Holiday and Merry Christmas to everyone.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: youngros on December 17, 2010, 10:58:04 AM
Thanks Scott, will keep on working at it till it comes right.
Happy Christmas.

Rosalind
Title: Re: Alternative-Dashboard Version 6.02
Post by: jgillett on December 18, 2010, 05:02:39 AM
If it's changing the testtags.txt file in that directory there is a serious problem.  The only version of testtags that should change is the .php version that is created from the testtags.txt.  Has this ever worked before (is this a new install I mean)?  Also is the date format always 72/22???

Scott
Scott,

I've always had a problem trying to change the c:/wdisplay/webfiles/testtags.txt file (I had the same problem as ed2kayak). Apparently, at least on my system, WD has that file open, and, therefore, any changes made to it are lost. I have found a 'fix' by editing the c:/wdisplay/testtags.txt file instead. After a few minutes this file is moved into /webfiles/ and all is intact and well.

FWIW...
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 18, 2010, 03:06:51 PM
Apparently, at least on my system, WD has that file open, and, therefore, any changes made to it are lost. I have found a 'fix' by editing the c:/wdisplay/testtags.txt file instead. After a few minutes this file is moved into /webfiles/ and all is intact and well.

FWIW...

jgillett, Thank YOU! That worked.. I never searched for another location for the testtags.txt file. I read your post before work this am. Quickly dropped in a edited file in my wdisplay directory. In a few minutes it is moved to the /webfiles sub directory.
Title: Re: Alternative-Dashboard Version 6.02
Post by: jgillett on December 18, 2010, 03:23:07 PM
jgillett, Thank YOU! That worked.. I never searched for another location for the testtags.txt file. I read your post before work this am. Quickly dropped in a edited file in my wdisplay directory. In a few minutes it is moved to the /webfiles sub directory.
Glad to hear it worked for you.
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 18, 2010, 10:15:16 PM
Now my moon images aren't working properly, not sure what I changed. This is in row 3 panel 4. The moon initially appears, then disappears?
Thanks in advance.
Title: Re: Alternative-Dashboard Version 6.02
Post by: tonyva on December 18, 2010, 10:40:03 PM
Can someone maybe answer my questions. I have upgraded from version 5.

1. I have no heat index data on my webpage (used to before upgrade)

2. Fire icon appears for about 2 seconds then disappears.

3. Rec* High and Low have wrong temps and dates (I have data since late 2006)

4. Station All Time Highs show 01/01/1970    0.0C 01/01/1970

Many Thanks
Title: Re: Alternative-Dashboard Version 6.02
Post by: Cienega32 on December 19, 2010, 01:15:23 AM
Your fire icon is a gif file. Your script is looking for a jpg file.
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on December 22, 2010, 06:49:55 AM
Can someone maybe answer my questions. I have upgraded from version 5.
3. Rec* High and Low have wrong temps and dates (I have data since late 2006)
4. Station All Time Highs show 01/01/1970    0.0C 01/01/1970
Many Thanks

just want to throw me on this. Have the same problem with the date.
I do not have two years of data so I thought that was what was wrong when it comes to Rec * High and Low.

http://regnskvett.com/ (http://regnskvett.com/)




Title: Re: Alternative-Dashboard Version 6.02
Post by: jgillett on December 22, 2010, 10:52:30 AM
just want to throw me on this. Have the same problem with the date.
I do not have two years of data so I thought that was what was wrong when it comes to Rec * High and Low.
Having the same problem here as well. Since switching to WD in Sept I've been unable to get my archive data loaded (not WDs fault), so I'm getting history from WU. It's intermittent - runs along fine for a while, then just gets stuck, etc.
Title: Re: Alternative-Dashboard Version 6.02
Post by: vossen on December 23, 2010, 01:14:27 AM
I'll be a bit slow to respond to any questions about the script for a week or so around Christmas, will have a lot of guests so won't have much time on the computer.  I'll be back answering around the 27th!

Happy Holiday and Merry Christmas to everyone.

Scott

same to you and the others!
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 26, 2010, 10:21:34 PM
Can someone maybe answer my questions. I have upgraded from version 5.
3. Rec* High and Low have wrong temps and dates (I have data since late 2006)
4. Station All Time Highs show 01/01/1970    0.0C 01/01/1970
Many Thanks

just want to throw me on this. Have the same problem with the date.
I do not have two years of data so I thought that was what was wrong when it comes to Rec * High and Low.

http://regnskvett.com/ (http://regnskvett.com/)


If you don't have two years of data Brian already said that it would not work.  I'm not sure what it does exactly if you don't though!

Scott





Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 26, 2010, 10:23:36 PM
Can someone maybe answer my questions. I have upgraded from version 5.

1. I have no heat index data on my webpage (used to before upgrade)

2. Fire icon appears for about 2 seconds then disappears.

3. Rec* High and Low have wrong temps and dates (I have data since late 2006)

4. Station All Time Highs show 01/01/1970    0.0C 01/01/1970

Many Thanks

Can you send me a link to the page so I can look at it.  If you had version 5 running the only changes needed are the new config file and some additional testtags (and the new java script)

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 26, 2010, 10:25:07 PM
If it's changing the testtags.txt file in that directory there is a serious problem.  The only version of testtags that should change is the .php version that is created from the testtags.txt.  Has this ever worked before (is this a new install I mean)?  Also is the date format always 72/22???

Scott
Scott,

I've always had a problem trying to change the c:/wdisplay/webfiles/testtags.txt file (I had the same problem as ed2kayak). Apparently, at least on my system, WD has that file open, and, therefore, any changes made to it are lost. I have found a 'fix' by editing the c:/wdisplay/testtags.txt file instead. After a few minutes this file is moved into /webfiles/ and all is intact and well.

FWIW...

What version of Windows may I ask?

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: jgillett on December 26, 2010, 11:23:17 PM
If it's changing the testtags.txt file in that directory there is a serious problem.  The only version of testtags that should change is the .php version that is created from the testtags.txt.  Has this ever worked before (is this a new install I mean)?  Also is the date format always 72/22???

Scott
Scott,

I've always had a problem trying to change the c:/wdisplay/webfiles/testtags.txt file (I had the same problem as ed2kayak). Apparently, at least on my system, WD has that file open, and, therefore, any changes made to it are lost. I have found a 'fix' by editing the c:/wdisplay/testtags.txt file instead. After a few minutes this file is moved into /webfiles/ and all is intact and well.

FWIW...

What version of Windows may I ask?

Scott
Win 7 x64.
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on December 27, 2010, 09:57:29 AM
Can someone maybe answer my questions. I have upgraded from version 5.
3. Rec* High and Low have wrong temps and dates (I have data since late 2006)
4. Station All Time Highs show 01/01/1970    0.0C 01/01/1970
Many Thanks

just want to throw me on this. Have the same problem with the date.
I do not have two years of data so I thought that was what was wrong when it comes to Rec * High and Low.

http://regnskvett.com/ (http://regnskvett.com/)


If you don't have two years of data Brian already said that it would not work.  I'm not sure what it does exactly if you don't though!

Scott






Station All Time Highs shows 01/01/1970, Do i need two years of data for this to be right too.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 27, 2010, 03:32:59 PM
>>> Station All Time Highs shows 01/01/1970, Do i need two years of data for this to be right too.

From what I understand, yes you would need to have 2 years of data.  You would have to ask Brian to clarify that but that was the last I read. I have an option in there to use Weather Underground records if you don't have enough data of your own yet if that helps!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on December 27, 2010, 08:29:27 PM
Scott,
On the row 2 panel,  the 3rd column (wind) has an underscore before the am/pm.

Max Gust:    30.0@  11:42_AM

Is it possible to remove (_) to make consistent with the other time statements.
Thanks
Ed
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 28, 2010, 07:43:24 AM
Scott,
On the row 2 panel,  the 3rd column (wind) has an underscore before the am/pm.

Max Gust:    30.0@  11:42_AM

Is it possible to remove (_) to make consistent with the other time statements.
Thanks
Ed


The problem is, that is how the reading is stored in the testtags.  I can see if I can create a function to change that but the better way would be for Brian to correct the tag to make it standard.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: CNYWeather on December 28, 2010, 08:03:27 AM
I just took a look at that Scott because I was wondering also.
It uses clientraw line 135 which doesn't show an underscore if I'm reading it right.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 28, 2010, 07:42:39 PM
I just took a look at that Scott because I was wondering also.
It uses clientraw line 135 which doesn't show an underscore if I'm reading it right.

Actually, they are wrong in clientraw.txt, here is an excerpt from mine:

6:10PM 12:16_AM

I'll see what it will take to get a function to fix it as I doubt it will ever be fixed in WD.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: CNYWeather on December 28, 2010, 08:09:17 PM
134   Max Gust Last Hour Time   L   7:22PM
135   Max Gust Today Time   L   3:47 PM
136   Max Apparent Temp   C   -3.1 �C = 26.4 �F


There are mine Scott using Kevin's clientraw parser









Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 28, 2010, 09:02:57 PM
I just took a look at that Scott because I was wondering also.
It uses clientraw line 135 which doesn't show an underscore if I'm reading it right.

I was able to fix it in the dashboard but not the ajax update yet.  My java skills are not that good yet!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 28, 2010, 09:04:17 PM
134   Max Gust Last Hour Time   L   7:22PM
135   Max Gust Today Time   L   3:47 PM
136   Max Apparent Temp   C   -3.1 �C = 26.4 �F


There are mine Scott using Kevin's clientraw parser

I think he is doing some fixing up.  Look at the raw file in a text editor (notepad.exe) and you'll see the underscores there.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: jgillett on December 29, 2010, 12:58:21 AM
I just took a look at that Scott because I was wondering also.
It uses clientraw line 135 which doesn't show an underscore if I'm reading it right.
Don't see an underscore on mine, either.
Title: Re: Alternative-Dashboard Version 6.02
Post by: CNYWeather on December 29, 2010, 07:38:03 AM
Could it be something with the ajaxWDwx.js file Scott?

On my old dashboard which uses the 4.10 version of your dashboard
and does not use Meekrat's .js file it's ok.

http://www.cnyweather.com/ajax-dashboard.php
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 29, 2010, 07:42:37 AM
Could it be something with the ajaxWDwx.js file Scott?

On my old dashboard which uses the 4.10 version of your dashboard
and does not use Meekrat's .js file it's ok.

http://www.cnyweather.com/ajax-dashboard.php

It is the java script but only because it uses the raw reading from clientraw.txt.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: stewart45 on December 30, 2010, 12:19:12 PM
I have a problem with the Rec*Hi and Rec*Low temps not converting to Imperial when switching from metric. All my data is recorded as metric everything else seems to convert OK except these. help appreciated
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on December 30, 2010, 06:46:05 PM
I have a problem with the Rec*Hi and Rec*Low temps not converting to Imperial when switching from metric. All my data is recorded as metric everything else seems to convert OK except these. help appreciated

Right now, I have not been able to figure out a way to make that reading convert.  There are a couple areas that the conversion just doesn't work. When I find a fix I'll add it in for sure.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: stewart45 on December 31, 2010, 04:49:58 AM
thanks for the reply
Title: Re: Alternative-Dashboard Version 6.02
Post by: youngros on January 05, 2011, 08:47:18 AM
Hi Scott,

CSS is improving slowly http://www.mad-weather.com/ajax6.php the one thing I seem to have missed is how to keep the UV image showing, it shows briefly when you press F5, but it's not there all the time.

I also had the all time station record showing 1/1/1970 but on your high lows trend script it was showing the correct date so I changed

<?php echo create_datemdy($recordhightempmonth,$recordhightempday,$recordhightempyear)?>

to

<?php
                      if ($WDdateMDY)
                          echo fixup_date($recordhightempmonth . "/" . $recordhightempday . "/" . $recordhightempyear);
                      else   
                          echo fixup_date($recordhightempday . "/" . $recordhightempmonth . "/" . $recordhightempyear);
                   ?>

and that now works. Interesting to note that it was only the high temperature that was affected and not the low or warmest coldest days and nights.

Rosalind
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 05, 2011, 03:13:29 PM
Hey!
updated my plaintext parser. Got a line  extra  in the Short Term Weather Forecast.
It looks a little messed up, is it a way to fix this?

Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 05, 2011, 06:32:54 PM
Hi Scott,

CSS is improving slowly http://www.mad-weather.com/ajax6.php the one thing I seem to have missed is how to keep the UV image showing, it shows briefly when you press F5, but it's not there all the time.

I also had the all time station record showing 1/1/1970 but on your high lows trend script it was showing the correct date so I changed

<?php echo create_datemdy($recordhightempmonth,$recordhightempday,$recordhightempyear)?>

to

<?php
                      if ($WDdateMDY)
                          echo fixup_date($recordhightempmonth . "/" . $recordhightempday . "/" . $recordhightempyear);
                      else   
                          echo fixup_date($recordhightempday . "/" . $recordhightempmonth . "/" . $recordhightempyear);
                   ?>

and that now works. Interesting to note that it was only the high temperature that was affected and not the low or warmest coldest days and nights.

Rosalind

If it disappears right away it's the ajax java script that is updating it.  You have something set wrong in that.  What does it show?

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 05, 2011, 06:33:20 PM
Hey!
updated my plaintext parser. Got a line  extra  in the Short Term Weather Forecast.
It looks a little messed up, is it a way to fix this?



What did you change? 

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 06, 2011, 05:47:56 AM
Hey!

Did not change anything. Updated just plain text parser and plain text data.txt.
Got a new line that shows the 'cold'
It is possible this must be fixed in plain text.  It looked a bit messed up in wxsimforecast too.
Perhaps Ken working on it?
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 06, 2011, 07:43:25 AM
Hey!

Did not change anything. Updated just plain text parser and plain text data.txt.
Got a new line that shows the 'cold'
It is possible this must be fixed in plain text.  It looked a bit messed up in wxsimforecast too.
Perhaps Ken working on it?

That's what I was asking, where did the new parser come from, I haven't seen a new version yet!  Looks like version 1.19 from August 2010 is the latest version I've got, is yours later then that or was it just a patch?

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 06, 2011, 08:50:20 AM
plaintext parser.php versjon 1,21 and plaintext parser data.txt versjon 1.07
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 06, 2011, 09:21:32 PM
plaintext parser.php versjon 1,21 and plaintext parser data.txt versjon 1.07

Ok, I've download version 1.22 and version 1.07 and so far no bad reactions.  I'll keep checking for a day or two and see if I can get mine to do the same.  I just dropped the two files in over my old versions as they were. 

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: mava on January 07, 2011, 03:14:35 AM
Hi,
I am thinking about changing to ver.6.02 from ver.5
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.

Link to the dashboard : http://www.mavahome.com/ajax-dashboard6.php

Any suggestions of what migth cause this?

rgs
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 07, 2011, 07:43:43 AM
Hi,
I am thinking about changing to ver.6.02 from ver.5
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.

Link to the dashboard : http://www.mavahome.com/ajax-dashboard6.php

Any suggestions of what migth cause this?

rgs

You need to surpress the PHP error messages. 

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: mayo9999 on January 07, 2011, 08:09:38 AM
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.

Scott,

I'm seeing the same issues with date formats.
     http://www.lakemaryweather.com/wdl/wxindex6.php (work in progress)
I perfer them to be MM/DD/YYYY
(Wind Chill, Almanac, and Station All Time Records)
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 07, 2011, 10:05:23 AM
updated to plaintext 1.22 and it looks a bit strange.

http://regnskvett.com/index.php (http://regnskvett.com/index.php)

it looks funny in forcast too.

http://regnskvett.com/wxsimforecast.php (http://regnskvett.com/wxsimforecast.php)
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 07, 2011, 12:31:07 PM
I think I've gotten it better.
In plain text I changed $maxWidth = 640 to 100%
and $showFrost = true;to false.

Thanks for your help

Torjan.

Title: Re: Alternative-Dashboard Version 6.02
Post by: paulIOG on January 07, 2011, 12:47:05 PM
Hi all been trying to change over to this version with not much joy i get this error

<b>Fatal error</b>:  Call to undefined function: idate() in <b>/homepages/3/d246270979/htdocs/ajax-dashboard.php</b> on line <b>2263</b><br />

any ideas on how i can fix this

Cheers
Paul
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 07, 2011, 10:25:48 PM
Hi all been trying to change over to this version with not much joy i get this error

<b>Fatal error</b>:  Call to undefined function: idate() in <b>/homepages/3/d246270979/htdocs/ajax-dashboard.php</b> on line <b>2263</b><br />

Paul,

What version of PHP are you using?  Is there a link to the page I can look at?

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 07, 2011, 10:29:16 PM
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.

Scott,

I'm seeing the same issues with date formats.
     http://www.lakemaryweather.com/wdl/wxindex6.php (work in progress)
I perfer them to be MM/DD/YYYY
(Wind Chill, Almanac, and Station All Time Records)


Like I mentioned in the previous note about that, the problem is in the conversion of dates and the java script.  I have not been able to figure out the problem.  I'm not a java person and there are so many formats for the dates.  Perhaps Ken would be willing to look at the code and see if he can see why only certain dates will not convert correctly.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 07, 2011, 10:32:40 PM
I think I've gotten it better.
In plain text I changed $maxWidth = 640 to 100%
and $showFrost = true;to false.

It must have something to do with the non-english translation too, I'm using the same settings and not seeing any issues.  I'm glad to see that you found a solution though!  Site looks great!

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: mava on January 08, 2011, 01:52:16 AM
Hi,
I am thinking about changing to ver.6.02 from ver.5
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.

Link to the dashboard : http://www.mavahome.com/ajax-dashboard6.php

Any suggestions of what migth cause this?

rgs

You need to surpress the PHP error messages. 

Scott


Thanks Scott.
Looking better now. :-)
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 08, 2011, 05:37:57 AM
Hey!

Only a small update about new plaintext and version 12.8 WXSIM.
Must set 'never' in include frost in plain text output ...

There is too much text if this is on. it mess up icons in  WXSIM Short Term Weather Forecast.
Title: Re: Alternative-Dashboard Version 6.02
Post by: ed2kayak on January 08, 2011, 07:34:27 AM
snow questions.
I just added .1 inch snow today in WD. The current conditions dashboard http://cvweather.org/index.php initially shows 0.10 in snow (correct amt.) , then flashes green (update?) and displays 0.12 inches?
It is correct in my snow detail page here:  http://cvweather.org/wxsnowdetail.php
#2, do you empty the snow out of rain collector if measuring snow manually?
Thanks
Ed
Title: Re: Alternative-Dashboard Version 6.02
Post by: paulIOG on January 08, 2011, 09:02:11 AM
Hi all been trying to change over to this version with not much joy i get this error

<b>Fatal error</b>:  Call to undefined function: idate() in <b>/homepages/3/d246270979/htdocs/ajax-dashboard.php</b> on line <b>2263</b><br />

Paul,

What version of PHP are you using?  Is there a link to the page I can look at?

Scott
Hi scott looked into the PHP version looks like i was still running v4.4.9 now updated to PHP5 and seems to have cured most of my problems i just need to fix a few image issues and fiddle with the config file a little its nearly there though can be seen here www.iogweather.co.uk (http://www.iogweather.co.uk)

cheers

Paul
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 08, 2011, 09:43:59 AM
Hi scott looked into the PHP version looks like i was still running v4.4.9 now updated to PHP5 and seems to have cured most of my problems i just need to fix a few image issues and fiddle with the config file a little its nearly there though can be seen here www.iogweather.co.uk (http://www.iogweather.co.uk)

cheers

Paul
The first thing I saw, when the page first loads.  The main images are looking for the files to be:  http://www.iogweather.co.uk/ajax-images/sct.gif

but when the java script kicks in the images load and are looking for:
http://www.iogweather.co.uk/ajax-images/sct.jpg

You need to configure the dashboard to use .jpg images and configure the size (it uses smaller ones in version 6 then version 4).  Go through the settings file and the top of the main script and make sure all your settings match.  Then I think you'll have the last of it worked out!

Scott

PS:  You seem to also be missing the images from the archive and you need to setup the cloadbase image that is downloaded separately.  All the information on where to get/put these are in the instructions included with the archive if you downloaded it from my site.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 08, 2011, 09:46:04 AM
snow questions.
I just added .1 inch snow today in WD. The current conditions dashboard http://cvweather.org/index.php initially shows 0.10 in snow (correct amt.) , then flashes green (update?) and displays 0.12 inches?
It is correct in my snow detail page here:  http://cvweather.org/wxsnowdetail.php
#2, do you empty the snow out of rain collector if measuring snow manually?
Thanks
Ed

Ed,  I have the problem too.  The java is converting the snow reading from cm to inches and there is a rounding issue there.  It only seems to effect the java updates.  I wish I knew java programming better and could make that round better but I'm not a java guy.  Sorry

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 08, 2011, 04:18:22 PM
dashboard will not update the lunar phase. stopped when it was Evening Crescent.
it's okay in my almanac.

Any idea what might be wrong.

Torjan

see that all have the same problem.
edit! I think it's an ajax stuff
Title: Re: Alternative-Dashboard Version 6.02
Post by: ALITTLEweird1 on January 08, 2011, 06:57:45 PM
Same issue here, the dashboard is stuck at 1% for me, and should be at 19%. Here's what my test tag is showing, which is correct.

$moonage =  'Moon age: 4 days,6 hours,29 minutes,19%';

Im running the 5.03 dashboard.
Title: Re: Alternative-Dashboard Version 6.02
Post by: mayo9999 on January 08, 2011, 08:38:02 PM
It looks like I have a problem with time/date in some areas of the dasboard and have not been able to figure out where the problem is.
Scott,

I'm seeing the same issues with date formats.
     http://www.lakemaryweather.com/wdl/wxindex6.php (work in progress)
I perfer them to be MM/DD/YYYY
(Wind Chill, Almanac, and Station All Time Records)


Like I mentioned in the previous note about that, the problem is in the conversion of dates and the java script.  I have not been able to figure out the problem.  I'm not a java person and there are so many formats for the dates.  Perhaps Ken would be willing to look at the code and see if he can see why only certain dates will not convert correctly.

Scott

Scott,

1> I was asking about "Wind Chill", "Almanac", and "Station All Time Records".  You have "Wind Chill" and "Station All Time Records" on your Webster Weather home page as "Jan-15-2009".  My issue was they displayed as "13-Nov-2009" and I wanted them to display like yours, or better yet as "11/13/2009".   This is definitely different with what you said in an early note about date conversions and java script.

I have fixed this on my own by changing my setting.php variable:
Code: [Select]
$SITE['dateOnlyFormat'] = 'm/d/Y';
2> I do agree "Almanac" data is a definitely a JS issue.  I see in my testtags.php file:
Code: [Select]
$nextnewmoon =  '02:31 UTC 3 February 2011'; // Date/time of the next new moon for next month
$fullmoon =  '21:22 UTC 19 January 2011'; // Date/time of the next/last full moon
$fullmoondate =  ' 19 January 2011'; // Date of the next/last full moon (date only)
etc.

I also saw in my WD "Control Panel > Solar/Lunar & Coordinates" my "SUN/MOON Set and Rise Times" had:
           First Quarter  12 January 2011
           Full moon  19 January 2011
           Last Quarter26 January 2011
           New moon 3 February 2011
           Moon age: 3 days,13 hours,34 minutes,17%
           Hours of possible daylight today was 10:25

I noticed the date/time on my wxastronomy.php page was formatted exactly like I wanted it.  Digging into the code on that PHP page I borrowed Kevin's or Ken's "$indate" java script function:
Code: [Select]
function get_localdate ( $indate) {
  global $SITE;
  $EnglishMonths = array(
   'January','February','March','April','May','June',
   'July','August','September','October','November','December');

// Change '02:33 UTC 4 September 2007' to
//        specified date by
  $timeFormat = 'D, d-M-Y h:ia T';  // Fri, 31-Mar-2006 14:03 TZone
//  $timeFormat = 'h:ia T D, d-M-Y ';  // Fri, 31-Mar-2006 14:03 TZone
  if(isset($SITE['timeFormat'])) { $timeFormat = $SITE['timeFormat']; }

  $utcstr = substr($indate,10) . " " . substr($indate,0,9); // move formats

  if (isset($SITE['monthNames'])) {
    // convert TO English for strtotime()
    echo "<!-- before utcstr='$utcstr' -->\n";
foreach ($EnglishMonths as $i => $monthEN) {
   $utcstr = preg_replace('|'.$SITE['monthNames'][$i].'|i',$monthEN,$utcstr);
}
    echo "<!-- after utcstr='$utcstr' -->\n";
  }
  $utc = strtotime($utcstr);
  $lclstr = date($timeFormat,$utc);
  if (isset($SITE['monthNames'])) {
    // convert From English for return (will only work if long-format month names in $timeFormat)
    echo "<!-- before lclstr='$lclstr' -->\n";
foreach ($EnglishMonths as $i => $monthEN) {
   $lclstr = preg_replace('|'.$monthEN.'|i',$SITE['monthNames'][$i],$lclstr);
}
    echo "<!-- after lclstr='$lclstr' -->\n";
  }
  return ($lclstr);
}
By adding it to the end of my ajax-dashboard6.php file, and updating your two lines in "Almanac" section with:
Code: [Select]
From:
<?php echo $fullmoondate?>
To:
<?php echo get_localdate($fullmoondate); ?>
From:
<?php echo $nextnewmoon?>
To:
<?php echo get_localdate($nextnewmoon); ?>
Plus modifiying setting.php
Code: [Select]
$SITE['timeFormat'] = 'm/d/Y g:ia';
it's now perfect (for my tastes).  "Full Moon:" now shows "01/20/2011 3:11am" and New Moon:" shows "02/02/2011 9:31pm".
   http://www.lakemaryweather.com/wdl/wxindex6.php

Hope this helps you and others with this issue.

Next to fix:
   "UV Summary/Forecast" date format
   "Moon" at 1% and it should read 20%, as my current Webster Alternative-Dashboard Version 4.20 does.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 08, 2011, 10:29:13 PM
The moon phase issue appears to only effect those using the ajaxWDwx.js version 9.xx code (or the modified 9.xx code included with version 6 of the alt-dashboard.)  Rainer changed the Moon Phase to a new calculation method of displaying the phase that seems to have gone wrong starting in 2011.  Since I have no idea what that code is, I''ll give it a bit of time and see if he comes out with a patch otherwise I'll re-write the old version back into the code to fix it.  Sorry.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BfdWx on January 08, 2011, 10:37:59 PM
Quote
I''ll give it a bit of time and see if he comes out with a patch

As of now his site is not working properly either (as well as the moonphase).....http://www.bashewa.com/
Title: Re: Alternative-Dashboard Version 6.02
Post by: mayo9999 on January 08, 2011, 10:44:08 PM
The moon phase issue appears to only effect those using the ajaxWDwx.js version 9.xx code (or the modified 9.xx code included with version 6 of the alt-dashboard.)  Rainer changed the Moon Phase to a new calculation method of displaying the phase that seems to have gone wrong starting in 2011.  Since I have no idea what that code is, I''ll give it a bit of time and see if he comes out with a patch otherwise I'll re-write the old version back into the code to fix it.  Sorry.

Scott
Scott,

Not convinced on the issue being an ajaxWDWX.js 9.xx issue....  I posted this on a weather-watch.com topic earlier this evening:

My Webster Version 5.03 & Version 6.02 Alternate Dashboard pages show 1%; however my Version 4.20 shows 19%.  I'm using Webster's 3.0 ajaxWDwx.js, a revised version of 2.19, so it most likely in the ajax-dashboard.php not ajaxWDwx.js.  I've been having some date format and other issues in 6.02 and it's till work in progress before it becomes my default page.
           Full v.4.20 = http://www.lakemaryweather.com/wdl/wxindex4.php
           Base Version 5.03 = http://www.lakemaryweather.com/wdl/wxindex5.php
           Work in progress v6.0.2 = http://www.lakemaryweather.com/wdl/wxindex4.php
You might want to ask Scott on http://www.wxforum.net as he no longer uses this forum weather-watch.com :(

I'm still running a modified version of your 4.20 Alternative Dashboard as my sites home page, and have no issue with "Moon" setting.  Currently it shows "Waxing Crescent 21% Illuminated".  I might be able to find some time digging into it tomorrow, I really want to but v6.02 as "Home" page as soon as I can can.
Title: Re: Alternative-Dashboard Version 6.02
Post by: ALITTLEweird1 on January 08, 2011, 10:51:13 PM
Thanks Scott.. No hurry here.
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 08, 2011, 10:52:35 PM
The moon phase issue appears to only effect those using the ajaxWDwx.js version 9.xx code (or the modified 9.xx code included with version 6 of the alt-dashboard.)  Rainer changed the Moon Phase to a new calculation method of displaying the phase that seems to have gone wrong starting in 2011.  Since I have no idea what that code is, I''ll give it a bit of time and see if he comes out with a patch otherwise I'll re-write the old version back into the code to fix it.  Sorry.

Scott
Scott,

Not convinced on the issue being an ajaxWDWX.js 9.xx issue....  I posted this on a weather-watch.com topic earlier this evening:

My Webster Version 5.03 & Version 6.02 Alternate Dashboard pages show 1%; however my Version 4.20 shows 19%.  I'm using Webster's 3.0 ajaxWDwx.js, a revised version of 2.19, so it most likely in the ajax-dashboard.php not ajaxWDwx.js.  I've been having some date format and other issues in 6.02 and it's till work in progress before it becomes my default page.
           Full v.4.20 = http://www.lakemaryweather.com/wdl/wxindex4.php
           Base Version 5.03 = http://www.lakemaryweather.com/wdl/wxindex5.php
           Work in progress v6.0.2 = http://www.lakemaryweather.com/wdl/wxindex4.php
You might want to ask Scott on http://www.wxforum.net as he no longer uses this forum weather-watch.com :(

I'm still running a modified version of your 4.20 Alternative Dashboard as my sites home page, and have no issue with "Moon" setting.  Currently it shows "Waxing Crescent 21% Illuminated".  I might be able to find some time digging into it tomorrow, I really want to but v6.02 as "Home" page as soon as I can can.

Actually it makes sense since version 4.xx used the old version of java script and version 5 and greater uses the new 9.xx

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 08, 2011, 10:55:00 PM
Quote
I''ll give it a bit of time and see if he comes out with a patch

As of now his site is not working properly either (as well as the moonphase).....http://www.bashewa.com/

I saw that too, I was hoping he would make a release to fix that and a couple other errors.  I fixed the ones I could figure out but some of them I just haven't figured out.  It would help a lot if there was a "Standard" format to all measurements in WD, right now there are so many different formats dates, times and some readings are in it's almost impossible to write anything without 100 different functions to fix formats and account for things.

Scott
Title: Re: Alternative-Dashboard Version 6.02
Post by: meerkat on January 09, 2011, 04:33:05 AM
As of now his site is not working properly either (as well as the moonphase).....http://www.bashewa.com/

Yeah, I'm having trouble with WD at the moment.
Working with Windy to get a fix for the WMR200 history download.
He's made a new version available which I'll test today.
Title: Re: Alternative-Dashboard Version 6.02
Post by: Torjan on January 09, 2011, 06:00:48 AM
There is a fix for the moon here http://www.weather-watch.com/smf/index.php/topic,49356.0.html (http://www.weather-watch.com/smf/index.php/topic,49356.0.html)

Torjan
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 09, 2011, 09:10:57 AM
UPDATE NOTICE:

Thanks to George's research on the moon phase problem and related new array, I have updated alt-dashboard6 to include the fixes and it now works again.  You can find the updated version 6.03 on my site in the scripts section or click here to download:

http://www.websterweatherlive.com/downloads/Alt-Dashboard603.zip (http://www.websterweatherlive.com/downloads/Alt-Dashboard603.zip)

Thanks!
Title: Re: Alternative-Dashboard Version 6.03
Post by: ed2kayak on January 09, 2011, 09:36:45 AM
Scott, Thanks
That worked.
Title: Re: Alternative-Dashboard Version 6.02
Post by: mava on January 09, 2011, 02:12:23 PM
I also had the all time station record showing 1/1/1970 but on your high lows trend script it was showing the correct date so I changed

<?php echo create_datemdy($recordhightempmonth,$recordhightempday,$recordhightempyear)?>

to

<?php
                      if ($WDdateMDY)
                          echo fixup_date($recordhightempmonth . "/" . $recordhightempday . "/" . $recordhightempyear);
                      else   
                          echo fixup_date($recordhightempday . "/" . $recordhightempmonth . "/" . $recordhightempyear);
                   ?>

and that now works. Interesting to note that it was only the high temperature that was affected and not the low or warmest coldest days and nights.

Rosalind

Hi,This fixed my All Time Record dates. I had to do the same with LOW records.

The UV image not showing up when  the reading is 0 was just the image name. It was UV0 instead of uv0

rgs
Title: Re: Alternative-Dashboard Version 6.02
Post by: BurnsvilleWeather on January 09, 2011, 03:13:00 PM
I also had the all time station record showing 1/1/1970 but on your high lows trend script it was showing the correct date so I changed

<?php echo create_datemdy($recordhightempmonth,$recordhightempday,$recordhightempyear)?>

to

<?php
                      if ($WDdateMDY)
                          echo fixup_date($recordhightempmonth . "/" . $recordhightempday . "/" . $recordhightempyear);
                      else   
                          echo fixup_date($recordhightempday . "/" . $recordhightempmonth . "/" . $recordhightempyear);
                   ?>

and that now works. Interesting to note that it was only the high temperature that was affected and not the low or warmest coldest days and nights.

Rosalind

Hi,This fixed my All Time Record dates. I had to do the same with LOW records.

The UV image not showing up when  the reading is 0 was just the image name. It was UV0 instead of uv0

rgs

Ok, I will make this change in the next release of the script.  Hopefully this will help others too.  Thanks!

Scott
Title: Re: Alternative-Dashboard Version 6.03
Post by: Silversword on January 09, 2011, 03:32:11 PM
Hi Scott,

I got my moon phases working with your latest update.  Thank you for your time on this project.  Will take a look at my high/low trends as mentioned above and see what goes there.

Thanks again for all.

--Stan Y.
   Maui, Hawaii

Title: Re: Alternative-Dashboard Version 6.03
Post by: mava on January 09, 2011, 04:20:53 PM
Hi again :-)
I am almost finished translating the dahsboard but have a few questions.

Where can I find the info to translate current condition (next to the current cond image)?
Is it possible to translate the text for the Moon condition?

www.mavahome.com

rgs
Title: Re: Alternative-Dashboard Version 6.03
Post by: BurnsvilleWeather on January 09, 2011, 04:27:34 PM
Hi again :-)
I am almost finished translating the dahsboard but have a few questions.

Where can I find the info to translate current condition (next to the current cond image)?
Is it possible to translate the text for the Moon condition?

www.mavahome.com

rgs


I think you will have to manually translate the Moon Phase around line 2334 in the dashboard.  The other comes from WD itself and I'm not sure how you will be able to make that change, sorry.

Scott
Title: Re: Alternative-Dashboard Version 6.03
Post by: BurnsvilleWeather on January 09, 2011, 04:47:53 PM
UPDATE NOTICE:

I have updated alt-dashboard6 to include fixes for date display issues on the high/low temp history (last row of the display).  Some people were not happy with the way it displayed dates.  I also found a bug in which the daily low dew point could have a double degree indication.  I ahve also added an option to set both Lightning and Snow in the third row to false and it will display "Coming Soon" and a blank section for now.  I would like to put another option in there but so far the only suggestion I've been given is the USA extreme weather and I'm afraid that would be a bit limited for such a big area.  Any other ideas?

This is a very minor update that will effect very few so don't feel the need to update if you aren't having any issues as outlined above!  You can find the updated version 6.04 on my site in the scripts section or click here to download:

http://www.websterweatherlive.com/downloads/Alt-Dashboard604.zip

Thanks!  
 
  
 
Title: Re: Alternative-Dashboard Version 6.04
Post by: mava on January 10, 2011, 04:34:02 AM
Hi,
Just discovered strange reading in Current Solar Energy
Feels like: 28.5 Deg C

Not very likely when temp outside is 2 Deg C and Solar energy is 22 W  :-)

Is there a setting I have missed or somewhere in the script this can be corrected?

Scott : Moon phase translation didn't have any effect. Translated to Norwegian and still printed in English.
Title: Re: Alternative-Dashboard Version 6.04
Post by: BurnsvilleWeather on January 10, 2011, 06:42:24 AM
Hi,
Just discovered strange reading in Current Solar Energy
Feels like: 28.5 Deg C

Not very likely when temp outside is 2 Deg C and Solar energy is 22 W  :-)

Is there a setting I have missed or somewhere in the script this can be corrected?

Scott : Moon phase translation didn't have any effect. Translated to Norwegian and still printed in English.

I'll take a look at it tonight.  Did you translate in both the dashboard and the ajaxWDwx.js spots?

Scott
Title: Re: Alternative-Dashboard Version 6.04
Post by: stewart45 on January 10, 2011, 10:46:44 AM
I am getting wonky icons occasionally, is this a browser problem or something else, only seems to affect the forecast
Title: Re: Alternative-Dashboard Version 6.04
Post by: mava on January 10, 2011, 02:33:34 PM
Hi,
Just discovered strange reading in Current Solar Energy
Feels like: 28.5 Deg C

Not very likely when temp outside is 2 Deg C and Solar energy is 22 W  :-)

Is there a setting I have missed or somewhere in the script this can be corrected?

Scott : Moon phase translation didn't have any effect. Translated to Norwegian and still printed in English.

My mistake. The translation was in the lang-.js file.
Title: Re: Alternative-Dashboard Version 6.04
Post by: BurnsvilleWeather on January 10, 2011, 03:24:19 PM
I am getting wonky icons occasionally, is this a browser problem or something else, only seems to affect the forecast

I've seen that a couple times too.  I'll take a look at that and see if I can find a fix.

Scott
Title: Re: Alternative-Dashboard Version 6.04
Post by: stewart45 on January 10, 2011, 03:43:53 PM
Thanks Scott
Title: Re: Alternative-Dashboard Version 6.04
Post by: BfdWx on January 13, 2011, 11:36:20 AM
This will fix the icon problem, the style changes slightly.....

Code: [Select]
      <?php $doPrintNWS false;


$nIcons 3// set to number of icons desired
if ($nIcons count($forecasticons) ) {$nIcons count($forecasticons); }
?>



  <?php
    
for ($i=0;$i<$nIcons;$i++) {
      print 
"<td style=\"width: 11%;\" class=\"data1\"><span style=\"font-size: 8pt;\">$forecasticons[$i]</span></td>\n";
    }
  
?>

          </tr>
           <tr>
    <?php
    
for ($i=0;$i<$nIcons;$i++) {
     print 
"<td style=\"width: 11%;\" class=\"data1\">$forecasttemp[$i]</td>\n";
    }
    
?>

code]

You can see it in action on my home page...... http://stillweather.com
Title: Re: Alternative-Dashboard Version 6.04
Post by: stewart45 on January 13, 2011, 03:26:59 PM
Hi BfdWx
thanks for that, just 1 small prop, where do I put the code,my programming skills are very basic
Title: Re: Alternative-Dashboard Version 6.04
Post by: BfdWx on January 13, 2011, 03:47:23 PM
No problem;

Replace this...

Code: [Select]
<?php // end $useWU  ---------------------------------------- ?>
            </table>
              </td>
              <td valign="top" align="center" colspan="3">
              <table width="230" border="0" cellpadding="0" cellspacing="4">
            <tr>
                  <td align="center" style="text-align: center; font-size: 11px; border: 1px solid gray;" >
                      <?php echo $forecasticons[0]; ?><br/>
                      <?php echo $forecasttemp[0]; ?>
                 </td>
<td align="center" style="text-align: center; font-size: 11px; border: 1px solid gray;" >
                      <?php echo $forecasticons[1]; ?><br/>
                      <?php echo $forecasttemp[1]; ?>
                 </td>
<td align="center" style="text-align: center; font-size: 11px; border: 1px solid gray;" >
                      <?php echo $forecasticons[2]; ?><br/>
                      <?php echo $forecasttemp[2]; ?>
                 </td>
            </tr>

With this...

Code: [Select]
<?php // end $useWU  ---------------------------------------- ?>
            </table>
              </td>
              <td valign="top" align="center" colspan="3">
              <table width="100%" border="0" cellpadding="0" cellspacing="4">
           
            <tr valign ="top" align="center">
      <?php $doPrintNWS false;


$nIcons 3// set to number of icons desired
if ($nIcons count($forecasticons) ) {$nIcons count($forecasticons); }
?>



  <?php
    
for ($i=0;$i<$nIcons;$i++) {
      print 
"<td style=\"width: 11%;\" class=\"data1\"><span style=\"font-size: 8pt;\">$forecasticons[$i]</span></td>\n";
    }
  
?>

          </tr>
           <tr>
    <?php
    
for ($i=0;$i<$nIcons;$i++) {
     print 
"<td style=\"width: 11%;\" class=\"data1\">$forecasttemp[$i]</td>\n";
    }
    
?>

            </tr>

Be sure to pay attention to the edit locations and save a copy in case you do not like the change.
Title: Re: Alternative-Dashboard Version 6.04
Post by: stewart45 on January 15, 2011, 12:10:49 PM
Getting there, spacing needs a little fine tuning. will have a play later
Thanks
Title: Re: Alternative-Dashboard Version 6.05
Post by: BurnsvilleWeather on January 15, 2011, 11:29:19 PM
UPDATE NOTICE:

I have updated alt-dashboard6 and ajaxWDwx.js to include fixes for the moon phase again.  Thanks to Ken's new moon phase code generator for the updated code by (Ken True, Saratoga-weather.org (http://Saratoga-weather.org)).  Have also modifed the ajaxWDwx.js to be up-to-date with Rainer's 9.13 release but with my additions for version 6.  The new file is now known as 3.03, a bit confusing but... (Rainer, www.bashewa.com (http://www.bashewa.com))

This is a very minor update that will effect very few so don't feel the need to update if you aren't having any issues as outlined above!  You can find the updated version 6.06 on my site in the scripts section or click here to download:

http://www.websterweatherlive.com/downloads/Alt-Dashboard606.zip (http://www.websterweatherlive.com/downloads/Alt-Dashboard606.zip)

Thanks!
Title: Re: Alternative-Dashboard Version 6.06
Post by: Silversword on January 17, 2011, 12:43:39 AM
Hi Scott,

Thanks for the updates and all the fixes.  I have version 6.06 up and running and it seems to be doing well.

Another possible fix in your next update in the AQI area when there is NO DATA available a generic icon is displayed.

A possible edit by John Gillett in this line from:

echo "<span style=\"font-size: 85%; \">Data Not<br />Available</span>";

To:

echo "<span style=\"font-size: 85%; \">Data Not<br />Available</ span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";

This will utilize the AQI0.jpg image in the ajax-images folder when the NO DATA Available from AQI...

Again thanks for all the work in this project.

--Stan Y.
   Maui, Hawaii
 
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 17, 2011, 07:45:16 AM
Another possible fix in your next update in the AQI area when there is NO DATA available a generic icon is displayed.

A possible edit by John Gillett in this line from:

echo "<span style=\"font-size: 85%; \">Data Not<br />Available</span>";

To:

echo "<span style=\"font-size: 85%; \">Data Not<br />Available</ span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";

This will utilize the AQI0.jpg image in the ajax-images folder when the NO DATA Available from AQI...

I thought I had made that change for this version, guess I forgot to save the change!   #-o
I'll make sure I get it in the next update.

Scott
Title: Re: Alternative-Dashboard Version 6.04
Post by: mava on January 17, 2011, 08:15:17 AM
Hi,
Just discovered strange reading in Current Solar Energy
Feels like: 28.5 Deg C

Not very likely when temp outside is 2 Deg C and Solar energy is 22 W  :-)

Is there a setting I have missed or somewhere in the script this can be corrected?

Scott : Moon phase translation didn't have any effect. Translated to Norwegian and still printed in English.

I'll take a look at it tonight.  Did you translate in both the dashboard and the ajaxWDwx.js spots?

Scott


Hi,
Just wanted to let you know that when I changed apparentsolartemperaturef to c the Dashboard changed from Deg F to Deg C.
Could there be something wrong with the script since it doesn't do this change automatically?
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 17, 2011, 12:44:35 PM
Hey Scott,

Another small problem, this time in WDwx v3.03.

As supplied, under Lightning Strikes/Last Distance, the value displayed is out to 10 decimal places or so. The problem is around line 2081...

lighteningdistance = parseFloat(clientraw[118]).convertDist();
set_ajax_obs("ajaxlightningdist",lighteningdistance +' '+ uom.Dist);

Change to...

lighteningdistance = parseFloat(clientraw[118]).convertDist();
set_ajax_obs("ajaxlightningdist",lighteningdistance .toFixed(dp.Dist) +' '+ uom.Dist);

This will display the distance to 2 decimal places and prevent the dashboard from running off the right side of the page.

Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 17, 2011, 06:50:55 PM
As supplied, under Lightning Strikes/Last Distance, the value displayed is out to 10 decimal places or so. The problem is around line 2081...

lighteningdistance = parseFloat(clientraw[118]).convertDist();
set_ajax_obs("ajaxlightningdist",lighteningdistance +' '+ uom.Dist);

Change to...

lighteningdistance = parseFloat(clientraw[118]).convertDist();
set_ajax_obs("ajaxlightningdist",lighteningdistance .toFixed(dp.Dist) +' '+ uom.Dist);

This will display the distance to 2 decimal places and prevent the dashboard from running off the right side of the page.



Dang, I had that in there.  I must be going bonkers and forgetting to save.  It's back in there.  I will update the archive.

Scott
Title: Re: Alternative-Dashboard Version 6.04
Post by: BurnsvilleWeather on January 17, 2011, 07:02:19 PM
Hi,
Just wanted to let you know that when I changed apparentsolartemperaturef to c the Dashboard changed from Deg F to Deg C.
Could there be something wrong with the script since it doesn't do this change automatically?

I just played around with it a bit here and am not able to get the same results, it remains F no matter what here.

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 17, 2011, 08:01:35 PM
Dang, I had that in there.  I must be going bonkers and forgetting to save.  It's back in there.  I will update the archive.

Scott
Heh - thought I was the only one around here with ARS (Age Related Syndrome)...   :roll:
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 17, 2011, 09:24:31 PM
Dang, I had that in there.  I must be going bonkers and forgetting to save.  It's back in there.  I will update the archive.

Scott
Heh - thought I was the only one around here with ARS (Age Related Syndrome)...   :roll:

Mine is just stupidity!  (ok, age too!)
Title: Re: Alternative-Dashboard Version 6.06
Post by: ed2kayak on January 17, 2011, 09:53:46 PM
Just updated to Version 6.06 16-Jan-2011. When I click on the click here for full forecast, it links to wxsimforecast.php, which I'm not using.
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 17, 2011, 09:55:26 PM
Mine is just stupidity!  (ok, age too!)
Naw. Just fittin' in with the crowd...   :grin:
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 17, 2011, 09:58:29 PM
Just updated to Version 6.06 16-Jan-2011. When I click on the click here for full forecast, it links to wxsimforecast.php, which I'm not using.
Neither am I. You can change that link around line 549 or so.
Title: Re: Alternative-Dashboard Version 6.06
Post by: ed2kayak on January 17, 2011, 10:07:19 PM
Yes I did that. Wasn't sure if that was the correct way to handle it. Thanks
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 17, 2011, 10:34:15 PM
Yes I did that. Wasn't sure if that was the correct way to handle it. Thanks
My pleasure. That'll be $.25, please...
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 19, 2011, 11:56:46 PM
Hi Scott,

First off I want to thank you for the great script.  I recently switched my home weather station and site to Weather Display so I could take advantage of some of the great scripts that are being passed around.  I have your Alt-Dashboard up and running and has been running fine.  The last week or so when the temp has gone below 10 deg f, I have noticed that the snow icon switches to the rain icon and occasional the record high icon would appear.  The rest of the data seems to be fine as there is no temperature spikes that I can find nor is there anything displayed.  My home web site is at http://depereweather.com if you mind taking a look at it.  This evening it is below 10 deg and it is showing the problem. Any help would be appreciated.

Thanks
Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 20, 2011, 07:43:46 AM
Hi Scott,

First off I want to thank you for the great script.  I recently switched my home weather station and site to Weather Display so I could take advantage of some of the great scripts that are being passed around.  I have your Alt-Dashboard up and running and has been running fine.  The last week or so when the temp has gone below 10 deg f, I have noticed that the snow icon switches to the rain icon and occasional the record high icon would appear.  The rest of the data seems to be fine as there is no temperature spikes that I can find nor is there anything displayed.  My home web site is at http://depereweather.com if you mind taking a look at it.  This evening it is below 10 deg and it is showing the problem. Any help would be appreciated.

Thanks
Steve

I looked this morning and everything seems to be fine (it shows 2.5F), I'll keep checking back in tonight when it's supposed to be even colder and see if I can see anything.  If you can caputure your Testtags.php file when you see the problem that will help figure out the problem.  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 20, 2011, 12:13:39 PM
Hi Scott,

Thanks for taking the time to help!  I have attached a screen shot and the testtags.php file from when it was failed.


Thanks,

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 20, 2011, 08:08:18 PM
Thanks for taking the time to help!  I have attached a screen shot and the testtags.php file from when it was failed.

I'm looking at it now, I see it happening.  In your config file for the dashboard, what do you have $Freezing set to?

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 20, 2011, 08:18:41 PM
Both $freezing and $showSnowTemp are set at 33.

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 20, 2011, 09:04:20 PM
Both $freezing and $showSnowTemp are set at 33.

Steve

Crazy, looking at the $Temperature tag, it is way less then 33 so it should be showing the right image..  It's not something I'm seeing on other sites either.  What version of PHP?

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 20, 2011, 09:21:36 PM
Yes it is crazy.  PHP is ver 5.  Just noticed that the dash changed back to being correct after the temp went bellow 4 deg.  As the temp cooled this evening it changed to the incorrect display when it went below 10.

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 20, 2011, 09:25:19 PM
Yes it is crazy.  PHP is ver 5.  Just noticed that the dash changed back to being correct after the temp went bellow 4 deg.  As the temp cooled this evening it changed to the incorrect display when it went below 10.

Steve

Yup, I was watching mine all afternoon, it dropped from 6F to now -10F and the snow image has been rock solid with the same settings as you have all afternoon and evening.  I'll keep looking and see if I can see anything though.  Can you send me a copy of your ajax-dashboard6.php and config.  I'll see if there is anything screwed up there... thats about all I can think of.

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 20, 2011, 09:53:48 PM
Thanks Scott.  I have attached my config files.  Do you also want the dashboard?

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 21, 2011, 07:08:25 AM
Thanks Scott.  I have attached my config files.  Do you also want the dashboard?

Steve
Yes if you can, that will help me check for an error.  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 21, 2011, 11:33:28 AM
Here is my dash.

Thanks,

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 21, 2011, 07:01:22 PM
Thanks Scott.  I have attached my config files.  Do you also want the dashboard?
Yes if you can, that will help me check for an error.  Thanks
Steve,

I've looked all through the code (compared it to the original) and there is nothing missing or different other then setting for your station.  I can't figure out why it would change that image on it's own.  Your TestTags show that the temperature is below freezing (the 33F) and that is the logic it uses to set the image.  There is no logical reason for the rain icon to show when it's below 33F.  Sorry to say but I don't know of any other place to look.  We've checked all the files, PHP version and java should have nothing to do with the freezing or temperature tag so that counts that out too.  There is nothing else involved.  Do it happen on a browser other then IE?

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 21, 2011, 09:47:17 PM
Hi Scott,
Well, glade to know that it wasn't an easy error on my part. :lol:.  I have been through all the files and the data several times and can not find anything.I have watched it and seems that when the temp dips bellow 10 deg and then rises above 4 degs, the problem exists.  Also have noticed now today that when the temp went below 10 the record high temp icon appeared then this morning when the temp went above 4 the record low appeared.  Maybe that is a clue?  I will sit down this evening and see if I can do some more looking.  Thanks for your time!

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: ed2kayak on January 22, 2011, 06:45:07 AM
I have the rain icon also.  First time I've seen it.
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 09:34:08 AM
I have the rain icon also.  First time I've seen it.

Ok, I think I know maybe what is happening.  Are you just hitting refresh from a time when it was warmer?  For example, was it 34 when the page was last refreshed, the page was then left paused for a long time and when you hit refresh the temperature was below 33F?

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 22, 2011, 09:47:41 AM
Ok, it's just not me then.  Scott, I have installed Firefox on here also for checking and it still shows the same.  I have also refreshed the cache's with the same results.  I have also checked to make sure that PHP V5 was in place and it was. One thing I will put out there to see if there is anything that is common between the two of us is that I host my site thru Godaddy.

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 11:09:12 AM
Ok, it's just not me then.  Scott, I have installed Firefox on here also for checking and it still shows the same.  I have also refreshed the cache's with the same results.  I have also checked to make sure that PHP V5 was in place and it was. One thing I will put out there to see if there is anything that is common between the two of us is that I host my site thru Godaddy.

Steve

I doubt it could be that but nothing seems to make any sense.  If the correct temperature is showing, its just a simple calculation that causes the image to show one or the other... if temp > 33 then show rain, if not, then snow!  I just don't get it!  I'm going to try making a change to the code and see if that helps.

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 11:15:48 AM
Ok, it's just not me then.  Scott, I have installed Firefox on here also for checking and it still shows the same.  I have also refreshed the cache's with the same results.  I have also checked to make sure that PHP V5 was in place and it was. One thing I will put out there to see if there is anything that is common between the two of us is that I host my site thru Godaddy.

Steve

One more thing to look at, when it is showing wrong, in the rain section does it say Snow Melt or Rain?

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 11:27:56 AM
Ok, anyone that wants to help with the image problem for the rain/snow image....

If you add the line beginning with <br/> to the end of the section around line 504 that is putting out the rain or snow measurement as shown below:  Put the same <br/>... line at the end of the snowtoday and dayrain sections there.  It will then display what the code things is the temp and Freezing values so we can see if somehow those are getting screwed up somehow. 


Code: [Select]
                          <?php printf"%8.2f",$snowtoday); echo $uomRain?></span>
                          <br/><?php echo $temperature " " $Freezing?>

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ed2kayak on January 22, 2011, 12:04:23 PM
Scott,
I just tried that. Is it correct? http://cvweather.org/index.php
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 01:41:00 PM
Scott,
I just tried that. Is it correct? http://cvweather.org/index.php

Yes, that should tell us now what it was reading when it errors.  If you can catch a screen shot of it when it displays wrong or just look at those two values.

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 01:42:54 PM
Scott,
I just tried that. Is it correct? http://cvweather.org/index.php

I think I may know what is causing the issue too... is everyone that is having the problem have the setting for WD set to include the unit of measure?  I notice yours shows the degree F and mine does not.  That may be the key.

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: mayo9999 on January 22, 2011, 01:50:41 PM
Ok, anyone that wants to help with the image problem for the rain/snow image....

Sorry Scott unable to help with troubleshooting this as I'm in what is suppose to be in warm FL (only going to be in the low 60's today)  :-)

I noticed on your site a -25 degrees yesterday.  I guess that's why you have been coding so much recently  :lol:

Thanks for the great new script, and your effort in getting things updated as quickly as you have been doing.
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 02:23:42 PM
Ok, anyone that wants to help with the image problem for the rain/snow image....

Sorry Scott unable to help with troubleshooting this as I'm in what is suppose to be in warm FL (only going to be in the low 60's today)  :-)

I noticed on your site a -25 degrees yesterday.  I guess that's why you have been coding so much recently  :lol:

Thanks for the great new script, and your effort in getting things updated as quickly as you have been doing.

Yeah, have to keep the fingers working or they get frost bite!  Thanks!

Scott
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 22, 2011, 03:22:37 PM
Hi Scott,

Sorry for the delay.  I had to run up to my cabin north of here to resupply the pellet stove for the week.  I have made your requested changes to my dash and will see what happens.  It's above 10 right now but will be cooling later in the day.  As for the settings in WD, where would I look for that setting?  I looked for it but could not come up with it.

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: jgillett on January 22, 2011, 04:05:02 PM
Ok, anyone that wants to help with the image problem for the rain/snow image....
I would, but given the temps in Phoenix there's no way we're gonna hit what is needed to work this.

Sorry.
Title: Re: Alternative-Dashboard Version 6.06
Post by: ke9lz on January 22, 2011, 06:08:45 PM
Hi Scott,

is everyone that is having the problem have the setting for WD set to include the unit of measure?

That was it!  I watched it change from the snow icon to the rain then found the place in WD for the setting, unticked it and let it update.  The icon changed over to snow after the update.  For anyone setting up the testtags.txt, make sure the Include units in replaced tags is unticked.  I am not sure if it defaults ticked but mine was and it seems to have fixed this problem.  I will watch to make sure but feel confidant that it's fixed!  Thanks Scott for all the help and for the great dashboard!

Steve
Title: Re: Alternative-Dashboard Version 6.06
Post by: BurnsvilleWeather on January 22, 2011, 08:50:35 PM
Hi Scott,

is everyone that is having the problem have the setting for WD set to include the unit of measure?

That was it!  I watched it change from the snow icon to the rain then found the place in WD for the setting, unticked it and let it update.  The icon changed over to snow after the update.  For anyone setting up the testtags.txt, make sure the Include units in replaced tags is unticked.  I am not sure if it defaults ticked but mine was and it seems to have fixed this problem.  I will watch to make sure but feel confidant that it's fixed!  Thanks Scott for all the help and for the great dashboard!

Steve

Good to hear, I will add a strip_units to all those spots to fix it in the future!  That explains several past unexplained things too.  Strange it only happens sometimes though!  Thanks for all the help everyone gave me here on finding this problem!!  Thanks Steve!

Scott

PS: Watch for the fixed version soon.
Title: Re: Alternative-Dashboard Version 6.06
Post by: ed2kayak on January 22, 2011, 08:50:56 PM
Confirmed, same here. As soon as I dropped below 10 degrees.

That was it!  I watched it change from the snow icon to the rain then found the place in WD for the setting, unticked it and let it update.  hboard!
Steve
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 22, 2011, 09:31:35 PM
UPDATE NOTICE:

I have updated alt-dashboard6 and ajaxWDwx.js to include fixes for AQI image not showing when no reading was downloaded.  Also fixed a very hard to find bug if you Units of Measure still turned on on your tags, it caused random issues with some of the if-then logic in the script.  That allowed the rain icon to show when the temperature to show when it was below freezing and the New Record High/Low to show if no record had been reached.  That last one (record high/low) has been an issue since I first wrote that into the script over two years ago!

Have also modifed the ajaxWDwx.js yet again to fix the UV colored word issue again. The new file is now known as 3.04, a bit confusing but... (Rainer, www.bashewa.com)

This is a very minor update that will effect very few so don't feel the need to update if you aren't having any issues as outlined above!  You can find the updated version 6.07 on my site in the scripts section or click here to download:

http://www.websterweatherlive.com/downloads/Alt-Dashboard607.zip (http://www.websterweatherlive.com/downloads/Alt-Dashboard607.zip)
Thanks!
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 22, 2011, 09:32:44 PM
Scott,

That setting was something that Maui Stan found long ago, except it had to do with updating Twitter. It also was causing the double F problem in the Station All Time Records area.

Sneaky little tick...
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 22, 2011, 09:38:39 PM
I am getting the following error. What did I do wrong. Please advise.

Fatal error: Call to undefined function langtransstr() in /homepages/6/d330860172/htdocs/ajax-dashboard.php on line 335
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 22, 2011, 09:40:22 PM
I am getting the following error. What did I do wrong. Please advise.

Fatal error: Call to undefined function langtransstr() in /homepages/6/d330860172/htdocs/ajax-dashboard.php on line 335


Did you uncomment out the language functions at the bottom of the script??  (See last few lines of script for instructions)

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 22, 2011, 09:40:33 PM
I am getting the following error. What did I do wrong. Please advise.

Fatal error: Call to undefined function langtransstr() in /homepages/6/d330860172/htdocs/ajax-dashboard.php on line 335
At the end of the script two functions are commented out. As instructed there, remove the comments from those functions.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 22, 2011, 09:41:20 PM
Scott,

That setting was something that Maui Stan found long ago, except it had to do with updating Twitter. It also was causing the double F problem in the Station All Time Records area.

Sneaky little tick...

Yeah, I can see it causing problems with actual readings but it never caused a problem in a IF-THEN statement before.  That was really weird!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 10:59:36 AM
Thanks that worked. Now I need help to figure out why no moon icon and no cloud height icon. My website link is http://lebanontnwx.org/wxindex.php

Also where do I go in WD to enter my snow amounts and get that to the web. Yes it snows in middle TN.

Is there anything else you can see from my page that I am missing. Please advise. Thanks.

I appreciate the help. When comes to scripts etc. I very much a newbie and need the help.

I really like this new dashboard. GREAT JOB!
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 11:12:35 AM
One other matter how do I direct the link for full forecast to the NWS full forecast instead of the WXsim forecast. Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: ed2kayak on January 23, 2011, 11:23:56 AM
WD, The top of main screen: input daily weather.
Make the forecast changes around line 553
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 23, 2011, 11:40:04 AM
One other matter how do I direct the link for full forecast to the NWS full forecast instead of the WXsim forecast. Thanks.
Around line 549 in the script you will find the link to wxsimforecast.php. Just change that to the forecast you want. In my case, it simply became wxforecast.php. I also changed my wording a little...

Code: [Select]
<td align="center" colspan="3">
<strong><a href="wxforecast.php">Local Extended Forecast</a></strong><br />
</td>
Title: Re: Alternative-Dashboard Version 6.07
Post by: klamort on January 23, 2011, 11:51:39 AM
Hi,

My English is a little poor, so stay with me...

I installed a weather internet station this weekend... and the  script 6.07...
Great Job... I really do like it, I still am having some work to do on the internet station, but it is getting there.

I am having small problem... when displaying the 6.07 script... it is by default in "IMPERIAL" mode... is there a way it can be set for metric by default?

Thanks... you can see what I mean here: http://www.voyage-moto.be/?page_id=1156

Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 23, 2011, 12:52:02 PM
Hi Scott. I'm tinkering with 6.07 ad have a question.

My snow data January Avg. shows up in mm. Did I miss
something in the setup to get it to inches?

http://www.cnyweather.com/indextest.php
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 12:58:27 PM
Hi Scott. I'm tinkering with 6.07 ad have a question.

My snow data January Avg. shows up in mm. Did I miss
something in the setup to get it to inches?

http://www.cnyweather.com/indextest.php

Looks good when I view it.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 23, 2011, 01:00:58 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 01:05:32 PM
I installed a weather internet station this weekend... and the  script 6.07...
Great Job... I really do like it, I still am having some work to do on the internet station, but it is getting there.
I am having small problem... when displaying the 6.07 script... it is by default in "IMPERIAL" mode... is there a way it can be set for metric by default?
Thanks... you can see what I mean here: http://www.voyage-moto.be/?page_id=1156

In the file ajaxWDwx-settings.js file, about line 21 you will find:

Code: [Select]
useUOM  = 'E';
Change that to M and that should default it as you want!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 01:09:14 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.

You may want to verify your snow setting in WD then.  I'm not sure why it would be in mm as by default it is stored in cm and then converted to in.  I double checked mine, it is right on with what WD says is my average.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 01:59:57 PM
Thank you. Forecast now refering to NWS and I have the snowfall in. Why does WD make a 9.7 entry as 9.69 and 5.3 as 5.31. Any input?

Now where do I get the NH moon icons and where do I get the cloudbase.php.

Again thanks for all the help.
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 23, 2011, 02:25:35 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.

You may want to verify your snow setting in WD then.  I'm not sure why it would be in mm as by default it is stored in cm and then converted to in.  I double checked mine, it is right on with what WD says is my average.

Scott


I'm stumped. Do your testtags show in mm Scott?
Code: [Select]
$avsnowjan = '52.4'; // Average snow for january from your inputted snow data (mm)
$avsnowfeb = '35.0'; // Average snow for feb from your inputted snow data (mm)
$avsnowmar = '0.0'; // Average snow for mar from your inputted snow data (mm)
$avsnowapr = '0.5'; // Average snow for apr from your inputted snow data (mm)
$avsnowmay = '0.0'; // Average snow for may from your inputted snow data (mm)
$avsnowjun = '0.0'; // Average snow for jun from your inputted snow data (mm)
$avsnowjul = '0.0'; // Average snow for jul from your inputted snow data (mm)
$avsnowaug = '0.0'; // Average snow for aug from your inputted snow data (mm)
$avsnowsep = '0.0'; // Average snow for sep from your inputted snow data (mm)
$avsnowoct = '1.3'; // Average snow for oct from your inputted snow data (mm)
$avsnownov = '3.7'; // Average snow for nov from your inputted snow data (mm)
$avsnowdec = '39.5'; // Average snow for dec from your inputted snow data (mm)

$nowsnowjan = '95.2'; //95.2................snow for january from your inputted snow data (mm)
$nowsnowfeb = '97.6'; //97.6................snow for feb from your inputted snow data (mm)
$nowsnowmar = '0.0'; //0.0................snow for mar from your inputted snow data (mm)
$nowsnowapr = '0.0'; //0.0................snow for apr from your inputted snow data (mm)
$nowsnowmay = '0.0'; //0.0................snow for may from your inputted snow data (mm)
$nowsnowjun = '0.0'; //0.0................snow for jun from your inputted snow data (mm)
$nowsnowjul = '0.0'; //0.0................snow for jul from your inputted snow data (mm)
$nowsnowaug = '0.0'; //0.0................snow for aug from your inputted snow data (mm)
$nowsnowsep = '0.0'; //0.0................snow for sep from your inputted snow data (mm)
$nowsnowoct = '0.0'; //0.0................snow for oct from your inputted snow data (mm)
$nowsnownov = '1.0'; //1.0................snow for nov from your inputted snow data (mm)
$nowsnowdec = '57.4'; //57.4................snow for dec from your inputted snow data (mm)
Title: Re: Alternative-Dashboard Version 6.07
Post by: klamort on January 23, 2011, 02:28:15 PM

In the file ajaxWDwx-settings.js file, about line 21 you will find:

Code: [Select]
useUOM  = 'E';
Change that to M and that should default it as you want!

Scott


Thanks you very much... It is solved now...

Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 02:31:46 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.

You may want to verify your snow setting in WD then.  I'm not sure why it would be in mm as by default it is stored in cm and then converted to in.  I double checked mine, it is right on with what WD says is my average.

Scott


I'm stumped. Do your testtags show in mm Scott?
Code: [Select]
$avsnowjan = '52.4'; // Average snow for january from your inputted snow data (mm)
$avsnowfeb = '35.0'; // Average snow for feb from your inputted snow data (mm)
$avsnowmar = '0.0'; // Average snow for mar from your inputted snow data (mm)
$avsnowapr = '0.5'; // Average snow for apr from your inputted snow data (mm)
$avsnowmay = '0.0'; // Average snow for may from your inputted snow data (mm)
$avsnowjun = '0.0'; // Average snow for jun from your inputted snow data (mm)
$avsnowjul = '0.0'; // Average snow for jul from your inputted snow data (mm)
$avsnowaug = '0.0'; // Average snow for aug from your inputted snow data (mm)
$avsnowsep = '0.0'; // Average snow for sep from your inputted snow data (mm)
$avsnowoct = '1.3'; // Average snow for oct from your inputted snow data (mm)
$avsnownov = '3.7'; // Average snow for nov from your inputted snow data (mm)
$avsnowdec = '39.5'; // Average snow for dec from your inputted snow data (mm)

$nowsnowjan = '95.2'; //95.2................snow for january from your inputted snow data (mm)
$nowsnowfeb = '97.6'; //97.6................snow for feb from your inputted snow data (mm)
$nowsnowmar = '0.0'; //0.0................snow for mar from your inputted snow data (mm)
$nowsnowapr = '0.0'; //0.0................snow for apr from your inputted snow data (mm)
$nowsnowmay = '0.0'; //0.0................snow for may from your inputted snow data (mm)
$nowsnowjun = '0.0'; //0.0................snow for jun from your inputted snow data (mm)
$nowsnowjul = '0.0'; //0.0................snow for jul from your inputted snow data (mm)
$nowsnowaug = '0.0'; //0.0................snow for aug from your inputted snow data (mm)
$nowsnowsep = '0.0'; //0.0................snow for sep from your inputted snow data (mm)
$nowsnowoct = '0.0'; //0.0................snow for oct from your inputted snow data (mm)
$nowsnownov = '1.0'; //1.0................snow for nov from your inputted snow data (mm)
$nowsnowdec = '57.4'; //57.4................snow for dec from your inputted snow data (mm)


Mine show:

Code: [Select]
$avsnowjan = '13.5'; //Average snow for jan from your inputted snow data (cm)
$avsnowfeb = '25.7'; //Average snow for feb from your inputted snow data (cm)
$avsnowmar = '0.4'; //Average snow for mar from your inputted snow data (cm)
$avsnowapr = '2.1'; //Average snow for apr from your inputted snow data (cm)
$avsnowmay = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjun = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjul = '0.0'; //Average snow for jul from your inputted snow data (cm)
$avsnowaug = '0.0'; //Average snow for aug from your inputted snow data (cm)
$avsnowsep = '0.0'; //Average snow for sep from your inputted snow data (cm)
$avsnowoct = '1.6'; //Average snow for oct from your inputted snow data (cm)
$avsnownov = '9.2'; //Average snow for nov from your inputted snow data (cm)
$avsnowdec = '55.7'; //Average snow for dec from your inputted snow data (cm)
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 02:32:26 PM
Thank you. Forecast now referring to NWS and I have the snowfall in. Why does WD make a 9.7 entry as 9.69 and 5.3 as 5.31. Any input?

Now where do I get the NH moon icons and where do I get the cloudbase.php. Also notice my solar summary is blank and it is only showing the high UV today and not the current which 1.2. Please assist. Thanks.

Again thanks for all the help.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 02:39:07 PM
Thank you. Forecast now refering to NWS and I have the snowfall in. Why does WD make a 9.7 entry as 9.69 and 5.3 as 5.31. Any input?

Now where do I get the NH moon icons and where do I get the cloudbase.php.

Again thanks for all the help.

It is a rounding problem changing from metric to english.  The cloud height graphic is found here:

http://www.bashewa.com/download-cloud-base.php (http://www.bashewa.com/download-cloud-base.php)

The icon sets are here:

http://www.bashewa.com/downloads/bws-iconsets.zip (http://www.bashewa.com/downloads/bws-iconsets.zip)

Scott

Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 02:41:19 PM
Also notice my solar summary is blank and it is only showing the high UV today and not the current which 1.2. Please assist. Thanks.

Again thanks for all the help.

If the solar and UV are not fuctioning as desired it is usually because you are missing some of the added testtags.  Make sure you have properly added in the new test tags to the testtags.txt file in the c:\wdisplay directory.  Check the instructions for how to do it if using Win7.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 23, 2011, 02:59:17 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.

You may want to verify your snow setting in WD then.  I'm not sure why it would be in mm as by default it is stored in cm and then converted to in.  I double checked mine, it is right on with what WD says is my average.

Scott


I'm stumped. Do your testtags show in mm Scott?
Code: [Select]
$avsnowjan = '52.4'; // Average snow for january from your inputted snow data (mm)
$avsnowfeb = '35.0'; // Average snow for feb from your inputted snow data (mm)
$avsnowmar = '0.0'; // Average snow for mar from your inputted snow data (mm)
$avsnowapr = '0.5'; // Average snow for apr from your inputted snow data (mm)
$avsnowmay = '0.0'; // Average snow for may from your inputted snow data (mm)
$avsnowjun = '0.0'; // Average snow for jun from your inputted snow data (mm)
$avsnowjul = '0.0'; // Average snow for jul from your inputted snow data (mm)
$avsnowaug = '0.0'; // Average snow for aug from your inputted snow data (mm)
$avsnowsep = '0.0'; // Average snow for sep from your inputted snow data (mm)
$avsnowoct = '1.3'; // Average snow for oct from your inputted snow data (mm)
$avsnownov = '3.7'; // Average snow for nov from your inputted snow data (mm)
$avsnowdec = '39.5'; // Average snow for dec from your inputted snow data (mm)

$nowsnowjan = '95.2'; //95.2................snow for january from your inputted snow data (mm)
$nowsnowfeb = '97.6'; //97.6................snow for feb from your inputted snow data (mm)
$nowsnowmar = '0.0'; //0.0................snow for mar from your inputted snow data (mm)
$nowsnowapr = '0.0'; //0.0................snow for apr from your inputted snow data (mm)
$nowsnowmay = '0.0'; //0.0................snow for may from your inputted snow data (mm)
$nowsnowjun = '0.0'; //0.0................snow for jun from your inputted snow data (mm)
$nowsnowjul = '0.0'; //0.0................snow for jul from your inputted snow data (mm)
$nowsnowaug = '0.0'; //0.0................snow for aug from your inputted snow data (mm)
$nowsnowsep = '0.0'; //0.0................snow for sep from your inputted snow data (mm)
$nowsnowoct = '0.0'; //0.0................snow for oct from your inputted snow data (mm)
$nowsnownov = '1.0'; //1.0................snow for nov from your inputted snow data (mm)
$nowsnowdec = '57.4'; //57.4................snow for dec from your inputted snow data (mm)


Mine show:

Code: [Select]
$avsnowjan = '13.5'; //Average snow for jan from your inputted snow data (cm)
$avsnowfeb = '25.7'; //Average snow for feb from your inputted snow data (cm)
$avsnowmar = '0.4'; //Average snow for mar from your inputted snow data (cm)
$avsnowapr = '2.1'; //Average snow for apr from your inputted snow data (cm)
$avsnowmay = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjun = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjul = '0.0'; //Average snow for jul from your inputted snow data (cm)
$avsnowaug = '0.0'; //Average snow for aug from your inputted snow data (cm)
$avsnowsep = '0.0'; //Average snow for sep from your inputted snow data (cm)
$avsnowoct = '1.6'; //Average snow for oct from your inputted snow data (cm)
$avsnownov = '9.2'; //Average snow for nov from your inputted snow data (cm)
$avsnowdec = '55.7'; //Average snow for dec from your inputted snow data (cm)

Any idea why mine shows mm and yours cm? Looked everywhere and have no idea why.
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 03:03:30 PM
High updated the testtags.txt and still the same only high for UV and forecast for next two days. Solar Summary blank. I got the cloud.php and will work that next as for the icons the link you gave keeps timing out. Anyother suggestions. Again thanks for the help and great work on your part.
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 03:16:20 PM
Sorry guess I did not allow time for website to update I have the solar and UV working correctly now. Still waiting on the icon download only 5% in last 15 minutes. Once I have the icons will the cloudbase php work?
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 03:41:24 PM
The link for the icons keeps getting reset. It is extremely slow. Any other source for the icons?
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 23, 2011, 03:51:27 PM
I was able to get them. I put them up for you

http://cnyweather.com/scripts/bws-iconsets.zip
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 04:17:47 PM
Thanks Tony, I now have the zip file. Not sure why it was resetting at the other website. Thanks again.
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 04:30:09 PM
One last item I loaded the cloudbase.php to my root directory on the web. I still canot get it to display on the main page. Help. Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 06:56:25 PM
One last item I loaded the cloudbase.php to my root directory on the web. I still canot get it to display on the main page. Help. Thanks.

Did you make sure you configured the options in the beginning of the script?  IE:  The correct path to your files?

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 06:58:22 PM
Any idea why mine shows mm and yours cm? Looked everywhere and have no idea why.

I think it is a setting in WD if I remember right.  Not sure where though, I will do some looking.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 08:31:49 PM
The icons from the icon set include current, fire,forecast, moon, moonpahse, UV, and wind. From the program it says you need background, cloud, windsock & scale images. The file I downloaded was cloudbase.php update. Is there anther file I should have downloaded?
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on January 23, 2011, 08:47:13 PM
Answered my own question. Saw that I did not download the full script on the update. Have fixed now. Working fine. Sorry for all the questions. Thank you everyone for your help.
Title: Re: Alternative-Dashboard Version 6.07
Post by: Silversword on January 23, 2011, 10:00:51 PM
Hi Scott,

Thanks for the recent upgrade.  Looks like most of the fixes are working.  Although, some fixes were minor and I don't have freezing temps here so far, those fixes are welcome for those that have that changes is temps.

Thanks for all the support that you have provided.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 23, 2011, 10:09:58 PM
Hi Scott,

Thanks for the recent upgrade.  Looks like most of the fixes are working.  Although, some fixes were minor and I don't have freezing temps here so far, those fixes are welcome for those that have that changes is temps.

Thanks for all the support that you have provided.

--Stan Y.
   Maui, Hawaii


Thanks Stan, most appreciated.  I know you have helped with bugs too, it really takes time to find some of them and everyone's help is always appreciated! 

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 24, 2011, 04:03:24 AM
Hi Scott,

Haven't gotten to v6.07 yet, but I did find a problem in v6.06 that may have been carried over (this was not in previous versions).

Around line 1326 is...
Code: [Select]
echo "<span style=\"font-size: 85%; \">Data Not<br />Available</ span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";There are two spaces in there that shouldn't be - actually one is more personal formatting, but the other causes a validation failure.

1. Not a biggie - the space between 85% and the \ can come out (just a code formatting thing).

2. After Available you have </ span>. That should be </span> (no space). This one causes the validation failure.

So the final code would be...
Code: [Select]
echo "<span style=\"font-size: 85%;\">Data Not<br />Available</span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";
You told me to keep finding stuff...   :roll:
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 24, 2011, 07:45:27 AM
Hi Scott,

Haven't gotten to v6.07 yet, but I did find a problem in v6.06 that may have been carried over (this was not in previous versions).

Around line 1326 is...
Code: [Select]
echo "<span style=\"font-size: 85%; \">Data Not<br />Available</ span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";There are two spaces in there that shouldn't be - actually one is more personal formatting, but the other causes a validation failure.

1. Not a biggie - the space between 85% and the \ can come out (just a code formatting thing).

2. After Available you have </ span>. That should be </span> (no space). This one causes the validation failure.

So the final code would be...
Code: [Select]
echo "<span style=\"font-size: 85%;\">Data Not<br />Available</span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" alt=\"Data Not Available\" />";
You told me to keep finding stuff...   :roll:

Will be fixed in the next version!  Thanks!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: klamort on January 24, 2011, 12:53:49 PM
Hi,

I am still having a small problem... with the translation... In the current conditions, it is always written "It is" You can see it here: http://www.voyage-moto.be/?page_id=1156

I tried to change it in ajax-dashboard.php on line 467...

But it still does show up. Is there another place where I have to make the change also.

Also I am missing quite few Icons for the windrose, is there place I can download them.

Thanks.

Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 24, 2011, 07:33:57 PM
Hi,

I am still having a small problem... with the translation... In the current conditions, it is always written "It is" You can see it here: http://www.voyage-moto.be/?page_id=1156

I tried to change it in ajax-dashboard.php on line 467...

But it still does show up. Is there another place where I have to make the change also.

Also I am missing quite few Icons for the windrose, is there place I can download them.
You will find it in ajaxWDwx.js too

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: youngros on January 27, 2011, 08:03:47 AM
Quote
Quote from: youngros on January 05, 2011, 07:47:18 AM
Hi Scott,

CSS is improving slowly http://www.mad-weather.com/ajax6.php the one thing I seem to have missed is how to keep the UV image showing, it shows briefly when you press F5, but it's not there all the time.

I also had the all time station record showing 1/1/1970 but on your high lows trend script it was showing the correct date so I changed

<?php echo create_datemdy($recordhightempmonth,$recordhightempday,$recordhightempyear)?>

to

<?php
                      if ($WDdateMDY)
                          echo fixup_date($recordhightempmonth . "/" . $recordhightempday . "/" . $recordhightempyear);
                      else   
                          echo fixup_date($recordhightempday . "/" . $recordhightempmonth . "/" . $recordhightempyear);
                   ?>

and that now works. Interesting to note that it was only the high temperature that was affected and not the low or warmest coldest days and nights.

Rosalind

If it disappears right away it's the ajax java script that is updating it.  You have something set wrong in that.  What does it show?

Scott

Hi Scott, sorry for the delay in replying.
What am I supposed to be looking for on the ajax java script?
Pleased to have been of some help with the above script.

Rosalind


Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 27, 2011, 08:52:55 PM
Hi Scott, sorry for the delay in replying.
What am I supposed to be looking for on the ajax java script?
Pleased to have been of some help with the above script.

Rosalind

Rosalind

I see you have version 6.02 and there have been several changes since then that I think will help improve how things work for you since you're using metric readings.  You should download the update, replace your ajax-dashboard6.php and ajaxWDwx.js files with the ones in version 6.07.  That will help several things.  Can you send me a screen shot of what you see in the daytime in the UV section, when I look at it, its working well but it's still dark there!  I'll try to check it a bit later when it lighter there and maybe I can see it.  The link to the update is at the end if this thread.  

I've also noticed an error in the Java Script, that is probably what is causing the script to stop before it finishes updating the UV.  The error I'm seeing is:

Code: [Select]
Webpage error details

Timestamp: Fri, 28 Jan 2011 01:55:19 UTC

Message: 'clientraw' is undefined
Line: 672
Char: 7
Code: 0
URI: http://www.mad-weather.com/ajaxWDwx.js


Message: 'clientraw' is undefined
Line: 672
Char: 7
Code: 0
URI: http://www.mad-weather.com/ajaxWDwx.js


This probably means that the path to your clientraw.txt file (defined in both the settings file and java script file) is incorrect and it can't find that file.  Look for a line that looks something like this in both:

Code: [Select]
var clientrawFile = './clientraw.txt'; // location of clientraw.txt relative to this page on website
Updated 1/28/2011 - Just got a look at the problem and it is because you don't have the right images in the right spot.  It is looking for the UV images to be in the following location:

http://www.mad-weather.com/ajax-images/uv4.gif

Also make sure the file names are lowercase and in .gif format!



Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stewart45 on January 28, 2011, 05:35:07 AM
Just a small thing ,is it possible to have the two temp displays show the same, I'm assuming one rounds up
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 28, 2011, 07:33:49 AM
Just a small thing ,is it possible to have the two temp displays show the same, I'm assuming one rounds up
You can change the temperature rounding by either changing the gizmo to display the Temp with 1 decimal point or change ajaxWDwx-settings.js to make temp show with 0 decimal points.  There is a section that allows you to choose that in the settings under units of measure.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stewart45 on January 28, 2011, 07:44:50 AM
Thanks Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: youngros on January 28, 2011, 08:47:54 AM
Hi Scott, now got the uv images showing...images were uv01 instead of uv1
the clientraw.txt file is in the same directory as the ajaxWDwx.js so not sure what is wrong there.
I have downloaded the new files and will look at updating next week when I have a bit more time to spend on it.

Thanks for your help. Rosalind
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 29, 2011, 01:10:25 AM
Hi Scott,

Now that split() has gone bye-bye in PHP 5.3.x, will you be updating your stuff - sometime?   :roll:

Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: klamort on January 29, 2011, 12:01:58 PM
Hi Scott,

I see that you have enough work around here...
I am still having a small problem, with the record high and record low... you can see it here http://www.voyage-moto.be/?page_id=1156

The record high is really not right... but I am not sure if it is my configuration or weather underground or your script....

Thanks for your help...

Klaus
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 30, 2011, 03:42:31 PM
But that 52.4 is mm though Scott. My avg. shows as 26.9 for January.

You may want to verify your snow setting in WD then.  I'm not sure why it would be in mm as by default it is stored in cm and then converted to in.  I double checked mine, it is right on with what WD says is my average.

Scott


I asked over at the WD forums, and Brian said that my testtags are correct and had no idea how
to get the tags to show up in cm like you have unless I convert I believe.
Code: [Select]
$avsnowjan = '13.5'; //Average snow for jan from your inputted snow data (cm)
$avsnowfeb = '25.7'; //Average snow for feb from your inputted snow data (cm)
$avsnowmar = '0.4'; //Average snow for mar from your inputted snow data (cm)
$avsnowapr = '2.1'; //Average snow for apr from your inputted snow data (cm)
$avsnowmay = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjun = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjul = '0.0'; //Average snow for jul from your inputted snow data (cm)
$avsnowaug = '0.0'; //Average snow for aug from your inputted snow data (cm)
$avsnowsep = '0.0'; //Average snow for sep from your inputted snow data (cm)
$avsnowoct = '1.6'; //Average snow for oct from your inputted snow data (cm)
$avsnownov = '9.2'; //Average snow for nov from your inputted snow data (cm)
$avsnowdec = '55.7'; //Average snow for dec from your inputted snow data (cm)



Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 31, 2011, 01:59:41 PM
I am still having a small problem, with the record high and record low... you can see it here http://www.voyage-moto.be/?page_id=1156
The record high is really not right... but I am not sure if it is my configuration or weather underground or your script....
Klaus

Klaus,

I see your function for changing between metric and imperial is not working either, did you modify the code to show only metric readings? 

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 31, 2011, 02:07:45 PM
I asked over at the WD forums, and Brian said that my testtags are correct and had no idea how
to get the tags to show up in cm like you have unless I convert I believe.
Code: [Select]
$avsnowjan = '13.5'; //Average snow for jan from your inputted snow data (cm)
$avsnowfeb = '25.7'; //Average snow for feb from your inputted snow data (cm)
$avsnowmar = '0.4'; //Average snow for mar from your inputted snow data (cm)
$avsnowapr = '2.1'; //Average snow for apr from your inputted snow data (cm)
$avsnowmay = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjun = '0.0'; //Average snow for may from your inputted snow data (cm)
$avsnowjul = '0.0'; //Average snow for jul from your inputted snow data (cm)
$avsnowaug = '0.0'; //Average snow for aug from your inputted snow data (cm)
$avsnowsep = '0.0'; //Average snow for sep from your inputted snow data (cm)
$avsnowoct = '1.6'; //Average snow for oct from your inputted snow data (cm)
$avsnownov = '9.2'; //Average snow for nov from your inputted snow data (cm)
$avsnowdec = '55.7'; //Average snow for dec from your inputted snow data (cm)
/quote]

I have no idea why it would be different, I added in the tages a long time ago when I copied the lines from the file Brian included with WD of all available tags.  If it is actually in mm then somehow it must be converted as I do nothing to change the readings and I have heard of no one else having the problem.  At the top of the code, there is a section that selects which snow measurement to use, and it too assumes that it is in cm

Code: [Select]
// Snow setup
if (preg_match('|in|i',$uomSnow)) { // 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
} else { // 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
}

I don't have a good answer for you, sorry.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 31, 2011, 02:08:41 PM
Hi Scott,

Now that split() has gone bye-bye in PHP 5.3.x, will you be updating your stuff - sometime?   :roll:

Thanks.

Yes, I will look into that shortly and hopefully have something soon.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on January 31, 2011, 02:16:06 PM
Would you know where I can get a fresh copy of all the testtags?

I also see I dont have any tags like $avgmonthsnow1 to go with in my test of Dashboard 6.07

Thank you.
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 31, 2011, 02:21:30 PM
Hi Scott,

Now that split() has gone bye-bye in PHP 5.3.x, will you be updating your stuff - sometime?   :roll:

Thanks.

Yes, I will look into that shortly and hopefully have something soon.

Scott
No rush - just wondering.

Is it just basically replacing split with explode, or am I making it too easy?

Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 31, 2011, 09:15:08 PM
Hi Scott,

Now that split() has gone bye-bye in PHP 5.3.x, will you be updating your stuff - sometime?   :roll:

Thanks.

Yes, I will look into that shortly and hopefully have something soon.

Scott
No rush - just wondering.

Is it just basically replacing split with explode, or am I making it too easy?

Thanks.

LOL, Easy is always good... I have been starting the upgrade for awhiel, just no time to put into it right now!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on January 31, 2011, 09:17:39 PM
Would you know where I can get a fresh copy of all the testtags?

I also see I dont have any tags like $avgmonthsnow1 to go with in my test of Dashboard 6.07

Thank you.

$avgmonthsnow1 and $avgmonthrain1 are variables from the script itself, not test tags.  The base testtags.txt are available from Ken's site if I remember and then the additional tags are available in a text file in the script archive. (version 6.xx)

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on January 31, 2011, 10:35:36 PM
Hi Scott,

Now that split() has gone bye-bye in PHP 5.3.x, will you be updating your stuff - sometime?   :roll:

Thanks.

Yes, I will look into that shortly and hopefully have something soon.

Scott
No rush - just wondering.

Is it just basically replacing split with explode, or am I making it too easy?

Thanks.

LOL, Easy is always good... I have been starting the upgrade for awhiel, just no time to put into it right now!

Scott
Drop me an email with a split statement and what it would look like translated for 5.3. Maybe I can fiddle with it.

The class I told you about starts Wednesday. Cross fingers (eyes, toes, etc.) please...
Title: Re: Alternative-Dashboard Version 6.07
Post by: klamort on February 01, 2011, 12:30:03 AM
Klaus,

I see your function for changing between metric and imperial is not working either, did you modify the code to show only metric readings? 

Scott


Hi Scott,

I did certainly change all the metrics I found.... so I did set up again the original files... but I am still having the same problem...

KLaus
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 01, 2011, 08:31:04 AM
I see your function for changing between metric and imperial is not working either, did you modify the code to show only metric readings? 
I did certainly change all the metrics I found.... so I did set up again the original files... but I am still having the same problem...
There is no need to change the code for that, just change the default unit of measure in the settings to "M" and it will do that automatically.  Send me a copy of your ajax-dashboard6.php and I'll check it out.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 02, 2011, 03:29:36 PM
Hope someone can help me pinpoint the problem that is keeping me from successfully updating from Scott's V4.20 to the new ajax V6.07. I have been working off and on with this for several months (ajax) but have tried to get down to serious business the last week and just can't get the dashboard to show on my test page. All I am getting is the top, head and fly=out menu. No dashboard or footer. Not too familiar with Firebug but had it up and working and could see my clientraw info getting pulled in alright. ](*,)

Here is what I am getting right now:  www.carolinastormwatch.com/indextest.php

Also attached my Dashboard6 file and ajaxWDwx and ajaxWDwx-settings files if  someone could please take a look and see if they can spot a problem.

Any help would be greatly appreciated!! Tony at CNY Weather has been very helpful but he has had trouble locating the issue.

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 02, 2011, 06:30:54 PM
Hope someone can help me pinpoint the problem that is keeping me from successfully updating from Scott's V4.20 to the new ajax V6.07. I have been working off and on with this for several months (ajax) but have tried to get down to serious business the last week and just can't get the dashboard to show on my test page. All I am getting is the top, head and fly=out menu. No dashboard or footer. Not too familiar with Firebug but had it up and working and could see my clientraw info getting pulled in alright. ](*,)

Here is what I am getting right now:  www.carolinastormwatch.com/indextest.php

Also attached my Dashboard6 file and ajaxWDwx and ajaxWDwx-settings files if  someone could please take a look and see if they can spot a problem.

Any help would be greatly appreciated!! Tony at CNY Weather has been very helpful but he has had trouble locating the issue.

Tom

Tom,

Do you have the new ajaxWDwx.js and agaxWDwx-settings.js in the right place and configured?  That is usually the problem.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on February 02, 2011, 08:12:55 PM
I have a question /suggestion. The air temperature drives the Rain / Snow Icon for the current conditions. I think it is set for 34. Can it be changed to use the wetbulb temperature?

When looking for the rain / snow line many meteorologists look for the 0C wetbulb line. Without getting into all the science behind it the 0c (32F) wet bulb line is usually where you find the rain changed over to snow. While the actual temperature can be a few degrees above freezing it will be snowing as the snow does not have a chance to melt into rain before it reaches the ground. That is why the oc (32f) wet bulb temperature is looked for. Your thoughts.
Title: Re: Alternative-Dashboard Version 6.07
Post by: mayo9999 on February 02, 2011, 09:01:03 PM
Hope someone can help me pinpoint the problem that is keeping me from successfully updating from Scott's V4.20 to the new ajax V6.07. I have been working off and on with this for several months (ajax) but have tried to get down to serious business the last week and just can't get the dashboard to show on my test page. All I am getting is the top, head and fly=out menu. No dashboard or footer. Not too familiar with Firebug but had it up and working and could see my clientraw info getting pulled in alright. ](*,)

Here is what I am getting right now:  www.carolinastormwatch.com/indextest.php

Also attached my Dashboard6 file and ajaxWDwx and ajaxWDwx-settings files if  someone could please take a look and see if they can spot a problem.

Any help would be greatly appreciated!! Tony at CNY Weather has been very helpful but he has had trouble locating the issue.

Tom
I had a similar issue....  Try removing the comment on the last 2 functions at the end of the ajax-dashboard6.php file.
Code: [Select]
//  Uncomment the next two functions if you get an error message that says
//  Fatal error: Call to undefined function langtransstr()

function langtransstr($str) {  // added
  return($str);
 }

function langtrans($str) {  // added
 echo $str;
   return;
}
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 02, 2011, 09:08:05 PM
I have a question /suggestion. The air temperature drives the Rain / Snow Icon for the current conditions. I think it is set for 34. Can it be changed to use the wetbulb temperature?

When looking for the rain / snow line many meteorologists look for the 0C wetbulb line. Without getting into all the science behind it the 0c (32F) wet bulb line is usually where you find the rain changed over to snow. While the actual temperature can be a few degrees above freezing it will be snowing as the snow does not have a chance to melt into rain before it reaches the ground. That is why the oc (32f) wet bulb temperature is looked for. Your thoughts.

Very good idea!  I will make that change!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 02, 2011, 11:21:59 PM
I've had some luck in fixing a few things for the next update (version 6.08).  I found a fix for the date formatting problems with the All time high and low section.  It also apprears that Brian has changed the format that some of the sunrise, sunset, etc readings are now passed to test tags.  I have made a change to allow that to display correctly.

I am testing the changes now, especially the wetbulb updating of the snow/rain icon.  Once we get above freezing around here, maybe I can see if it works!  I'll let everyone here know when I have this next version released.

Question:  Is anyone else using WD version 37Q Build 28 or later and noticing the times screwed up in the Almanac section?

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: ed2kayak on February 03, 2011, 07:18:59 AM
Thanks Scott,
I believe my almanac is correct this morning. B10.37Q28
http://cvweather.org/wxastronomy.php
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 03, 2011, 11:39:51 AM


Tom,

Do you have the new ajaxWDwx.js and agaxWDwx-settings.js in the right place and configured?  That is usually the problem.

Scott

[/quote]



Hi Scott,

Sorry it has taken me so long to get back to you but I had to just get up and leave it yesterday Afternoon and just got back from my dialysis this Morning. Are you talking about being in the right place "in top.php"? Tony had plugged in his top file (which is working fine) on my site  but it still would not work with my ajax files. The top.php is attached!

Thanks,

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 03, 2011, 11:44:35 AM
Got your email Tom. Do you have AltAjaxDashboardConfig6.php installed also?
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 03, 2011, 12:04:10 PM
Got your email Tom. Do you have AltAjaxDashboardConfig6.php installed also?

yeah I do. I'll email that to you row now!

Thanks Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 03, 2011, 12:14:05 PM
It's gotta be one of the tag along .js files Tom. This is your dashboard running
on my test page http://www.cnyweather.com/indextest.php BUT, with my
ajaxWDwx.js and ajaxWDwx-settings.js files
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 03, 2011, 12:36:10 PM
Scott,

Suggestion for 6.08...

When the temp drops low the rain icon under Current Conditions changes to Snow, including the 3 for the footnote. However - no footnote. Can you add the automatic inclusion of the (3) footnote when this automatic change happens? Folks go looking for it - like the last few nights around here, 26.2 for a new low record in Phoenix early this morning - and it's nowhere to be found.

Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 03, 2011, 02:23:46 PM
It's gotta be one of the tag along .js files Tom. This is your dashboard running
on my test page http://www.cnyweather.com/indextest.php BUT, with my
ajaxWDwx.js and ajaxWDwx-settings.js files

Your right Tony it has to be there. The strange thing that happens when I use the use ALTAjaxDashoard6 file that you just sent me is that when I pull up www.carolinastormwatch.com/indextest.php I still am not getting anything (Dashboard) but everything on the flyout menu is working fine and when I hit the back button my page reverts to my www.carolinastormwatch.com/index.php (regular home) page but there are NO UPDATES being made to the page. Anyone have any ideas?

Thanks Tony,

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: Silversword on February 03, 2011, 04:30:31 PM
Hi Tom,

It seems as though that your Weather Display is not updating the clientraw.txt file to your host.  Looking at your banner also has no data also.  That might be a clue as to why your dashboard is not updating also.

Just some thoughts.

Regards,

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 03, 2011, 04:48:19 PM
Tom, I messed around a lot here with your files. For the life of me I cannot figure it out.

Like I said, http://www.cnyweather.com/indextest.php (http://www.cnyweather.com/indextest.php) is your dashboard running with my .js files.
I'd be happy to package it up for you unless one of the wiz kids can figure it out. I'm just a poor trophymaker,
and finding errors drives me nuts  :lol:
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 03, 2011, 05:51:25 PM
Tom, I messed around a lot here with your files. For the life of me I cannot figure it out.

Like I said, http://www.cnyweather.com/indextest.php (http://www.cnyweather.com/indextest.php) is your dashboard running with my .js files.
I'd be happy to package it up for you unless one of the wiz kids can figure it out. I'm just a poor trophymaker,
and finding errors drives me nuts  :lol:

Yeah, I guess sending me a copy of your files may help??? My old website had quit updating but appears to be updating now. As Stan, noted even my banner had quit updating but appears to have started back. I have a mess for sure and just can not find where the problem is. I don't think it is anything major but I am not someone who has the ability to find the problem. Thanks for the help Tony, I'll keep trying though!

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 03, 2011, 07:45:09 PM
Scott,

Suggestion for 6.08...

When the temp drops low the rain icon under Current Conditions changes to Snow, including the 3 for the footnote. However - no footnote. Can you add the automatic inclusion of the (3) footnote when this automatic change happens? Folks go looking for it - like the last few nights around here, 26.2 for a new low record in Phoenix early this morning - and it's nowhere to be found.

Thanks.
Ok, I will add that, I just assume if you have the possibility of snow in your area, you are using the snow option and thus, footnote #3 should be there!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 03, 2011, 07:48:22 PM
Sorry it has taken me so long to get back to you but I had to just get up and leave it yesterday Afternoon and just got back from my dialysis this Morning. Are you talking about being in the right place "in top.php"? Tony had plugged in his top file (which is working fine) on my site  but it still would not work with my ajax files. The top.php is attached!
Tom,

Lets verify what version of the java files you are using and what version of PHP is hosting on your site.  All your symptoms lead me to believe that for some reason your java script is just not running.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 03, 2011, 09:16:24 PM
Scott,

Suggestion for 6.08...

When the temp drops low the rain icon under Current Conditions changes to Snow, including the 3 for the footnote. However - no footnote. Can you add the automatic inclusion of the (3) footnote when this automatic change happens? Folks go looking for it - like the last few nights around here, 26.2 for a new low record in Phoenix early this morning - and it's nowhere to be found.

Thanks.
Ok, I will add that, I just assume if you have the possibility of snow in your area, you are using the snow option and thus, footnote #3 should be there!

Scott
Rarely do we have that possibility, which is why I do not use the snow option (although we have had some flurries this year). However, since the auto changeover to the snow icon uses the footnote notation I just thought it should be there.

Thanks.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 03, 2011, 09:53:49 PM
Sorry it has taken me so long to get back to you but I had to just get up and leave it yesterday Afternoon and just got back from my dialysis this Morning. Are you talking about being in the right place "in top.php"? Tony had plugged in his top file (which is working fine) on my site  but it still would not work with my ajax files. The top.php is attached!
Tom,

Lets verify what version of the java files you are using and what version of PHP is hosting on your site.  All your symptoms lead me to believe that for some reason your java script is just not running.

Scott


Hi Scott,

My host is using 5.1.4 php and my version of the ajax-settings.js is Meerkat's latest Version of 9.13 and your latest build (6.07) and also the newest AltConfig. I think I just found a small problem with my testtags but don't think this is causing the problems with not getting the dashboard to show but I'm going to get the testtags file corrected. Looks like when I placed the new file in WD I have php.txt instead of php.

Thanks,

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on February 03, 2011, 10:19:29 PM
Hi Scott,

Thanks for considering the wet bulb temp for the rain /snow. Look forward to the new release. Thank you for all the hard work you do for us.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 04, 2011, 12:18:14 AM
Success!!! Many thanks to Tony at CYNWeather for helping me out and especially to SteveFitz1 for finding the error and getting my Dashboard to show
at: www.carolinastormwatch.com/indextest.php

Just have to do some tweaking and I will finally have it go live!!

Many thanks guys for all the help! =D&gt;

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 04, 2011, 07:47:02 AM
Success!!! Many thanks to Tony at CYNWeather for helping me out and especially to SteveFitz1 for finding the error and getting my Dashboard to show
at: www.carolinastormwatch.com/indextest.php

Just have to do some tweaking and I will finally have it go live!!

Many thanks guys for all the help! =D&gt;

Tom

What was the error?
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 04, 2011, 11:30:56 AM
Success!!! Many thanks to Tony at CYNWeather for helping me out and especially to SteveFitz1 for finding the error and getting my Dashboard to show
at: www.carolinastormwatch.com/indextest.php

Just have to do some tweaking and I will finally have it go live!!

Many thanks guys for all the help! =D&gt;

Tom

What was the error?

Hi Scott,

Apparently, lines 2403-2410 in the Ajax-Dashboard6 file (I'm pretty sure) were commented out and Steve worked with it and removed the // from those lines and got it working. Something simple for most people but something I may not ever have found on my own.
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 04, 2011, 11:46:03 AM
Go Tom Go.  :lol:

I see you're missing http://www.carolinastormwatch.com/ajax-images/bkn.gif image Tom.

Also, I forgot my fix, but your site is updating except the counter doesnt.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 04, 2011, 12:56:22 PM
Go Tom Go.  :lol:

I see you're missing http://www.carolinastormwatch.com/ajax-images/bkn.gif image Tom.

Also, I forgot my fix, but your site is updating except the counter doesnt.

Yeah, I still got quite a few things left to do before I finish it up. Had dialysis this Morning so I am feeling like crap about now. Gonna take a nap and try to come back tonight ot tomorrow and work on it. Wonder why the counter isn't working though??? Hadn't caught that yet.

Thanks for all your help Tony (Terrific) T!! :grin:

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: mayo9999 on February 04, 2011, 01:07:54 PM
Hi Scott,

Apparently, lines 2403-2410 in the Ajax-Dashboard6 file (I'm pretty sure) were commented out and Steve worked with it and removed the // from those lines and got it working. Something simple for most people but something I may not ever have found on my own.
Tom, Were they the same lines I mentioned in my post on 2/2?
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 04, 2011, 01:08:18 PM
Apparently, lines 2403-2410 in the Ajax-Dashboard6 file (I'm pretty sure) were commented out and Steve worked with it and removed the // from those lines and got it working. Something simple for most people but something I may not ever have found on my own.
Hi Tom,

Those lines are always commented out in the script. The reason is not everybody needs those two functions in this script. You should have gotten an error message when you first tried to run the script that indicated a problem with langtrans. In the script, just above where the lines were uncommented for you, is an explanation of what to do if you get that error.

Not picking on ya - just explaining.  :grin:
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 04, 2011, 06:29:17 PM
Apparently, lines 2403-2410 in the Ajax-Dashboard6 file (I'm pretty sure) were commented out and Steve worked with it and removed the // from those lines and got it working. Something simple for most people but something I may not ever have found on my own.

Thats very strange, it has always given the error Fatal error: Call to undefined function langtransstr().  I think thats why it was so difficult for anyone to figure it out. 

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on February 04, 2011, 06:55:32 PM
This is off subject, how do you get the current conditions etc. that I see many display by their signature.
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 04, 2011, 08:48:50 PM
If you're asking about the banners, most folks use WXGraphic. See http://scripts.anolecomputer.com/wxgraphic/.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 04, 2011, 09:03:18 PM
Apparently, lines 2403-2410 in the Ajax-Dashboard6 file (I'm pretty sure) were commented out and Steve worked with it and removed the // from those lines and got it working. Something simple for most people but something I may not ever have found on my own.
Hi Tom,

Those lines are always commented out in the script. The reason is not everybody needs those two functions in this script. You should have gotten an error message when you first tried to run the script that indicated a problem with langtrans. In the script, just above where the lines were uncommented for you, is an explanation of what to do if you get that error.

Not picking on ya - just explaining.  :grin:

I certainly think that was it mayo9999; a friend of mine found the error!

Exactly jgillett; that is why Tony did not think that was initially the problem. It was just the way I had the js files set up. I certainly wasn't insinuating that not finding this was anything other than my own ability to find problems and correct them. This was all on me!! LOL!! One thing right now is some of my meds for my Renal Failure makes it very difficult to concentrate and follow through on troubleshooting and that is what is so frustrating for me! :grin:

Scott I'll be honest, I never saw any errors but that is my because I have very little knowledge about troubleshooting. It is kind of like a little league baseball player (ME) trying to play with the major leaguers!! LOL!! :oops:

Tom

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 04, 2011, 10:25:36 PM
Exactly jgillett; that is why Tony did not think that was initially the problem. It was just the way I had the js files set up. I certainly wasn't insinuating that not finding this was anything other than my own ability to find problems and correct them. This was all on me!! LOL!! One thing right now is some of my meds for my Renal Failure makes it very difficult to concentrate and follow through on troubleshooting and that is what is so frustrating for me! :grin:

Tom
Tom,

Not to worry. Everybody here makes mistakes, everybody here misses things, and everybody here, at one time or another, was new to this.

As for meds, I kinda know where you're at - two injections in one eye every 6 weeks, enough blood draws to make me wonder if my body will ever catch up, plus a mess of other stuff I won't go into, and most of the time I don't know where I'm at either.   :?
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 04, 2011, 11:51:43 PM
Exactly jgillett; that is why Tony did not think that was initially the problem. It was just the way I had the js files set up. I certainly wasn't insinuating that not finding this was anything other than my own ability to find problems and correct them. This was all on me!! LOL!! One thing right now is some of my meds for my Renal Failure makes it very difficult to concentrate and follow through on troubleshooting and that is what is so frustrating for me! :grin:

Tom
Tom,

Not to worry. Everybody here makes mistakes, everybody here misses things, and everybody here, at one time or another, was new to this.

As for meds, I kinda know where you're at - two injections in one eye every 6 weeks, enough blood draws to make me wonder if my body will ever catch up, plus a mess of other stuff I won't go into, and most of the time I don't know where I'm at either.   :?

Yikes John! Had to take shots in the eye myself a couple times and that ain't no fun!! LOL!!!

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 05, 2011, 01:49:08 AM
Yikes John! Had to take shots in the eye myself a couple times and that ain't no fun!! LOL!!!

Tom
Heh - don't I know it. At least they numb you up enough so you don't feel anything, but it's just the thought...

Hope you will improve with your situation.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 05, 2011, 05:31:28 PM
Yikes John! Had to take shots in the eye myself a couple times and that ain't no fun!! LOL!!!

Tom
Heh - don't I know it. At least they numb you up enough so you don't feel anything, but it's just the thought...

Hope you will improve with your situation.

Thanks John; Yeah I had bleeding in my eyes as complication of diabetes and went through a series of shots in Both eyes but like you said they did numb them before the shots....but just the thought. I start testing for a Kidney Transplant in a couple of weeks and continue the procedure; can't have anything as simple as a cavity or hang nail or it is no go. Hoping for a chance sometime in 2011.

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: tnwxman on February 05, 2011, 07:01:12 PM
Thanks on the wxgraphics.
Title: Re: Alternative-Dashboard Version 6.07
Post by: jgillett on February 05, 2011, 09:16:16 PM
Tom, we have another commonality - fire. I was a volunteer firefighter back east for 8 years, 6 of that as an engineer. Out here I was a volunteer for Phoenix Fire for over 19 years with Fire Prevention. They lost track of my time - last estimate I heard was over 20,000 hours.
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 06, 2011, 02:43:32 PM
Tom, we have another commonality - fire. I was a volunteer firefighter back east for 8 years, 6 of that as an engineer. Out here I was a volunteer for Phoenix Fire for over 19 years with Fire Prevention. They lost track of my time - last estimate I heard was over 20,000 hours.

Cool John; I have been a Volunteer FF/EMT for almost 30 years and still help as I can as EMT/Safety Officer and Rehab. It is tough now to be a Volunteer FF because NC wants one to have at least 36 hrs+ training hrs per year but 100 hrs+ per year training is more like it. It gets harder and harder to get Volunteers here as a result of all the training hrs. required. I was a Paramedic for almost 10 years in the '90's, a Volunteer FF/EMT and member of the Rescue Squad putting in 1500+ hrs of volunteer work a year plus my job as a Paramedic and raising 3 kids; just got burned out and quit everything for a couple of years. I hate I didn't keep up my Certifications because I had to basically start from ground zero. Moved to the Coast of NC about 4 yrs ago from the Charlotte Area and absolutely love the Beach. Where back East are you from??

Sorry guys for being off topic here; just getting know my peers who have helped me so much with my website over the years and those who are helping me take a step forward with the new ajax system. Please excuse the off topic posts.

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 06, 2011, 06:07:57 PM
I'm trying to find out why my ajaxcond2 icon on my 6.07 dashoard is showing a gif image instead of a jpg image. All of my other icons are either jpg or png which is what I'm wanting. Below is my ajaxWDwx.js settings. Where am I missing the ajaxcond2 setting.? Is there another setting somewhere for "ajaxcond2"?

//------------------------------------------------------------------------------
// DASHBOARD ICONS: optional settings for current conditions graphic for dashboard
// tag: "ajaxconditionicon" or "ajaxconditionicon2" ... specify it below in wxIcon.useTag
// e.g. graphic name: "./ajax-images/bkn.gif"
// .... grab the animated icons for set 2 here: http://www.bashewa.com/downloads/bws-icons-current.zip
var wxIcon =
   {src    : imgDir+"{PIC}.jpg" // where {PIC} will = picname from function specified in wxIcon.useName below
   ,width  : 74 ,height: 74 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : ""  // eg. "border: 2px solid silver"
   ,align  : ""  // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,useTag : "ajaxconditionicon2" // [ ajaxconditionicon | ajaxconditionicon2 ] ... ajax tagname to use
   ,useName: 1   // [ 0| 1 | 2 | 9 ] function for getting icon names ...
   };            //                  0 = Anole's icon names ............ see ajax_getIconName0()
                 //                  1 = NWS icon names ................ see ajax_getIconName1()
                 //                  9 = Dynamic current icons ......... NOT IMPLEMENTED


//------------------------------------------------------------------------------
// WIND ROSE: optional settings for the Wind Rose graphic
// tag: "ajaxwindiconwr"
// e.g. graphic name: "./ajax-images/wr-SSE.gif"  or  "./ajax-images/wr-nl-SSE.gif"
// .... grab the wind rose icons here: http://www.bashewa.com/downloads/bws-icons-wind.zip
var wrImg =
   {src   : imgDir+"wr-{LANG}{DIR}.png"  // where {DIR} will = wind dir (e.g. NNW), {LANG} = wrImg.lang
   ,width : 58 ,height: 58 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : "" // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,lang  : ""     // with trailing dash (e.g. "nl-" will result in graphic name: "./ajax-images/wr-nl-SSE.gif")
   ,calm  : "calm" // substitution for {DIR} (e.g "wr-calm.gif") ... specify "" if not to be shown or not available
   ,xlate : true   // translate wind direction for icon names (multilingual system)
   ,useTag: "ajaxwindiconwr" // ajax tagname to use where the windrose icon should be placed
   };

Thanks for the help!! :grin:

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: Silversword on February 07, 2011, 03:54:25 PM
Hi Tom,

Got your PM through my email.  Anyway try looking in this section of your ajax-dashboard6.php script.  This is my current settings that might help you.


$ourTZ = "Pacific/Honolulu";  //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//
// 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        = '.jpg';             // extension of the graphic filename
$wrCalm        = 'wr-calm.jpg';      // set to full name of graphic for calm display ('wr-calm.gif')
$haveUV        = true;               // set to false if no UV sensor
$haveSolar     = true;               // set to false if no Solar sensor
$WXtags        = 'testtags.php';     // source of our weather variables
$fcstorg       = 'NWS';              // default forecast organization ('NWS','EC','WU','WXSIM')
$fcstscript    = 'advforecast2.php'; // default forecast script
//                                      NWS - 'advforecast2.php', EC - 'ec-forecast.php',
//                                      WU - 'WU-forecast.php', WXSIM - 'plaintext-parser.php',
$UVscript      = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//                                          comment out above line to exclude UV forecast
$DavisVP       = true;                 // set to false if weather station is not a Davis VP
$showSnow      = true;           // set to false if Snow values not recorded manually in WD

Hope that this might work for you.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 07, 2011, 05:26:44 PM
Hi Tom,

Got your PM through my email.  Anyway try looking in this section of your ajax-dashboard6.php script.  This is my current settings that might help you.


$ourTZ = "Pacific/Honolulu";  //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//
// 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        = '.jpg';             // extension of the graphic filename
$wrCalm        = 'wr-calm.jpg';      // set to full name of graphic for calm display ('wr-calm.gif')
$haveUV        = true;               // set to false if no UV sensor
$haveSolar     = true;               // set to false if no Solar sensor
$WXtags        = 'testtags.php';     // source of our weather variables
$fcstorg       = 'NWS';              // default forecast organization ('NWS','EC','WU','WXSIM')
$fcstscript    = 'advforecast2.php'; // default forecast script
//                                      NWS - 'advforecast2.php', EC - 'ec-forecast.php',
//                                      WU - 'WU-forecast.php', WXSIM - 'plaintext-parser.php',
$UVscript      = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//                                          comment out above line to exclude UV forecast
$DavisVP       = true;                 // set to false if weather station is not a Davis VP
$showSnow      = true;           // set to false if Snow values not recorded manually in WD

Hope that this might work for you.

--Stan Y.
   Maui, Hawaii


Thanks Stan, yeah that is what I have also. I have been doing so much testing that it is very possible that one of the files I have on my server is incorrect but all the files that I have been tweaking but haven't reloaded are all correct. :grin:
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 07, 2011, 09:11:01 PM
I'm trying to find out why my ajaxcond2 icon on my 6.07 dashoard is showing a gif image instead of a jpg image. All of my other icons are either jpg or png which is what I'm wanting. Below is my ajaxWDwx.js settings. Where am I missing the ajaxcond2 setting.? Is there another setting somewhere for "ajaxcond2"?
Thanks for the help!! :grin:

Tom

Tom,

It would help greatly if you included a link to the page so we can see what is happening.  Basically if the image is wrong when the page first loads then corrects itself when the page updates with the java, the problem is on the PHP script.  If it's right immediately on loading then disappears, it's in the java.  If it never shows, check for a path error or the image is wrong in both spots.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 08, 2011, 12:26:31 AM
I'm trying to find out why my ajaxcond2 icon on my 6.07 dashoard is showing a gif image instead of a jpg image. All of my other icons are either jpg or png which is what I'm wanting. Below is my ajaxWDwx.js settings. Where am I missing the ajaxcond2 setting.? Is there another setting somewhere for "ajaxcond2"?
Thanks for the help!! :grin:

Tom

Tom,

It would help greatly if you included a link to the page so we can see what is happening.  Basically if the image is wrong when the page first loads then corrects itself when the page updates with the java, the problem is on the PHP script.  If it's right immediately on loading then disappears, it's in the java.  If it never shows, check for a path error or the image is wrong in both spots.

Scott


Hi Scott,

My link is still at www.carolinastormwatch.com/indextest.php . The images I am trying to correct are the Ajaxcondtion2 Icons above the windrose which are showing a "gif" image but I would like to have a php icon most people are showing. The path is showing ..../ajax-images/???.gif and I cannot find the setting to change them to "jpg". The other icons (ajaxcondtion) are correct on the page. I uploaded the "gif" icons from Meerkat's iconset and put them in the ajax-images directory. Sometimes they appear and sometimes I get the text for the icon and not the icon. I do get an image or the text to load and the path appears correct for the icon that should be showing. For instance right now there is no icon but there is text "Overcast-light rain". Strange but I am sure there is an incorrect setting somewhere.

Thanks Scott!


Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 08, 2011, 07:47:38 AM
My link is still at www.carolinastormwatch.com/indextest.php . The images I am trying to correct are the Ajaxcondtion2 Icons above the windrose which are showing a "gif" image but I would like to have a php icon most people are showing. The path is showing ..../ajax-images/???.gif and I cannot find the setting to change them to "jpg". The other icons (ajaxcondtion) are correct on the page. I uploaded the "gif" icons from Meerkat's iconset and put them in the ajax-images directory. Sometimes they appear and sometimes I get the text for the icon and not the icon. I do get an image or the text to load and the path appears correct for the icon that should be showing. For instance right now there is no icon but there is text "Overcast-light rain". Strange but I am sure there is an incorrect setting somewhere.

Tom,

At the bottom of the script in the functions section you will find a list of icons all with a .gif ending, change them to .jpg.  You will find the same in the java script.  That will fix your problem!


Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 09, 2011, 12:29:33 AM
Hi Scott,

Think I have it figured out now. Thanks for the help; still have a few things to get on the site before I am ready to put it out. Thanks for all your help. :grin:

What I have so far:  www.carolinastormwatch.com/indextest.php

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 09, 2011, 07:37:13 AM
Think I have it figured out now. Thanks for the help; still have a few things to get on the site before I am ready to put it out. Thanks for all your help. :grin:

What I have so far:  www.carolinastormwatch.com/indextest.php

Tom,

It's looking good!  I think you've got it now!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 09, 2011, 07:18:44 PM
Scott, the station highs or lows from my data, when do they get written at midnight?

I've incorporated both into my version of the dashboard.
I had a station record low this morning from my data.

Or will I need to figure out some function that replaces the $mintemp4today with $mintemp if it's lower

thanks

http://www.cnyweather.com/indextest.php
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 09, 2011, 09:01:46 PM
Scott, the station highs or lows from my data, when do they get written at midnight?

I've incorporated both into my version of the dashboard.
I had a station record low this morning from my data.

Or will I need to figure out some function that replaces the $mintemp4today with $mintemp if it's lower

thanks

http://www.cnyweather.com/indextest.php
Yes I think the High/Low values are written sometime about 1-8 minutes after midnight as part of the end of day processing WD does.  Brian could probably give you the exact time for it.  I see you and I had basically the same idea about showing both WeatherUnderground and Station Highs/Lows.  I have something like that as an option in the next version too. 

Not exactly sure what you mean about the $mintemp4today though, the values will just automa with the first refresh after midnight.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 09, 2011, 09:35:24 PM
I guess what I meant was comparing the Low Temp today with the Rec. Low from my station data
and replacing the Rec. Low for the station with the new record like what happened today,

Todays low was -4.5 which didnt break the Weather Underground Record but broke my station
record of 11 degrees.

Did i explain that correctly? Sorry if I

Tony
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 09, 2011, 10:53:13 PM
Todays low was -4.5 which didnt break the Weather Underground Record but broke my station
record of 11 degrees.

Tony

In the code, find the section that shows this:
Code: [Select]
<?php
                               
if (strip_units($maxtemp) > strip_units($WUmaxtempr)){
                               echo 
"<img src=\"${imagesDir}NewRec_HIGH.jpg\" alt=\"Record High\"/>"; }
                         
?>

                         <?php
                               
if (strip_units($mintemp) < strip_units($WUmintempr)){
                               echo 
"<img src=\"${imagesDir}NewRec_LOW.jpg\" alt=\"Record Low\"/>";  }
                         
?>

You can just add an "or" function and then add another check to see if maxtemp is > $maxtemp4today and similar for the low.  That way it will trigger on either.  If you want to be fancy, you could add a new graphic for each and put in two sections, one for WU records and one for station records.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 10, 2011, 07:20:12 AM
Ok cool. I was going to make a new graphic for the station record. I was googling with my small amount
of coding knowledge what the function is. So I'm looking for "or" function?

I've got this part working
Code: [Select]
<?php   if (strip_units($maxtemp) > strip_units($maxtemp4today)){
                 echo 
"<img src=\"${imagesDir}NewRec_HIGH.jpg\" alt=\"Record High\"/>"; }
                         
?>

        <?php   if (strip_units($mintemp) < strip_units($mintemp4today)){
                               echo 
"<img src=\"${imagesDir}NewRec_LOW.jpg\" alt=\"Record Low\"/>";  }
                         
?>

I need this I guess:

if $mintemp4today is < $mintemp, replace $mintemp4today with $mintemp or the same for max temp.
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 10, 2011, 09:47:50 AM
Ok cool. I was going to make a new graphic for the station record. I was googling with my small amount
of coding knowledge what the function is. So I'm looking for "or" function?

I've got this part working
Code: [Select]
<?php   if (strip_units($maxtemp) > strip_units($maxtemp4today)){
                 echo 
"<img src=\"${imagesDir}NewRec_HIGH.jpg\" alt=\"Record High\"/>"; }
                         
?>

        <?php   if (strip_units($mintemp) < strip_units($mintemp4today)){
                               echo 
"<img src=\"${imagesDir}NewRec_LOW.jpg\" alt=\"Record Low\"/>";  }
                         
?>

I need this I guess:

if $mintemp4today is < $mintemp, replace $mintemp4today with $mintemp or the same for max temp.


If you are writing two pieces of code, you don't need to use "or" since you will have two different graphics, you will just have two sections of code, one with the Weather Underground Records and one with your new Station records.  

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 10, 2011, 10:04:49 AM
The graphics part worked fine Scott. Yesterday my low was -4 which was better than my station record of
+11 and the graphic did show like I wanted to. What I'd like to do is if I've set a new station record, replace
my station record with the new low when it occurs. That make sense?

Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 10, 2011, 12:01:18 PM
The graphics part worked fine Scott. Yesterday my low was -4 which was better than my station record of
+11 and the graphic did show like I wanted to. What I'd like to do is if I've set a new station record, replace
my station record with the new low when it occurs. That make sense?

Ahhh, ok now I understand.  I think the reason for it not doing that was so that people could see what the previous low was but if you wanted to change it, I think you could probably do something like:

Code: [Select]
<?php if (strip_units($maxtemp) > strip_units($maxtemp4today)) { ?>
in place of the current

Code: [Select]
<?php if ($useSTAhilo) { ?>
and then just change the code to display the new Max temp of the day then do the same with the mintemp.  You would of course still need to have another section for temps that were not records with the old code in as before
  Does that make sense?

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 10, 2011, 12:57:08 PM
Thanks Scott. It will give me something to fiddle with tonight.

SRY, sometimes I have a hard time explaining what I'm trying to accomplish.
I think the only ones who understand me are my dogs.  :-P
Title: Re: Alternative-Dashboard Version 6.07
Post by: CNYWeather on February 10, 2011, 07:37:31 PM
With my ability I've decided to leave well enough alone. Plus, if the record
breaks a WU temp record, it doesnt change that in the dashboard anyway.

I created a couple new graphics and the new station low is showing now.

Thanks Scott.

http://www.cnyweather.com/indextest.php 
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 12, 2011, 12:30:58 AM
With my ability I've decided to leave well enough alone. Plus, if the record
breaks a WU temp record, it doesnt change that in the dashboard anyway.

I created a couple new graphics and the new station low is showing now.

Thanks Scott.

http://www.cnyweather.com/indextest.php 

Looking good Tony!! =D&gt;

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 15, 2011, 07:55:17 PM
Well I have screwed up somewhere which is no surprise...LOL!!!  I had my new site ready and was attempting to put it live and broke the script somewhere. ](*,)

Now I can't even recreate the test site; my dashboard script is broken and will not show and I can not find the cause. If someone would please take a look and see if they can pinpoint the error that is breaking the test script maybe I can get it recreated correctly to get it going live. :oops:

www.carolinastormwatch.com/indextest.com

I would appreciate the assistance! Have no idea what I have done!

Thanks,

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 15, 2011, 08:09:42 PM
Well I have screwed up somewhere which is no surprise...LOL!!!  I had my new site ready and was attempting to put it live and broke the script somewhere. ](*,)

Now I can't even recreate the test site; my dashboard script is broken and will not show and I can not find the cause. If someone would please take a look and see if they can pinpoint the error that is breaking the test script maybe I can get it recreated correctly to get it going live. :oops:

www.carolinastormwatch.com/indextest.com

I would appreciate the assistance! Have no idea what I have done!

Thanks,

Tom


Tom,

You renamed indextest.php as .com!  Rename it back to .php and it will work I bet!

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 15, 2011, 08:32:54 PM
Well I have screwed up somewhere which is no surprise...LOL!!!  I had my new site ready and was attempting to put it live and broke the script somewhere. ](*,)

Now I can't even recreate the test site; my dashboard script is broken and will not show and I can not find the cause. If someone would please take a look and see if they can pinpoint the error that is breaking the test script maybe I can get it recreated correctly to get it going live. :oops:

www.carolinastormwatch.com/indextest.com

I would appreciate the assistance! Have no idea what I have done!

Thanks,

Tom


Tom,

You renamed indextest.php as .com!  Rename it back to .php and it will work I bet!

Scott


Sorry Scott, that was a typo. just deleted all my files on my server and reinstalled. The correct test site is:

www.carolinastormwatch.com/indextest.php

I renamed ajaxWDwx1.js to ajaxWDwx.js and top1 to top and things went south. Like I said I just deleted all ajax files and I am still getting nothing. I had files named and renamed in my file so I could recreate if I went wrong with something but now I have screwed up somewhere! :oops:

Thanks Tom

Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 15, 2011, 09:08:21 PM
Sorry Scott, that was a typo. just deleted all my files on my server and reinstalled. The correct test site is:

www.carolinastormwatch.com/indextest.php

I renamed ajaxWDwx1.js to ajaxWDwx.js and top1 to top and things went south. Like I said I just deleted all ajax files and I am still getting nothing. I had files named and renamed in my file so I could recreate if I went wrong with something but now I have screwed up somewhere! :oops:

Ok, I see now.  I've only seen two errors cause it to error out there, one was the language translation files needed to be uncommented out at the bottom of the ajax-dashboard6.php file and the the second was the ajaxWDwx.js file was either missing or the conf file was was.  Try a brand new ajaxWDwx.js and the config and see if that fixes it if the uncommenting thing don't do it.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 15, 2011, 09:13:57 PM
Sorry Scott, that was a typo. just deleted all my files on my server and reinstalled. The correct test site is:

www.carolinastormwatch.com/indextest.php

I renamed ajaxWDwx1.js to ajaxWDwx.js and top1 to top and things went south. Like I said I just deleted all ajax files and I am still getting nothing. I had files named and renamed in my file so I could recreate if I went wrong with something but now I have screwed up somewhere! :oops:

Ok, I see now.  I've only seen two errors cause it to error out there, one was the language translation files needed to be uncommented out at the bottom of the ajax-dashboard6.php file and the the second was the ajaxWDwx.js file was either missing or the conf file was was.  Try a brand new ajaxWDwx.js and the config and see if that fixes it if the uncommenting thing don't do it.

Scott



Many thanks Scott, don't know how the language lines got changed but I will give it a shot. I thank you for your help.

Tom

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 15, 2011, 10:15:28 PM
Scott,

Just verified that the last 2 language lines were uncommented (they were) and put a new ajaxWDwx file on my server and still nothing. :!:

Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 15, 2011, 10:23:36 PM
Scott,

Just verified that the last 2 language lines were uncommented (they were) and put a new ajaxWDwx file on my server and still nothing. :!:

Tom

Its showing now for me??

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 16, 2011, 05:28:15 PM
Scott,

Just verified that the last 2 language lines were uncommented (they were) and put a new ajaxWDwx file on my server and still nothing. :!:

Tom

Its showing now for me??

Scott



Hi Scott,

I think in renaming some of the files that possibly a couple of files were corrupted somehow. I had to just leave the computer last night and come back this Afternoon to look at things again. Thanks to SteveFitz1 (http://www.tylertexasweather.com/index.htm) who has been so helpful over the years for helping me out. Also, many thanks to you, Michael at Relay WX, Tony at CNY Weather and everyone else for helping out so much! The site is now live at:

www.carolinastormwatch.com/index.php

Still have many updates to go but my main dashboard is now basically finished. I have looked over all the posts trying to find a fix for the sun info being misaligned but have found only issues with the times which was addressed. I have noticed a few other sites that have wide screens or have increased the size of their CSS narrow sites are having the same issue. Is there any fix that has been addressed for this that anyone knows about.

Many thanks once again to everyone for their assistance and great scripts that keep rolling out that people share with us all! 


Tom
Title: Re: Alternative-Dashboard Version 6.07
Post by: BurnsvilleWeather on February 16, 2011, 08:25:09 PM
Still have many updates to go but my main dashboard is now basically finished. I have looked over all the posts trying to find a fix for the sun info being misaligned but have found only issues with the times which was addressed. I have noticed a few other sites that have wide screens or have increased the size of their CSS narrow sites are having the same issue. Is there any fix that has been addressed for this that anyone knows about.

Tom,

Add a <br/> after the sun image link in the code (you may want to add 2 if needed) and that will fix it.  I am adding that in the 6.08 release too.

Scott
Title: Re: Alternative-Dashboard Version 6.07
Post by: stormwatch on February 16, 2011, 09:33:09 PM
Still have many updates to go but my main dashboard is now basically finished. I have looked over all the posts trying to find a fix for the sun info being misaligned but have found only issues with the times which was addressed. I have noticed a few other sites that have wide screens or have increased the size of their CSS narrow sites are having the same issue. Is there any fix that has been addressed for this that anyone knows about.

Tom,

Add a <br/> after the sun image link in the code (you may want to add 2 if needed) and that will fix it.  I am adding that in the 6.08 release too.

Scott


Thanks Scott for the help!

Tom
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 18, 2011, 06:44:31 PM
UPDATE:

I have updated the script to version 6.08.  This is a fairly minor update but does fix PHP validation erros due to the split() being depreciated.  I now set the snow/rain icon based on the wetbulb temp rather then just the set value of the $freezing var.  Fixed/changed the way several dates were displayed to hopefully make them all display the same now and they should display better in all date formats.  Fix an issue some had when they made the right column wider then expected, the sun section was not formatting right then. It should be fixed now.  Several other minor changes.

If you have 6.07 running you just need to put in the new ajax-dashboard6.php to upgrade.

Be sure to check out the new MOBILE DASHBOARD for your smartphone.  This works with version 6.xx of the alt dashboard program and is pretty much plug in three files and add your site's name at the top of the scrip and you're done!  Its the easiest mobile dashboard out there!   

Download link is on the first message of this thread!  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.08
Post by: jgillett on February 18, 2011, 11:08:50 PM
Posted 6.08. Lookin' good.

Thanks for all your work (as always!).
Title: Re: Alternative-Dashboard Version 6.08
Post by: ed2kayak on February 19, 2011, 07:23:51 AM
John,
When I scanned your barcode , I got linked to your mobile site with this error:
Fatal error: call to undefined function langtransstr() in/var/.......,mobile.php on line 283 .

Title: Re: Alternative-Dashboard Version 6.08
Post by: ed2kayak on February 19, 2011, 07:25:01 AM
Scott, using 6.08. Thanks for all the work.
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 19, 2011, 09:36:17 AM
John,
When I scanned your barcode , I got linked to your mobile site with this error:
Fatal error: call to undefined function langtransstr() in/var/.......,mobile.php on line 283 .



Someone needs to uncomment out the lines at the bottom of the mobile dashboard script again!

Scott
Title: Re: Alternative-Dashboard Version 6.08
Post by: jgillett on February 19, 2011, 11:50:02 AM
John,
When I scanned your barcode , I got linked to your mobile site with this error:
Fatal error: call to undefined function langtransstr() in/var/.......,mobile.php on line 283 .
Thanks for the info (I don't have a smartphone!).

Looking into it now.
Title: Re: Alternative-Dashboard Version 6.08
Post by: jgillett on February 19, 2011, 11:53:17 AM
Someone needs to uncomment out the lines at the bottom of the mobile dashboard script again!

Scott
Sorry - they are uncommented. If they weren't, my main page would be failing with the same error, and it's working fine.

Come up with something else -   :grin:  Need help on this one...   :?
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 19, 2011, 11:56:28 AM
Someone needs to uncomment out the lines at the bottom of the mobile dashboard script again!

Scott
Sorry - they are uncommented. If they weren't, my main page would be failing with the same error, and it's working fine.

Come up with something else -   :grin:  Need help on this one...   :?

The same lines are in the mobile version of the script, you have to uncomment them in that part of the script too if you did in the main dashboard script.  I should add that to the instructions, I didn't think to do that.

Scott
Title: Re: Alternative-Dashboard Version 6.08
Post by: saratogaWX on February 19, 2011, 12:17:25 PM
Scott,
This may get a bit simpler in the future.. the V3 PHP/AJAX template sets all have the language translation functions built-in (even the USA template).  Your splendid alternative dashboards will work fine with the Weather-Display plugin, but may not work well with the VWS/WeatherLink/Cumulus plugins since those software packages do not provide many of the tags needed to display the extra data shown in the alternative dashboards.

Best regards,
Ken
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 19, 2011, 12:24:43 PM
Scott,
This may get a bit simpler in the future.. the V3 PHP/AJAX template sets all have the language translation functions built-in (even the USA template).  Your splendid alternative dashboards will work fine with the Weather-Display plugin, but may not work well with the VWS/WeatherLink/Cumulus plugins since those software packages do not provide many of the tags needed to display the extra data shown in the alternative dashboards.

Best regards,
Ken

Thanks Ken,

That will help a lot.  I've been watching your thread on your new beta software, I hope some of the other weather software packages start offering more options, I would really like to switch to something new.  I've even been thinking about trying to get the raw data and just create a file that could be used by any software.  Ah, if only I had more time to play around with it!

Thanks again for all the great code and help Ken!

Scott
Title: Re: Alternative-Dashboard Version 6.08
Post by: ed2kayak on February 19, 2011, 12:46:48 PM
Scott,
This may get a bit simpler in the future.. the V3 PHP/AJAX template sets all have the language translation functions built-in (even the USA template).  Your splendid alternative dashboards will work fine
Best regards,
Ken

Ken thanks for keeping scripts updated. What is the easiest way to update to the new templates. Is there an FAQ, I realize most files aren't customized, but w/each upgrade some files need location specific information changed, etc.
Title: Re: Alternative-Dashboard Version 6.08
Post by: jgillett on February 19, 2011, 02:10:54 PM
Someone needs to uncomment out the lines at the bottom of the mobile dashboard script again!

Scott
Sorry - they are uncommented. If they weren't, my main page would be failing with the same error, and it's working fine.

Come up with something else -   :grin:  Need help on this one...   :?

The same lines are in the mobile version of the script, you have to uncomment them in that part of the script too if you did in the main dashboard script.  I should add that to the instructions, I didn't think to do that.

Scott
Yep - caught that at the last minute, and they were uncommented (not sure what I was thinking in my previous post). Anyway, it would seem that after uncommenting, somebody - no idea who  :roll: - forgot to upload the modified script.

Sheesh - perhaps another nap would help...

Please try it again if somebody has a minute.

Thanks.
Title: Re: Alternative-Dashboard Version 6.08
Post by: saratogaWX on February 19, 2011, 02:26:23 PM
Hi Ed,
For V2 WD/AJAX/PHP template users, probably the simplest way to update is to:

0) take a .zip snapshot of your current template directory as a backup!
1) save your current Settings.php, flyout-menu.xml (and WU-radar-inc.php for USA) to a new directory so you'll have them available after the update to customize the new template.
2) download the Base and Plugin for your weather software
3) unpack the files, replacing your old versions, but DON'T UPLOAD YET.
4) port $SITE entries from your prior Settings.php into the new Settings.php
5) Configure the Settings-weather.php
6) port any <item> additions you had made from your older flyout-menu.xml to the new flyout-menu.xml
7) rename the windex.php to index.php and make the same change in flyout-menu.xml
8 ) check the settings inside the ajaxXXwx.js script to reflect your configuration
9) upload all files/directories to your website.
10) set permissions on the new ./cache directory to 766 or 777 if you see cache file writing errors.

I think that should do it.. let me know if that doesn't work for you.
Keep in mind that the alternative dashboard(s) and ajaxXXwx.js scripts have not necessarily been outfitted with the needed mods, so if you use the alternative dashboard, you may want to put ajax-dashboard and the ajaxWDwx.js script back in service from your backup in step(0).  The new ajax-dashboard has a lot of extra code to gracefully accommodate missing tags (tags that aren't produced by VWS, Cumulus or WeatherLink) and I'm sure Scott hasn't had time to port that to the alternative-dashboards yet.

After you implement the V3 template, then keeping up-to-date is very simple.. just use the template updates page (http://saratoga-weather.org/wxtemplates/updates.php) to get a customized .zip file of all the updates issued since you downloaded the Base/Plugin last.

Best regards,
Ken
Title: Re: Alternative-Dashboard Version 6.08
Post by: ed2kayak on February 19, 2011, 02:37:03 PM
Ken, thanks for info. I file away for future use. I'm currently using Scott's alt-dashboard..
John, yes your QR code is now working.
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 19, 2011, 03:59:42 PM
Keep in mind that the alternative dashboard(s) and ajaxXXwx.js scripts have not necessarily been outfitted with the needed mods, so if you use the alternative dashboard, you may want to put ajax-dashboard and the ajaxWDwx.js script back in service from your backup in step(0). The new ajax-dashboard has a lot of extra code to gracefully accommodate missing tags (tags that aren't produced by VWS, Cumulus or WeatherLink) and I'm sure Scott hasn't had time to port that to the alternative-dashboards yet.

Ken,

Have you given any thought about adding in the extra tags to ajaxWDwx.js for the WD version?  I just did the update to version 3 and like the new version a lot and see much in the code that will make things much easier but I dred having to recreate all the added functionality of having those extra tags available.  In the mean time, I'll look into porting the changes over to the new ajaxWDwx.js but it may be a bit more then my limited knowledge of java can hack!  #-o

Scott
Title: Re: Alternative-Dashboard Version 6.08
Post by: jgillett on February 19, 2011, 06:07:00 PM
John, yes your QR code is now working.
Thank you!
Title: Re: Alternative-Dashboard Version 6.08
Post by: Silversword on February 23, 2011, 04:40:59 PM
Hi Scott,

Finally got a chance to update your latest.  Got back from Southern California.  Looking good and thank you for all the support and updates for this project.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.08
Post by: BurnsvilleWeather on February 23, 2011, 08:48:48 PM
Hi Scott,

Finally got a chance to update your latest.  Got back from Southern California.  Looking good and thank you for all the support and updates for this project.

--Stan Y.
   Maui, Hawaii


Glad to hear it's working good for you! 

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on February 26, 2011, 11:33:00 AM
UPDATE:

I have released version 6.09 of the alternative Dashboard to fix an error I created in the code on version 6.08.  The error could cause you to get a preg_match function error.  If you are seeing that, you will want to replace ajax-dashboard6.php in from the new archive.  This error also effected the mobile dashboard so that has been updated as well to version 1.02.  You can find the download link at the beginning (1st message) of this thread.  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ke9lz on February 26, 2011, 02:11:42 PM
Hi Scott,
Just tryed the new ver and get this:

Fatal error: Call to undefined function langtransstr() in /home/content/k/e/9/ke9lz/html/ajax-dashboard6.php on line 345


Going back to the old ver to get site back up.

Steve
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on February 26, 2011, 02:58:07 PM
Hi Scott,
Just tryed the new ver and get this:

Fatal error: Call to undefined function langtransstr() in /home/content/k/e/9/ke9lz/html/ajax-dashboard6.php on line 345


Going back to the old ver to get site back up.

Steve

Steve,

Just uncomment out the lines at the end of the script again and you will get rid of that message.  It will need to be done on each new update as it is commented out by default.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ke9lz on February 26, 2011, 03:33:39 PM
Yep, keep missing that!  Sorry for the false alarm.  All seems to be working with it now.

Thanks for the great scripts!

Steve
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on February 26, 2011, 04:32:58 PM
UPDATE:

I have released version 6.09 of the alternative Dashboard to fix an error I created in the code on version 6.08.  The error could cause you to get a preg_match function error.  If you are seeing that, you will want to replace ajax-dashboard6.php in from the new archive.  This error also effected the mobile dashboard so that has been updated as well to version 1.02.  You can find the download link at the beginning (1st message) of this thread.  Thanks

Scott

Posted.

Busy fellow! Thanks much.
Title: Re: Alternative-Dashboard Version 6.09
Post by: JupiterJoe on February 26, 2011, 06:24:38 PM
Hi guys!
I LOVE this new format! Just switched to it today.
Everything is running great except for a couple things...
Under my current conditions section, the layout is strange, and I can't seem to find anywhere to fix it! Any ideas?
Also under Almanac, the Moonset time is weird, it reads like this: Moonset:    :58 PM without showing an hour.
I really would appreciate any advice you all might have!
Thank you so much for such an awesome script! I love it!
Joe
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on February 26, 2011, 06:30:29 PM
Hi guys!
I LOVE this new format! Just switched to it today.
Everything is running great except for a couple things...
Under my current conditions section, the layout is strange, and I can't seem to find anywhere to fix it! Any ideas?
Also under Almanac, the Moonset time is weird, it reads like this: Moonset:    :58 PM without showing an hour.
I really would appreciate any advice you all might have!
Thank you so much for such an awesome script! I love it!
Joe

Hey Joe,

The current conditions section is a bit out of wack because you're using the YoWindow scene and it's much larger then the graphic that is supposed to be there.  You need to re-size the graphic or make it span two columns and remove the section that was in the second column.  It will look better if you remove the data for the second column (the text conditions).

The Moon set time is coming from your WD test tags, something in WD is setting that value wrong. See below from your testtags.php

Code: [Select]
$moonsetdate =  '02/26/11'; // moon set date
$moonset =  ':58 PM'; // moon set time
$moonage =  'Moon age: 24 days,2 hours,56 minutes,30%';

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: JupiterJoe on February 26, 2011, 06:50:01 PM
Thank you for that fast reply!
I will definitely check it out! I can't seem to find the area to go back to the current conditions icon, instead of showing the webcam. I know I must have enabled it to show there, but I can't remember where that section is.
That's strange that WD is doing that, I'll have to dig deeper into there and see what's up!
Thanks again! :)
Title: Re: Alternative-Dashboard Version 6.09
Post by: JupiterJoe on February 26, 2011, 07:13:52 PM
Got it! Well, better than I had it before anyways! :) WD fixed itself before I could even investigate! :)
Thank you again!
Title: Re: Alternative-Dashboard Version 6.09
Post by: dw1373 on March 01, 2011, 12:58:12 PM
Scott,

Don't know if you are aware of this yet but the Record Hi and Record lows are giving off bad info. A few sites are showing this including yours and some are running correctly. Just noticed this today.


(http://www.gigharborweather.com/Record-hi-low.jpg)


Brian
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 01, 2011, 01:16:50 PM
Brian,

There needs to be 2 years of history data in your station logs before this will work properly. The fix is to change your settings to get the records from WU, or, if you are new to WD and have station records from another piece of software, import those into WD. Of course, all this assumes you are running WD. I'm not sure about other packages.

HTH...
Title: Re: Alternative-Dashboard Version 6.09
Post by: dw1373 on March 01, 2011, 01:30:54 PM
I've been up since Dec of 2008. I had records last week and over the weekend I updated WD to v10.37Q-33. I wonder if something changed when I did the update.

Brian
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 01, 2011, 02:26:53 PM
Scott,

Don't know if you are aware of this yet but the Record Hi and Record lows are giving off bad info. A few sites are showing this including yours and some are running correctly. Just noticed this today.


(http://www.gigharborweather.com/Record-hi-low.jpg)


Brian

Brian,

Yes, I can confirm that it is doing that, giving bad data.  It seems to be intermittent though as this morning it was showing correct data and I am at work so I can't have done any changes.  It looks like a WD issue. 

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 01, 2011, 03:11:34 PM
Seems to be OK now, although that's subject to change!

Too bad WU can't get it together. I've been downloading my history data (because another program messed it up badly) to load into WD. Numerous errors (-32768.0, a familiar number, pops up frequently).
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 01, 2011, 04:18:52 PM
Seems to be OK now, although that's subject to change!

Too bad WU can't get it together. I've been downloading my history data (because another program messed it up badly) to load into WD. Numerous errors (-32768.0, a familiar number, pops up frequently).

I think it's an intermittent thing that is being pushed out via the testtags.php.  Sometimes its right, sometimes it way off.  I've been watching it for several hours now and it's changed from working to not many times.  I'm sure if I were to say something about it though it would be all on my system so I'll just wait and see if it gets fixed in a future build.  When I get home I'll go back a build or two and see if the issue goes away so it can be narrowed down to a build range at least.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 01, 2011, 05:46:24 PM
I think it's an intermittent thing that is being pushed out via the testtags.php.  Sometimes its right, sometimes it way off.  I've been watching it for several hours now and it's changed from working to not many times.  I'm sure if I were to say something about it though it would be all on my system so I'll just wait and see if it gets fixed in a future build.  When I get home I'll go back a build or two and see if the issue goes away so it can be narrowed down to a build range at least.

Sounds good, Scott. And I do understand your position!
Title: Re: Alternative-Dashboard Version 6.09
Post by: dw1373 on March 01, 2011, 06:03:14 PM
Thanks Scott... I was going crazy trying to figure out myself and looking for the code I would need to change.

Brian
Title: Re: Alternative-Dashboard Version 6.09
Post by: tnwxman on March 01, 2011, 09:27:12 PM
Help suddenly my cloud and wind graphics will not show. I have them set for jpg. I did not chang anything so can someone suggest what is wrong.
Title: Re: Alternative-Dashboard Version 6.09
Post by: tnwxman on March 01, 2011, 09:50:16 PM
sorry meant they are set to gif. Anyway it just stop working.
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 01, 2011, 10:34:26 PM
sorry meant they are set to gif. Anyway it just stop working.

There are two places to set the type of file, the first is in the .PHP file itself, at the top is the setting for the windrose graphic which is set wrong on yours and then in the functions at the bottom is a big array of images for the current conditions, set all 25 of them to either .jpg or .gif to match your site.

Your Ajax updates kick in and overwrite those images when it updates (and that is working on your site) so it's just the ones in the ajax-dashboard6.PHP file that have to be changed.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: tnwxman on March 01, 2011, 11:14:04 PM
// 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
$wrCalm        = 'wr-calm.gif';      // set to full name of graphic for calm display ('wr-calm.gif')

That is what I have in the dashboard. All the 25 down below say gif. Where else should I check.
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 02, 2011, 07:39:43 AM
// 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
$wrCalm        = 'wr-calm.gif';      // set to full name of graphic for calm display ('wr-calm.gif')

That is what I have in the dashboard. All the 25 down below say gif. Where else should I check.

Problem is, your windrose graphics are PNG and your Current Conditions Icons are JPG!

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: tnwxman on March 02, 2011, 07:57:14 AM
Hi Scott,

I was having an IE issue yesterday and that is why I could not see the images. When I reset IE they appeared. Yes, I noticed the png for the win rose and jpg for images. So now my question is how do I get everything in line. I prefer jpg or gif. I believe gif is the normal default so how do I get to display the right image format? What files do I need to change and where in the file do I make the change. Sorry when it comes to programing and scripts I am not experienced. Thanks for your help.

Best regards,
Bob
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 02, 2011, 10:38:30 AM
I just set up Alternative-Dashboard. Could someone point me in the right direction as too which file I need to put my paypal info for the paypal button in Scott's script?

Thanks,

Phil

www.norwalkweather.com
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 02, 2011, 12:03:33 PM
I just set up Alternative-Dashboard. Could someone point me in the right direction as too which file I need to put my paypal info for the paypal button in Scott's script?

Phil,

The exact steps for doing this are on p. 6 of the Setup Instructions PDF in your download.
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 02, 2011, 01:17:33 PM
Thanks.

I have the code I'm just unsure as to which php page I need to past the code!

Phil
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 02, 2011, 02:27:11 PM
I have the code I'm just unsure as to which php page I need to past the code!

Well, since it's part of the alt dashboard you just added, I would suspect that adding it to the ajax-dashboard6.php script would be the place.  :grin:  Look around line 1673 or so. You'll see a form for PayPal already there, similar to the one you just got from your account. That entire form code needs to be replaced with your new code. Nothing else has to be changed there.

No disrespect intended in the above. We were all new at some point.
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 02, 2011, 02:56:05 PM
John,

Thanks so much! Usually once I put these scripts online (I've been using the php scripts for about a year) I don't touch them. Not being a "computer guru" I'm in awe of how this stuff is put together!

Phil
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on March 02, 2011, 03:38:51 PM
Thanks so much! Usually once I put these scripts online (I've been using the php scripts for about a year) I don't touch them. Not being a "computer guru" I'm in awe of how this stuff is put together!

Phil,

You're welcome.

Actually, I've been a web developer for over 19 years, but not PHP. I, too, marvel at the ingenuity of the folks who write this stuff. It's really magic!
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 02, 2011, 04:19:02 PM
Hi Scott,

I was having an IE issue yesterday and that is why I could not see the images. When I reset IE they appeared. Yes, I noticed the png for the win rose and jpg for images. So now my question is how do I get everything in line. I prefer jpg or gif. I believe gif is the normal default so how do I get to display the right image format? What files do I need to change and where in the file do I make the change. Sorry when it comes to programing and scripts I am not experienced. Thanks for your help.

Best regards,
Bob

Basically, you either need to download the images in the format you want and place them in the ajax-images directory or change the settings in the script to match the ones you already have.  I have many images available on my site to download and the originals are always available from Ken's site.  Links available in the links section on my site and in the script section if you need them.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 02, 2011, 04:19:59 PM
I think it's an intermittent thing that is being pushed out via the testtags.php.  Sometimes its right, sometimes it way off.  I've been watching it for several hours now and it's changed from working to not many times.  I'm sure if I were to say something about it though it would be all on my system so I'll just wait and see if it gets fixed in a future build.  When I get home I'll go back a build or two and see if the issue goes away so it can be narrowed down to a build range at least.

Sounds good, Scott. And I do understand your position!

It appears the problem only happened on the 1st day of the month.  I seem to remember something about that once before too.  It seems to work fine again today.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 02, 2011, 07:20:07 PM
Scott,

Thank you for your time and effort with this. I'm using your icons and still have some tweaks to make but really like the look!

Phil

www.norwalkweather.com
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 02, 2011, 09:38:57 PM
I'm having an issue with images on my page.

All my .jpg images are showing up but not .gif (such as the moon). In reading through the messages I see that you can set in ajaxdashboard either .jpg or .gif

I have the sun image displaying (.jpg) but no moon image (.gif). It seems that the few sites I have looked at are using both.

I'm sure I'm missing something simple but how is that accomplished?

Thanks, Phil

www.norwalkweather.com

I


Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 03, 2011, 07:48:29 AM
I'm having an issue with images on my page.

All my .jpg images are showing up but not .gif (such as the moon). In reading through the messages I see that you can set in ajaxdashboard either .jpg or .gif

I have the sun image displaying (.jpg) but no moon image (.gif). It seems that the few sites I have looked at are using both.

I'm sure I'm missing something simple but how is that accomplished?

Phil,

You can download the moon images from Raineer's site, you can find the link in the setup instructions for the alt-dashboard version 6.xx.  The Conditions Icons are set in the setting for the java in ajaxWDwx-settings.js and at the bottom of the main script in the functions section. .  There is a section with about 25 images defined as .gif or .jpg, set those to match what you are using.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ctwx on March 03, 2011, 12:58:46 PM
Scott,

Thanks for your help.

I made the changes to .jpg for the current conditons icons and that works fine.

As for the moon images, everything was right except my moon directory was Moon instead of moon. Those upper/lower case letters get me again!

Phil
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 03, 2011, 07:01:36 PM
Scott,

Thanks for your help.

I made the changes to .jpg for the current conditons icons and that works fine.

As for the moon images, everything was right except my moon directory was Moon instead of moon. Those upper/lower case letters get me again!

Phil

Phil,

That one gets me all the time with file names too!!

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: tonyva on March 05, 2011, 10:42:22 PM
Hi

I am trying to implement the latest alternate dashboard on separate website http://www.keygroup.co.nz/index.php and cannot figure out why i get the snow flake icon, I have tried different options in the config6 file but cannot get rain icon.

thanks
Tony
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 06, 2011, 12:53:40 PM
Hi

I am trying to implement the latest alternate dashboard on separate website http://www.keygroup.co.nz/index.php and cannot figure out why i get the snow flake icon, I have tried different options in the config6 file but cannot get rain icon.

thanks
Tony

Tony,

For some reason, the code is not changing the icon, I will have to look and see if I can find the problem. I've sent you a revised version to try via email.  Please let me know if that fixes the problem.  I think it is cuased by your snow being set to measure in mm rather than cm.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on March 06, 2011, 04:31:31 PM
Scott,
Interesting current conditions description today.
"It is Sleet fall"
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on March 06, 2011, 04:35:20 PM
Weird, I didn't like the first screen shot. So I did it again and the description had changed. Here is the first.
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 06, 2011, 04:40:13 PM
Scott,
Interesting current conditions description today.
"It is Sleet fall"


Yes, some conditions don't quite work well with the text version!

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: tonyva on March 09, 2011, 03:33:33 PM
My FWI displays low on the dashboard and when Ajax kicks in it shows moderate. I have tried changes in ajaxWDwx.js but cannot seem to get it right. http://www.keygroup.co.nz/

thanks

Tony
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on March 09, 2011, 06:52:32 PM
Hi Scott,
i've installed your latest release (6.09) but i've an issue about rain box.
It doesn't show anymore and i don't know why.
Could you give me an eye please?
I've updated my 6.01 version and probably i've forgotten any php code!
I've attached the screenshot and my ajaxdashboard.php copy.
Many thanks in advance,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 09, 2011, 07:33:52 PM
My FWI displays low on the dashboard and when Ajax kicks in it shows moderate. I have tried changes in ajaxWDwx.js but cannot seem to get it right. http://www.keygroup.co.nz/

thanks

Tony

What is it saying in WD, does that match what is being displayed?  When I looked at it tonight it was low and stayed low.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 09, 2011, 07:37:43 PM
Hi Scott,
i've installed your latest release (6.09) but i've an issue about rain box.
It doesn't show anymore and i don't know why.
Could you give me an eye please?
I've updated my 6.01 version and probably i've forgotten any php code!
I've attached the screenshot and my ajaxdashboard.php copy.

Other thing:
i've also installed your mobile dashboard but i've the preg_match errors.
I'm confusing because with the latest rel that issue should be fixed!
Here is the link: http://www.meteocarmignano.it/WWL-mobile.php

Many thanks in advance,

Alessandro

I looked at your site and it seems to be fine in version 6.01 but I'll have to look at the file you sent me more a bit later tonight.  I think there is still some issue with the wetbulb code for those that are not stripping the unit of measure.  I'll work on it some more.  It's hard to know if I fixed it because I can't get it to do it for me.  I think it's PHP version 5.2 because it seems to work better in 5.3.  I'll let you know

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: tonyva on March 09, 2011, 09:02:08 PM
Quote
What is it saying in WD, does that match what is being displayed?

It seems to have corrected itself.

Scott another question, I am using your ajaxWDwx.js, if i want to use ajaxWDwx-settings.js do I need to insert the code in top.php?

Thanks
Tony
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 09, 2011, 09:35:20 PM
Quote
What is it saying in WD, does that match what is being displayed?

It seems to have corrected itself.

Scott another question, I am using your ajaxWDwx.js, if i want to use ajaxWDwx-settings.js do I need to insert the code in top.php?

Thanks
Tony

ajaxWDwx-settings is read by ajaxWDwx.js and needs to be in the same directory as ajaxWDwx.js.  It contains the defaults for the java script so you don't have to re-enter things everytime there is a new version.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on March 10, 2011, 07:04:19 AM
I looked at your site and it seems to be fine in version 6.01 but I'll have to look at the file you sent me more a bit later tonight.  I think there is still some issue with the wetbulb code for those that are not stripping the unit of measure.  I'll work on it some more.  It's hard to know if I fixed it because I can't get it to do it for me.  I think it's PHP version 5.2 because it seems to work better in 5.3.  I'll let you know

Scott


Hi Scott,
thanks for your answer.
Yes, with 6.01 version i haven't had any problem.
With the latest version i don't see anymore the rain/snow box in my dashboard.
It's very strange because i've overwritten only the new code from the new version (6.09) to my old release of ajax-dashboard (6.01).

About line 497 and 507....if i change the functions from:
Code: [Select]
<?php if ((preg_match('|in|i',$uomSnow) and strip_units($wetbulb) > 32) or (preg_match('|cm|i',$uomSnow) and strip_units($wetbulb) > 0)) { ?>
to
Code: [Select]
<?php if ($temperature $Freezing) { ?>
the ajax-dashboard works perfectly again!

I've 5.2.17 PHP version.

Thanks in advance for your support,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on March 13, 2011, 01:17:02 PM
Hi Scott!

I've seen that the date about "All Time Low Temp" on my dashboard is wrong.
It shows 12 August 2010 but it is not possible!!
The relative code is about on line 1793:
Code: [Select]
<td class="data1" style="text-align: center; font-size: 11px;">
                  <?php echo strip_units($recordlowtemp) . $uomTemp ?><br />
                  <?php
                      
if ($WDdateMDY)
                          echo 
date("M-j-Y"mktime(0,0,0,$recordlowtempmonth,$recordlowtempday,$recordlowtempyear));
                      else
                          echo 
date("j-M-Y"mktime(0,0,0,$recordlowtempday,$recordlowtempmonth,$recordlowtempyear));
                   
?>

How to fix this issue?
Thanks in advance,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 13, 2011, 01:32:31 PM
I looked at your site and it seems to be fine in version 6.01 but I'll have to look at the file you sent me more a bit later tonight.  I think there is still some issue with the wetbulb code for those that are not stripping the unit of measure.  I'll work on it some more.  It's hard to know if I fixed it because I can't get it to do it for me.  I think it's PHP version 5.2 because it seems to work better in 5.3.  I'll let you know

Scott


Hi Scott,
thanks for your answer.
Yes, with 6.01 version i haven't had any problem.
With the latest version i don't see anymore the rain/snow box in my dashboard.
It's very strange because i've overwritten only the new code from the new version (6.09) to my old release of ajax-dashboard (6.01).

About line 497 and 507....if i change the functions from:
Code: [Select]
<?php if ((preg_match('|in|i',$uomSnow) and strip_units($wetbulb) > 32) or (preg_match('|cm|i',$uomSnow) and strip_units($wetbulb) > 0)) { ?>
to
Code: [Select]
<?php if ($temperature $Freezing) { ?>
the ajax-dashboard works perfectly again!

I've 5.2.17 PHP version.

Thanks in advance for your support,

Alessandro


Try downloading the latest archive and putting in the newer version of the dashboard file, the code has been fixed to make it work now.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on March 13, 2011, 01:37:43 PM
Hi Scott,
thanks for your answer.

Quote
Try downloading the latest archive and putting in the newer version of the dashboard file, the code has been fixed to make it work now.

That issue showed on the latest version af ajax-dashboard 6.09a!
So, i've just fixed that issue.
I've change the code around the line 1793 from:
Code: [Select]
<td class="data1" style="text-align: center; font-size: 11px;">
                  <?php echo strip_units($recordlowtemp) . $uomTemp ?><br />
                  <?php
                      
if ($WDdateMDY)
                          echo 
date("M-j-Y"mktime(0,0,0,$recordlowtempmonth,$recordlowtempday,$recordlowtempyear));
                      else
                          echo 
date("j-M-Y"mktime(0,0,0,$recordlowtempday,$recordlowtempmonth,$recordlowtempyear));
                   
?>

to:
Code: [Select]
<?php
                      
if ($WDdateMDY
                          echo 
fixup_date($recordlowtempmonth "/" $recordlowtempday "/" $recordlowtempyear);
                      else    
                          echo 
fixup_date($recordlowtempday "/" $recordlowtempmonth "/" $recordlowtempyear);
                   
?>

What do you think about?
Regards,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 13, 2011, 02:10:54 PM
Hi Scott,
thanks for your answer.

Quote
Try downloading the latest archive and putting in the newer version of the dashboard file, the code has been fixed to make it work now.

That issue showed on the latest version af ajax-dashboard 6.09a!
So, i've just fixed that issue.
I've change the code around the line 1793 from:
Code: [Select]
<td class="data1" style="text-align: center; font-size: 11px;">
                  <?php echo strip_units($recordlowtemp) . $uomTemp ?><br />
                  <?php
                      
if ($WDdateMDY)
                          echo 
date("M-j-Y"mktime(0,0,0,$recordlowtempmonth,$recordlowtempday,$recordlowtempyear));
                      else
                          echo 
date("j-M-Y"mktime(0,0,0,$recordlowtempday,$recordlowtempmonth,$recordlowtempyear));
                   
?>

to:
Code: [Select]
<?php
                      
if ($WDdateMDY
                          echo 
fixup_date($recordlowtempmonth "/" $recordlowtempday "/" $recordlowtempyear);
                      else    
                          echo 
fixup_date($recordlowtempday "/" $recordlowtempmonth "/" $recordlowtempyear);
                   
?>

What do you think about?
Regards,

Alessandro

At about line 73 of the dashboard script, what do you have $WDdateMDY set to?  Is it true or false??

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on March 13, 2011, 02:18:54 PM
I've set it to true

Edit: I've just set it to false :) but without success!
The date that these function are wrong!
This function:
Code: [Select]
<?php
                      
if ($WDdateMDY)
                          echo 
date("M-j-Y"mktime(0,0,0,$recordlowtempmonth,$recordlowtempday,$recordlowtempyear));
                      else
                          echo 
date("j-M-Y"mktime(0,0,0,$recordlowtempday,$recordlowtempmonth,$recordlowtempyear));
                   
?>

shows 12 Aug 2010 but the low temp record are 20/12/2009 (20 Dec 2009) like this function shows:
Code: [Select]
<?php
                      
if ($WDdateMDY
                          echo 
fixup_date($recordlowtempmonth "/" $recordlowtempday "/" $recordlowtempyear);
                      else    
                          echo 
fixup_date($recordlowtempday "/" $recordlowtempmonth "/" $recordlowtempyear);
                   
?>

Any ideas?
Thanks,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on March 17, 2011, 08:07:41 AM
I was trying the Saratoga ver 3 template, have since revert back to ver 2. In process icon for current condition ajaxconditionicon2 and ajaxwindiconwr, now don't display. I have not changed any paths., rain icon does display.
Thx
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on March 17, 2011, 10:18:35 AM
ok to answer my own question, the script is asking for jpg. My ajax-images dir., has gif, jpg, and png's. Should they all be the same, which format. I'm not exactly sure  how I changed them,.
I see the ajax-dashboard6.php has a setting to change Wind Rose graphic wr type. So if I change that to gif, they work..
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 17, 2011, 05:04:58 PM
ok to answer my own question, the script is asking for jpg. My ajax-images dir., has gif, jpg, and png's. Should they all be the same, which format. I'm not exactly sure  how I changed them,.
I see the ajax-dashboard6.php has a setting to change Wind Rose graphic wr type. So if I change that to gif, they work..

Version 3 of Ken's script brings ajaxWDwx.js back to Ken's version again, that may be why a lot of things changed.  You need to over-write it with version 3.04 of ajaxWDwx.js and add back in the ajaxWDwx-settings.js if you haven't already.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on March 17, 2011, 07:18:04 PM
Ok Scott Thanks. I"ll have to revisit the ALt-Dashboard, spent too much time today, getting  other changes made.
I really do like the alt-dash, so I'll b back..
 
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 17, 2011, 08:28:02 PM
Ok Scott Thanks. I"ll have to revisit the ALt-Dashboard, spent too much time today, getting  other changes made.
I really do like the alt-dash, so I'll b back..
 

I'm working on a version for Ken's version 3 script too, just got delayed with the high/low/avg script in the mean time!

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: mava on March 27, 2011, 02:34:05 PM
Hi,
I have upgraded from 6.02 to 6.09 and I have one problem.

The time-format on High Today and Low Today is wrong. It shows am/pm and should be 24 h format.

I tried to copy the fixed_time part of the script from 6.02 to 6.09 but that didn't work.

Any suggestions how to fix this ?

www.mavahome.com (http://www.mavahome.com)
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 27, 2011, 04:26:48 PM
I have upgraded from 6.02 to 6.09 and I have one problem.
The time-format on High Today and Low Today is wrong. It shows am/pm and should be 24 h format.
I tried to copy the fixed_time part of the script from 6.02 to 6.09 but that didn't work.
Any suggestions how to fix this ?

I looked at the code for the script and it's using the exact format that WD is supplying from the TestTags file.  I'm not sure if there is a setting in WD to stop it from using AM/PM times or not.  The only think I could do is change the command to a print command (like I did with all the dates) and then specify the time format in a setting file.  That would take a bit of work but is do-able.  Perhaps in my next version I'll try to do that.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: mava on March 28, 2011, 01:02:56 AM
I have upgraded from 6.02 to 6.09 and I have one problem.
The time-format on High Today and Low Today is wrong. It shows am/pm and should be 24 h format.
I tried to copy the fixed_time part of the script from 6.02 to 6.09 but that didn't work.
Any suggestions how to fix this ?

I looked at the code for the script and it's using the exact format that WD is supplying from the TestTags file.  I'm not sure if there is a setting in WD to stop it from using AM/PM times or not.  The only think I could do is change the command to a print command (like I did with all the dates) and then specify the time format in a setting file.  That would take a bit of work but is do-able.  Perhaps in my next version I'll try to do that.

Scott

Hi,
Thanks for the answer Scott.
6.02 was working fine, so I will change back. I also had to change the all time records date to show correct dates. So I think I have to look at my settings also.

rgs
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on March 28, 2011, 07:42:10 AM
I have upgraded from 6.02 to 6.09 and I have one problem.
The time-format on High Today and Low Today is wrong. It shows am/pm and should be 24 h format.
I tried to copy the fixed_time part of the script from 6.02 to 6.09 but that didn't work.
Any suggestions how to fix this ?

I looked at the code for the script and it's using the exact format that WD is supplying from the TestTags file.  I'm not sure if there is a setting in WD to stop it from using AM/PM times or not.  The only think I could do is change the command to a print command (like I did with all the dates) and then specify the time format in a setting file.  That would take a bit of work but is do-able.  Perhaps in my next version I'll try to do that.

Scott

Hi,
Thanks for the answer Scott.
6.02 was working fine, so I will change back. I also had to change the all time records date to show correct dates. So I think I have to look at my settings also.

rgs

Make sure your settings are right for the WD date, that is what I'm using to format dates.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on April 01, 2011, 12:44:35 AM
Scott,

The case of the missing returns. Running 6.09 (for some time with no apparent errors). Not sure when this started, but just noticed it a few days ago. Running Ken's V3 templates with your WDwx. See attachment.

Thanks!
Title: Re: Alternative-Dashboard Version 6.09
Post by: Silversword on April 01, 2011, 02:55:22 AM
Scott,

The case of the missing returns. Running 6.09 (for some time with no apparent errors). Not sure when this started, but just noticed it a few days ago. Running Ken's V3 templates with your WDwx. See attachment.

Thanks!
Hi John,

I kinda remember that we had double a while back.  There could have been a change in WD.  Try looking at that line of script and put back the original line and see what happens. Mine is set like this in the function area and it seems to be working for me:

return "$rtemp$uomTemp<br />$rdate";

See if this works for you.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.09
Post by: stewart45 on April 01, 2011, 04:39:17 AM
Just upgrades to version 6.09, since then the snow flake grafic  seems to be permanently displayed despite the temp being around 12c where can I check the settings for this, not that I've changed anything
Title: Re: Alternative-Dashboard Version 6.09
Post by: ed2kayak on April 01, 2011, 07:32:47 AM
Running Ken's V3 templates with your WDwx. See attachment.
Thanks!

John, was the alt dashboard hard to do w/V3 templates. I just switched to those last week.
And OT is it really going to be in the high 90s today where your at. At looked at your site last night, couldn't believe it was 94 deg.
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on April 01, 2011, 08:53:04 AM
Just upgrades to version 6.09, since then the snow flake grafic  seems to be permanently displayed despite the temp being around 12c where can I check the settings for this, not that I've changed anything

You likely have the snow measurement set at Inches.  Make sure it's set to cm

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on April 01, 2011, 08:55:31 AM
Scott,

The case of the missing returns. Running 6.09 (for some time with no apparent errors). Not sure when this started, but just noticed it a few days ago. Running Ken's V3 templates with your WDwx. See attachment.

Thanks!

Yup, I see that happening too, there must have been a change in WD or something.  I'll look at it when I get back home on Sunday.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on April 01, 2011, 12:58:46 PM
Hi John,

I kinda remember that we had double a while back.  There could have been a change in WD.  Try looking at that line of script and put back the original line and see what happens. Mine is set like this in the function area and it seems to be working for me:

return "$rtemp$uomTemp<br />$rdate";

See if this works for you.

Hi Stan,

Yep, that fixed it. Just haven't had the time to get down there and take a look.

Now I'm seeing a major problem in the USA Extremes section of the nav bar (NOT because of this fix, obviously). I'm off to that topic.  :sad:

Thanks!
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on April 01, 2011, 01:06:45 PM
John, was the alt dashboard hard to do w/V3 templates. I just switched to those last week.
And OT is it really going to be in the high 90s today where your at. At looked at your site last night, couldn't believe it was 94 deg.

Ed,

No trouble at all. The only 'problem' I had was, in the past I've needed to uncomment the two langtrans functions at the very bottom of the dashboard script. Got a can't-call-function-twice error (something of the sort). Ken has added those functions to V3, so the uncomment is no longer needed. I saw them in V3 - just forgot they were there.

As for the temps - yep, looking for at least 97 here today. That will break another record (2 days in a row). My apologies (I guess...) to those still stuck in snow and ultra-cold weather.

Yuma, way down in the SW corner of AZ, officially hit 100 yesterday. Think we're in for a nasty summer.
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on April 01, 2011, 01:10:27 PM
Yup, I see that happening too, there must have been a change in WD or something.  I'll look at it when I get back home on Sunday.

Scott,

As you probably noticed, Stan's fix works.

Thanks.
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on April 01, 2011, 05:37:19 PM
Hi guys,
which settings would i change to set the time format from am/pm to 24hrs.
I've tried to modify that value in Settings.php, Ajax-gizmo.php, AjaxWDwx.js, AjaxWDwx-settings.js but without success.
Thanks in advance for your support,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: mava on April 02, 2011, 07:16:25 AM
Hi guys,
which settings would i change to set the time format from am/pm to 24hrs.
I've tried to modify that value in Settings.php, Ajax-gizmo.php, AjaxWDwx.js, AjaxWDwx-settings.js but without success.
Thanks in advance for your support,

Alessandro
Hi,
Got a tip from Torjan at regnskvett to replace the following code in AjaxWDwx at spprox line 1636

Replace this

 set_ajax_obs("ajaxndate"   , WDdt.date("F d, Y")); // Apr 16, 2009
      set_ajax_obs("ajaxndate2"  , WDdt.date("F d, Y"));  // April 16, 2009
      set_ajax_obs("ajaxntime"   , WDdt.date("g:i a"));    // 2:37 pm
      set_ajax_obs("ajaxntimess" , WDdt.date("g:i:s a"));  // 2:37:07 pm
      set_ajax_obs("ajaxdname"   , WDdt.date("D"));      // Mon

with this

 set_ajax_obs("ajaxndate"   , WDdt.date("M j, Y")); // Apr 16, 2009
      set_ajax_obs("ajaxndate2"  , WDdt.date("d-M-Y"));  // 16-Apr-2009
      set_ajax_obs("ajaxntime"   , WDdt.date("H:i"));    // 14:37
      set_ajax_obs("ajaxntimess" , WDdt.date("H:i:s"));  // 14:37:07
      set_ajax_obs("ajaxdname"   , WDdt.date("D"));      // Mon

That fixed my clock from am/pm to 24 hour

rgs
Title: Re: Alternative-Dashboard Version 6.09
Post by: i_fiorentino on April 02, 2011, 05:58:48 PM
Fixed!  :grin:
Many thanks for the trick!
Regards,

Alessandro
Title: Re: Alternative-Dashboard Version 6.09
Post by: WraxallDave on May 18, 2011, 10:46:45 AM
Hi Scott,

Could you take a look at my site and figure at why I cannot get the Windrose icons in anything but English.

I have install Ken's multilanguage PHP template, downloaded the wr-de-W.png multilanguage windrose icons and added your latest alternate desktop and ajaxWDwx.js file and altered as required. The problem is if I view the page in console mode in Firefox the ajax is trying to find

.\ajax-images\wr--NO.png when i select German. Basically in any browser the Ajax options fails to find the non-English Wind icon.

My site is http://www.wraxall-weather.co.uk/index.php (http://www.wraxall-weather.co.uk/index.php) , could you take a look and offer any suggestions as to what I may have missed.

Thanks,  Dave
Title: Re: Alternative-Dashboard Version 6.09
Post by: Torjan on May 21, 2011, 07:51:43 AM
Hi!
In the current Sun Energy there is a 'Feels like' wondering where does this value come from?

Torjan
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 21, 2011, 08:50:07 AM
Could you take a look at my site and figure at why I cannot get the Windrose icons in anything but English.

I have install Ken's multilanguage PHP template, downloaded the wr-de-W.png multilanguage windrose icons and added your latest alternate desktop and ajaxWDwx.js file and altered as required. The problem is if I view the page in console mode in Firefox the ajax is trying to find

.\ajax-images\wr--NO.png when i select German. Basically in any browser the Ajax options fails to find the non-English Wind icon.

Hi Dave,

Sorry for the slow response, have been out of town for the past week.  I looked at your site and changed language a couple of times and for the most part the windrose graphic works but only for those conditions that match the english version (N = N in the selected language for example).  You would need to create an additional graphic for the letters of the compus that match the letters used in each of the other languages.  So if a language uses NNV for one of the compus settings, there has to be a wr-NNV.png image available too.  I never thought about it before to see if Ken's original script is doing something different there to do the translations back to the english version for the image.  I will take a look and see if I missed something ot if there is a simple way to do that.  Give me a bit of time though, I have a lot of things going on right now that keep me out of town and away from my computer. 

Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 21, 2011, 08:52:02 AM
Hi!
In the current Sun Energy there is a 'Feels like' wondering where does this value come from?

Torjan

Torjan,

The "Feels Like" reading is actually a built-in reading from Weather-Display.  You would need to check with Brian on the weather-display forum to get the actual method he is using to calculate that value.  I'm just displaying it. 

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: WraxallDave on May 21, 2011, 09:38:45 AM
Hi Scott,

And thanks for getting back to me. I realised I needed to create translated directions like "NNV.png", but the problem is that the statement

src = wrImg.src.replace(/(#LANG#|\{LANG\})/i, wrImg.lang);     on line 1918 of ajaxWDwx.js never produces wr-de- for German or wr-af- for Afrikans, i just get wr-- for everything. I can change the ajax-dashboard.php to get the right file but the ajaxWDwx file overwrites it with an icon name that does not exist.

It was my belief that if you change language to German you should get wr-de-NNO.png, but the console log in Firefox 4 say the file is looking for an icon called wr--NNO.png the de is missing.

var wrImg =
   {src   : imgDir+"wr-{LANG}{DIR}.png"  // where {DIR} will = wind dir (e.g. NNW), {LANG} = wrImg.lang
   ,width : 58 ,height: 58 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : "" // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,lang  : "-"     // with trailing dash (e.g. "nl-" will result in graphic name: "./ajax-images/wr-nl-SSE.gif")
   ,calm  : "calm" // substitution for {DIR} (e.g "wr-calm.gif") ... specify "" if not to be shown or not available
   ,xlate : true   // translate wind direction for icon names (multilingual system)
   ,useTag: "ajaxwindiconwr" // ajax tagname to use where the windrose icon should be placed
   };

This is the definition at the top of my ajaxWDwx.js

Thanks, Dave
 
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 21, 2011, 11:05:10 AM
Hi Scott,

And thanks for getting back to me. I realised I needed to create translated directions like "NNV.png", but the problem is that the statement

Dave,

Drop me a private note with your email and I'll send you a new version to try and see if it fixes your problem. 

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: Torjan on May 21, 2011, 04:08:56 PM
Hi!
In the current Sun Energy there is a 'Feels like' wondering where does this value come from?

Torjan

Torjan,

The "Feels Like" reading is actually a built-in reading from Weather-Display.  You would need to check with Brian on the weather-display forum to get the actual method he is using to calculate that value.  I'm just displaying it. 

Scott


Hi!
I think I expressed myself badly. There are so many different in WD, wondering what this is.
is it Apparent Temp,THSW or someting else.


Torjan
Title: Re: Alternative-Dashboard Version 6.09
Post by: johnah on May 21, 2011, 04:40:27 PM
Hi Scott

I just started using the Alternative-Dashboard v. 6.09 and its to wide for the page. I have searched the forum and I believe it has something to do with the cloud graphic. Would you take a look and let me know what I need to change.

http://www.herringtonventures.com

Thanks
John
Title: Re: Alternative-Dashboard Version 6.09
Post by: jgillett on May 21, 2011, 07:28:05 PM
Nope, it's the UV Summary. When that goes to two words ("Very High") and/or three digits (nn.n) it pushes it off the right side.

Scott is aware.
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 21, 2011, 10:24:26 PM
Nope, it's the UV Summary. When that goes to two words ("Very High") and/or three digits (nn.n) it pushes it off the right side.

Scott is aware.

With any luck I will have the fix ready Sunday to beta test.

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: WraxallDave on May 22, 2011, 06:35:38 AM
Scott,

It is my opinion that the file ajaxWDws.js was designed for a fixed language and cannot cope with a language selection option. You can fix the ajax-dashboard PHP file to get the right file name but it is over written by the ajaxWDws.js script which cannot cope with a language switch.

Dave
Title: Re: Alternative-Dashboard Version 6.09
Post by: jjmcnelly on May 22, 2011, 03:09:59 PM
Hi Scott,

I am working on setting up the new script.  I am missing one value on the new script and am not sure how to fix it.  I added the new testtags to the testags file, but the value "Last YTD Rain:1 0.00 in"  shows 0.  www.napavineweather.info/indextest.php (http://www.napavineweather.info/indextest.php).

Thanks,
James McNelly 
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 22, 2011, 03:33:28 PM
Ok, I have changed how the UV Forcast is displayed so that it no longer pushes out of it's column when the value gets to VERY HIGH or other longer words.  I will need a couple people to beta test the changes and see how they work before I release the change just in case I'm missing something.  Send me a private message with your email address and I will send you the updated script.  This is for version 6.09a only!

I've attached a few sample images of the changes

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 22, 2011, 03:39:59 PM
I am working on setting up the new script.  I am missing one value on the new script and am not sure how to fix it.  I added the new testtags to the testags file, but the value "Last YTD Rain:1 0.00 in"  shows 0. 

James,
I looked and your testtags have the correct value for that reading but it shows 0 (See below)

Code: [Select]
$raincurrentweek = '0.929';
$raintodatemonthago = '0.00';
$raintodateyearago = '0.00';
$timeoflastrainalways = ' 4:38 PM'

How many years do you have reading for?

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jjmcnelly on May 22, 2011, 06:56:48 PM
I am working on setting up the new script.  I am missing one value on the new script and am not sure how to fix it.  I added the new testtags to the testags file, but the value "Last YTD Rain:1 0.00 in"  shows 0. 

James,
I looked and your testtags have the correct value for that reading but it shows 0 (See below)

Code: [Select]
$raincurrentweek = '0.929';
$raintodatemonthago = '0.00';
$raintodateyearago = '0.00';
$timeoflastrainalways = ' 4:38 PM'

How many years do you have reading for?

Scott

I have readings since 2006.  Maybe it is a WD problem?

Thanks,
James
Title: Re: Alternative-Dashboard Version 6.09
Post by: BurnsvilleWeather on May 22, 2011, 06:58:36 PM
I am working on setting up the new script.  I am missing one value on the new script and am not sure how to fix it.  I added the new testtags to the testags file, but the value "Last YTD Rain:1 0.00 in"  shows 0. 

James,
I looked and your testtags have the correct value for that reading but it shows 0 (See below)

Code: [Select]
$raincurrentweek = '0.929';
$raintodatemonthago = '0.00';
$raintodateyearago = '0.00';
$timeoflastrainalways = ' 4:38 PM'

How many years do you have reading for?

Scott

I have readings since 2006.  Maybe it is a WD problem?

Thanks,
James

It might be as the reading come from WD in that tag and it clearly shows 0 in your tags.  Have you looked in WD itself to see what it shows?

Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 22, 2011, 07:05:29 PM
UPDATE:  Version 6.10 is now available to download (see first message in this thread).  The latest version changes the UV Forecast into 3 icons rather then the words.  In the past, the words would push the column too wide when the longer words were displayed.  I also removed the year from the date in the UV Forecast. 

Thanks to all those that beta tested the changes, I had enough people try it to feel confident it's working well. 

Scott
Title: Re: Alternative-Dashboard Version 6.09
Post by: jjmcnelly on May 22, 2011, 07:25:26 PM
Quote

It might be as the reading come from WD in that tag and it clearly shows 0 in your tags.  Have you looked in WD itself to see what it shows?



It looks like it is reported correctly in WD.  See Graphic.
Title: Re: Alternative-Dashboard Version 6.09
Post by: jjmcnelly on May 22, 2011, 07:30:22 PM
Quote

It might be as the reading come from WD in that tag and it clearly shows 0 in your tags.  Have you looked in WD itself to see what it shows?



It looks like it is reported correctly in WD.  See Graphic.

That's weird, All I did is View/Trends and now it is working!
James
Title: Re: Alternative-Dashboard Version 6.10
Post by: jjmcnelly on May 22, 2011, 08:40:38 PM
One last question Scott,

I made a change to the end of ajax-dashboard6.php.  I added on this day in the us section.  It has 2 validation errors.  I used the mostly the same code I did on my ajax-dashboard.php file, which validates.  Check www.napavineweather.info/indextest.php (http://www.napavineweather.info/indextest.php).  Any Ideas?

Thanks,
James
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 22, 2011, 08:47:39 PM
UPDATE:  Version 6.10 is now available to download (see first message in this thread). 
Scott

Thanks Scott, working here, and now contained within the boundaries.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 22, 2011, 09:14:55 PM
I made a change to the end of ajax-dashboard6.php.  I added on this day in the us section.  It has 2 validation errors.  I used the mostly the same code I did on my ajax-dashboard.php file, which validates.  Check www.napavineweather.info/indextest.php (http://www.napavineweather.info/indextest.php).  Any
James,

I think you are forgetting to use a TR and a TD to start before the TABLE command.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 22, 2011, 09:15:58 PM
UPDATE:  Version 6.10 is now available to download (see first message in this thread). 
Scott

Thanks Scott, working here, and now contained within the boundaries.

Great, another one bites the dust on the issues list!
Title: Re: Alternative-Dashboard Version 6.10
Post by: jjmcnelly on May 22, 2011, 10:04:09 PM
I made a change to the end of ajax-dashboard6.php.  I added on this day in the us section.  It has 2 validation errors.  I used the mostly the same code I did on my ajax-dashboard.php file, which validates.  Check www.napavineweather.info/indextest.php (http://www.napavineweather.info/indextest.php).  Any
James,

I think you are forgetting to use a TR and a TD to start before the TABLE command.

Scott

You know, I added it once, and I had more errors, but then when you mentioned it in your post, I took a second look and found that I closed them in the wrong place.  All is good now.  I am not too knowledgeable when it comes to coding.

Thanks
James
Title: Re: Alternative-Dashboard Version 6.10
Post by: WraxallDave on May 23, 2011, 07:17:39 AM
Hi Scott,

I have done two pages to demonstrate the problems of using multi-language with your dashboard.

http://www.wraxall-weather.co.uk/index.php (http://www.wraxall-weather.co.uk/index.php)   ; This one uses you ajaxWDwx.js and dashboard and if you change the language the wind icon are soon lost.

http://www.wraxall-weather.co.uk/wxtest.php (http://www.wraxall-weather.co.uk/wxtest.php)  ; This one uses Ken's dashboard and ajaxWDwx.js and if you change the language everything works. Ken's does not translate the icon direction so in German you get wr-de-SE.png.

To make this work I have rename and amended Settings.php, Settings-Weather.php, Ken's dashboard and ajaxWDwx.js.

Try the two examples changing the language and you will see the problems with your Alt-dashboard.

The dashboard file you sent me had the same problem.

Looking forward to hearing from you,

Dave
Title: Re: Alternative-Dashboard Version 6.10
Post by: Silversword on May 24, 2011, 02:50:47 AM
Hi Scott,

Got your up dated version up and running.  During my night time hours, looks a lot better and all lines up whereas, before my night time hour, some places goes askew. Day light hours was not a problem as my UV and solar sensors take over those two spots..

Thank you for the fix and determination for this project.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 24, 2011, 07:44:23 AM
Got your up dated version up and running.  During my night time hours, looks a lot better and all lines up whereas, before my night time hour, some places goes askew. Day light hours was not a problem as my UV and solar sensors take over those two spots..

Thank you for the fix and determination for this project.

Stan

Glad it's working better!  Still have a few more issues to work with but I'm getting closer to having most of the issues resolved.  Just not much time to work on things right now!

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 28, 2011, 11:30:08 AM
Hi Scott,

Thanks for the great script.  It's amazing what you have included in the modified dashboard.

When you get a chance could you check on the 6.10 UV icon display. During the day I get an icon, but if the UV highest reading is, say, 2.2, the 3 icon shows up.  Is the rounding algorithm going up?

At night when it switches to the forecast mode, I just get placeholders for the icons.

I tried to apply my rudimentary programming skills to the problems by adding a precision of 2 to the php rounding routine. All I can say right now is that I apparently didn't break anything by making this change to the dashboard code:
Line 1412
Code: [Select]
...<img src="ajax-images/UV<?php echo round($VPuv,2); ?>.gif"...and Lines 1444, 1451, and 1458
Code: [Select]
<img src="ajax-images/UV<?php echo round($UVfcstUVI[$UVptr],2); ?>.gif"...
We'll see what happens the rest of today and tonight.  Click on my signature graphic to see the results.

All I know right now is that the highest daytime UV Index is higher than my current widely fluctuating UV Index on a partly cloudy day.
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 28, 2011, 11:40:00 PM
I finally went to school on php's round() function and I think it's broken, at least on GoDaddy.  It is supposed to default to a whole number rounding up or down at .5, but apparently it doesn't.  When I entered 0 as the rounding precision the correct icons display in the dashboard.  In order to get the icons to match the forecast numbers in 'wxuvforecast.php' I had to enter an offset of -1 for the day, and comment out the last two UVptr++'s in the routine.  I also qualified the icon directory with a leading slash and used all lower case.  This code works tonight for me:
Code: [Select]

$UVptr = 0;  // index for which day to use
?>
        <tr>
          <td class="datahead" style="text-align:center"><?php echo $leftHead?></td>
          <td class="datahead" style="text-align:center"><?php echo $rightHead?></td>
        </tr>
        <tr>
          <td align="center">
    <table width="180" border="0" cellpadding="2" cellspacing="0">
<?php
  
if (($haveUV) && ($dayornight == 'Day')) {  //  Have a UV sensor .. show realtime data & not night
?>

            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">
                  <span class="ajax" id="ajaxuv" style="font-size: 14px;"><?php echo $VPuv?></span>
                  <div style="padding-top: 3px;"><?php langtrans('Sunburn in'); ?></div>
                  <span class="ajax" id="ajaxuvburnrate"><?php echo $burntime?></span> <?php langtrans('Minutes'); ?>
               </td>
               <td width="30%" align="center">
                  <span class="ajax" id="ajaxuvimg">
                     <img src="/ajax-images/uv<?php echo round($VPuv,0); ?>.gif" height="65" width="34" alt="" title="Current UV rate" />
                  </span>
               </td>
               <td width="35%" class="data2" style="text-align:center; font-size: 9px;">
                  <?php langtrans('Highest'); ?>:<br />
                  <?php echo $highuvtime?><br />
                  <span style="font-size: 14px;"><?php echo $highuv?></span>
               </td>
            </tr>
<?php } else {  //  don't have UV sensor .. show UV forecast instead ?>
                 <?php
                   
if ($haveUV) { // Show todays high if evening or yesterdays if morning
                 
?>

            <tr>
            <td align="center" colspan="3" nowrap="nowrap" class="data2" style="text-align: center; font-size: 10px;">

                  <?php if ($time_hour 12) { // Display Summary if in the evening ?>
                  <?php langtrans('High Today'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuv?>&nbsp;@&nbsp;<?php echo $highuvtime?></span>
                  <?php $UVptr++; // increment counter ?>
                  <?php } else { ?>
                  <?php langtrans('High Yest'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuvyest?>&nbsp;@&nbsp;<?php echo $highuvyesttime?></span>
                  <?php ?>
               </td>
            </tr>
  <?php ?>
            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">

      <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
    <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
    <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
</td>
                <td align="center" width="30%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
      <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
    <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
    <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
                </td>
                <td align="center" width="35%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
      <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
    <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
    <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php //$UVptr++; // increment counter ?>
</td>
              </tr>
  <?php //$UVptr++; // increment counter ?>
<?php // end $haveUV  ---------------------------------------- ?>

Who knows what will happen tomorrow with this UV display.
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 29, 2011, 04:12:34 AM
Well, now I know what happens. The day didn't increment properly.  It works before dawn if I revert all of the $UVptr-1 entries to $UVptr, comment out the initial $UVptr++ in the PM portion of the conditional, and uncomment the third day's $UVptr++ like so:
Code: [Select]

$UVptr = 0;  // index for which day to use
?>
        <tr>
          <td class="datahead" style="text-align:center"><?php echo $leftHead?></td>
          <td class="datahead" style="text-align:center"><?php echo $rightHead?></td>
        </tr>
        <tr>
          <td align="center">
   <table width="180" border="0" cellpadding="2" cellspacing="0">
<?php
  
if (($haveUV) && ($dayornight == 'Day')) {  //  Have a UV sensor .. show realtime data & not night
?>

            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">
                  <span class="ajax" id="ajaxuv" style="font-size: 14px;"><?php echo $VPuv?></span>
                  <div style="padding-top: 3px;"><?php langtrans('Sunburn in'); ?></div>
                  <span class="ajax" id="ajaxuvburnrate"><?php echo $burntime?></span> <?php langtrans('Minutes'); ?>
               </td>
               <td width="30%" align="center">
                  <span class="ajax" id="ajaxuvimg">
                     <img src="/ajax-images/uv<?php echo round($VPuv,0); ?>.gif" height="65" width="34" alt="" title="Current UV rate" />
                  </span>
               </td>
               <td width="35%" class="data2" style="text-align:center; font-size: 9px;">
                  <?php langtrans('Highest'); ?>:<br />
                  <?php echo $highuvtime?><br />
                  <span style="font-size: 14px;"><?php echo $highuv?></span>
               </td>
            </tr>
<?php } else {  //  don't have UV sensor .. show UV forecast instead ?>
                 <?php
                   
if ($haveUV) { // Show todays high if evening or yesterdays if morning
                 
?>

            <tr>
            <td align="center" colspan="3" nowrap="nowrap" class="data2" style="text-align: center; font-size: 10px;">

                  <?php if ($time_hour 12) { // Display Summary if in the evening ?>
                  <?php langtrans('High Today'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuv?>&nbsp;@&nbsp;<?php echo $highuvtime?></span>
                  <?php $UVptr++; // increment counter ?>
                  <?php } else { ?>
                  <?php langtrans('High Yest'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuvyest?>&nbsp;@&nbsp;<?php echo $highuvyesttime?></span>
                  <?php  ?>
               </td>
            </tr>
 <?php ?>
            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">

     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
</td>
                <td align="center" width="30%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
                </td>
                <td align="center" width="35%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
</td>
              </tr>
 <?php //$UVptr++; // increment counter ?>
My addled brain failed to notice that I had effectively neutralized the first $UVptr++ statement with my $UVptr-1 modifications.  I also noticed that WWL-mobile.php was skipping tomorrow's date before midnight last night but is correct early this AM, so I also commented out the $UVptr++ in the PM portion of WWL-mobile.php.  Dawn and PM will bring new challenges, I'm sure.

Edit May29 10PM CDT

1) Forgot to watch the clock as I worked past midnight.  Removed all $UVptr++ modifications in ajax-dashboard6.php and WWL-mobile.php this evening except the last one in ajax-dashboard6.php in line 1463 because I was unaware of the actual date!  All of my icons are now displaying with the correct date and data.

2) The icon directory modifications in ajax-dashboard6.php remain in place and it's working correctly, I think.

3) I changed the above code to what is working for me.


Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 29, 2011, 06:57:20 PM
Scott, (or others)
Just added solar + uv to my Davis.
You have solar icons on your site. I couldn't find those settings.
Also I had to rename the UV icons to lower case to get it to display. (eg UV01.gif to uv01.gif)
Lastly maybe related to case sensitivity Bashewa's weather cloud shows a broken image.
http://cvweather.org/index.php
Have a great Holiday WE.
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 29, 2011, 11:09:48 PM
Also I had to rename the UV icons to lower case to get it to display. (eg UV01.gif to uv01.gif)
Lastly maybe related to case sensitivity Bashewa's weather cloud shows a broken image.
http://cvweather.org/index.php

This is the very same problem I struggled with.  Lowercase UV icon names along with forcing round() to the supposed default behavior of whole numbers somehow redisplayed them for me as well.
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 30, 2011, 08:15:26 AM
Jerry,
Thanks for detailed posts. I have mine mostly figured out.  I did have some bad temps this morning.
$maxtemp =  '-148.0';   // today's maximum temperature
$maxtempt =  '5:43 PM';   // time this occurred
$mintemp =  '212.0';   // today's minimum temperature

When I added the new sensors yesterday, initially the Davis consul didn't see them. I had to recheck all the hardware connections., then fool around with the Davis consul. Finally they worked. Then I changed settings in WD, I should have rebooted that netbook (Weather Display), once i did that (this am) all returned to normal. I think.

http://www.gwwilkins.org/ looks good this morning.
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 30, 2011, 11:36:50 AM
Scott the feels like temp seem high?
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 30, 2011, 01:48:09 PM
Scott the feels like temp seem high?

It's a calculated number from Weather Display, if you have high humidity and dewpoints that would be understandable

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 30, 2011, 01:49:21 PM
Hi Ed,

The solar icons are not quite ready yet, they are part of the next update and will be optional.

Scott

Scott, (or others)
Just added solar + uv to my Davis.
You have solar icons on your site. I couldn't find those settings.
Also I had to rename the UV icons to lower case to get it to display. (eg UV01.gif to uv01.gif)
Lastly maybe related to case sensitivity Bashewa's weather cloud shows a broken image.
http://cvweather.org/index.php
Have a great Holiday WE.
Ed

Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 30, 2011, 01:55:34 PM

The solar icons are not quite ready yet, they are part of the next update and will be optional.
Scott
Great, thanks.
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 30, 2011, 01:56:42 PM
Scott the feels like temp seem high?

It's a calculated number from Weather Display, if you have high humidity and dewpoints that would be understandable

Scott

So its different than heat index?
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 30, 2011, 01:58:52 PM
Yes, I believe so.  I think there is a topic on it on the weather display forum if you want to search there for it.  I can't remember exactly how it is determined now.

Scott

Scott the feels like temp seem high?

It's a calculated number from Weather Display, if you have high humidity and dewpoints that would be understandable

Scott

So its different than heat index?
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 31, 2011, 08:01:25 AM
My home page consistently failed to validate as Valid XHTML 1.0 with  the validator.w3.org/check?uri=referrer engine giving me a </table> error.  This was occurring in the section of code that would display snow depth and/or lightning data, neither of which I currently display in the dashboard. Here is the code that eliminated the validation error:
Code: [Select]

<?php // end $useSNOW  ---------------------------------------- ?>
<?php if ((!$useLIGT) and ((!$useSNOW) and (!$displaySnow))) { ?>
            <tr>
              <td class="data2" colspan="2" style="text-align:center;">
                <?php echo "This Space Filled Soon" ?>
              </td>
            </tr>
<?php } ?>
      </table>
I added the lines between the first and last lines which display an empty message, and the page now validates.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 31, 2011, 01:42:38 PM
Yes, I would guess that it would fail a validation because the spot needs the table code there to hold the space, it was not designed to have nothing there as an option.  I will look into making that an option in future releases.

Scott

My home page consistently failed to validate as Valid XHTML 1.0 with  the validator.w3.org/check?uri=referrer engine giving me a </table> error.  This was occurring in the section of code that would display snow depth and/or lightning data, neither of which I currently display in the dashboard. Here is the code that eliminated the validation error:
Code: [Select]

<?php // end $useSNOW  ---------------------------------------- ?>
<?php if ((!$useLIGT) and ((!$useSNOW) and (!$displaySnow))) { ?>
            <tr>
              <td class="data2" colspan="2" style="text-align:center;">
                <?php echo "This Space Filled Soon" ?>
              </td>
            </tr>
<?php } ?>
      </table>
I added the lines between the first and last lines which display an empty message, and the page now validates.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 31, 2011, 01:44:40 PM
It may be a php version thing as you can see from the image attached, it does not round bad on my version, it was at 8.2 UV and the image says 8

Scott


I finally went to school on php's round() function and I think it's broken, at least on GoDaddy.  It is supposed to default to a whole number rounding up or down at .5, but apparently it doesn't.  When I entered 0 as the rounding precision the correct icons display in the dashboard.  In order to get the icons to match the forecast numbers in 'wxuvforecast.php' I had to enter an offset of -1 for the day, and comment out the last two UVptr++'s in the routine.  I also qualified the icon directory with a leading slash and used all lower case.  This code works tonight for me:
Code: [Select]

$UVptr = 0;  // index for which day to use
?>
        <tr>
          <td class="datahead" style="text-align:center"><?php echo $leftHead?></td>
          <td class="datahead" style="text-align:center"><?php echo $rightHead?></td>
        </tr>
        <tr>
          <td align="center">
   <table width="180" border="0" cellpadding="2" cellspacing="0">
<?php
  
if (($haveUV) && ($dayornight == 'Day')) {  //  Have a UV sensor .. show realtime data & not night
?>

            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">
                  <span class="ajax" id="ajaxuv" style="font-size: 14px;"><?php echo $VPuv?></span>
                  <div style="padding-top: 3px;"><?php langtrans('Sunburn in'); ?></div>
                  <span class="ajax" id="ajaxuvburnrate"><?php echo $burntime?></span> <?php langtrans('Minutes'); ?>
               </td>
               <td width="30%" align="center">
                  <span class="ajax" id="ajaxuvimg">
                     <img src="/ajax-images/uv<?php echo round($VPuv,0); ?>.gif" height="65" width="34" alt="" title="Current UV rate" />
                  </span>
               </td>
               <td width="35%" class="data2" style="text-align:center; font-size: 9px;">
                  <?php langtrans('Highest'); ?>:<br />
                  <?php echo $highuvtime?><br />
                  <span style="font-size: 14px;"><?php echo $highuv?></span>
               </td>
            </tr>
<?php } else {  //  don't have UV sensor .. show UV forecast instead ?>
                 <?php
                   
if ($haveUV) { // Show todays high if evening or yesterdays if morning
                 
?>

            <tr>
            <td align="center" colspan="3" nowrap="nowrap" class="data2" style="text-align: center; font-size: 10px;">

                  <?php if ($time_hour 12) { // Display Summary if in the evening ?>
                  <?php langtrans('High Today'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuv?>&nbsp;@&nbsp;<?php echo $highuvtime?></span>
                  <?php $UVptr++; // increment counter ?>
                  <?php } else { ?>
                  <?php langtrans('High Yest'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuvyest?>&nbsp;@&nbsp;<?php echo $highuvyesttime?></span>
                  <?php ?>
               </td>
            </tr>
 <?php ?>
            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">

     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
</td>
                <td align="center" width="30%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php $UVptr++; // increment counter ?>
                </td>
                <td align="center" width="35%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
     <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                                    <?php echo date("M-d",$UVshortdate?><br/>
   <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-1],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr-1]; ?></a></b>
                                    <?php //$UVptr++; // increment counter ?>
</td>
              </tr>
 <?php //$UVptr++; // increment counter ?>
<?php // end $haveUV  ---------------------------------------- ?>

Who knows what will happen tomorrow with this UV display.
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on May 31, 2011, 06:51:47 PM
It may be a php version thing as you can see from the image attached, it does not round bad on my version, it was at 8.2 UV and the image says 8

Scott
That was my suspicion when I saw that the existing code worked flawlessly on your website.  There are a few others with this issue as well, I think:
http://cvweather.org/index.php is an example site that displays placeholders when viewed after dark (at least it was night before last.)  As you can see from my posts I was slogging up a steep learning curve while trying to sort this out.

Thanks for all of your hard work and help!
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on May 31, 2011, 09:28:33 PM
Hi Jerry.
No uv image after dark. I see what you mean. Scott has uv 0 icon.

Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on May 31, 2011, 10:38:20 PM
Ed,

The script is looking for:

Code: [Select]
http://cvweather.org/ajax-images/UV8.gif
Do you have that file in the specified directory?  Caps do make a difference!!!

Scott

Hi Jerry.
No uv image after dark. I see what you mean. Scott has uv 0 icon.

Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on June 01, 2011, 07:10:41 AM
Scott,
I'll check tonight. Also my earlier post addresses the capitalization.

Scott, (or others)

Also I had to rename the UV icons to lower case to get it to display. (eg UV01.gif to uv01.gif)

Ed


Thx
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on June 01, 2011, 11:10:00 PM
Ok tonight's reports, for UV forecast.

FF browser don't show up for me
Chrome- yes they show up
IE, show as broken images.
Rest time for me, work in am.
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on June 01, 2011, 11:28:09 PM
As of 10PM the dates, forecasts, and forecast icons aren't matching up between the get-UV-forecast-inc.php's results, attached as UVForecast.png,
 and the Ajax-Dashboard6.php's results, attached as DashboardUVForecast.png in the waning hours of the day.  As you can see,  DashboardUVForecast has forecasts and icons for the next 3 days, Thursday, Friday, and Saturday, while UVForecast.png has the forecasthas these forecasts and icons shown for Friday, Saturday, and Sunday.  Is this a time zone issue?  If I recall night before last things straightened out after midnight.  If I awaken before dawn I'll check on it then.  ](*,)

Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 02, 2011, 09:45:02 PM
I'm confused as to why you would need to rename the graphics to lower case UV.  I just walked back through the code and in both the java and the main code, it specifically calls for an upper case UV in the graphic name.  I'm confused now!   ](*,)

Scott


Scott,
I'll check tonight. Also my earlier post addresses the capitalization.

Scott, (or others)

Also I had to rename the UV icons to lower case to get it to display. (eg UV01.gif to uv01.gif)

Ed


Thx
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 02, 2011, 09:52:25 PM
Ed

In both cases below with the broken images it's looking for a CAPITAL UV8.gif in the ajax-images directory.  Do you have a file like that or is it a lower case version?

Scott


Ok tonight's reports, for UV forecast.

FF browser don't show up for me
Chrome- yes they show up
IE, show as broken images.
Rest time for me, work in am.
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on June 02, 2011, 10:02:58 PM
Scott,
Reloaded all CAPITAL UV icons. Yes that works. Its dark here now. I could have sworn, I changed to lower case so they would display during the day. :?: I did see the script called for caps.
I'll check tomorrow during the day.
Thanks

Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on June 03, 2011, 12:37:43 AM
I hope I have sorted out the skewed UV dates and values displayed in the evening after dark.  These code additions are working right now, and I'm waiting to see what will happen after midnight.  I added an $evening variable which is subtracted from the $UVptr that indexes the day during the UV prediction data access.  This prevents the skew that $UVptr++ produces before midnight after dark.
Code: [Select]
<?php } else {  //  don't have UV sensor or it's dark .. show UV forecast instead ?>
                 <?php
                   
if ($haveUV) { // Show todays high if evening or yesterdays high if morning
$evening=0// Need to adjust forecasts if it's before Midnight after dark
if ($time_hour>12) {  // because the forecasts points at wrong day otherwise
$evening=1// and forecast isn't for 'tomorrow'.
    }
                 
?>

            <tr>
            <td align="center" colspan="3" nowrap="nowrap" class="data2" style="text-align: center; font-size: 10px;">

                  <?php if ($time_hour 12) { // Display Summary if in the evening ?>
                  <?php langtrans('High Today'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuv?>&nbsp;@&nbsp;<?php echo $highuvtime?></span>
                  <?php $UVptr++; // increment counter if it's evening ?>
                  <?php } else { ?>
                  <?php langtrans('High Yest'); ?>:&nbsp;&nbsp;<span style="font-size: 9px;">
                  <?php echo $highuvyest?>&nbsp;@&nbsp;<?php echo $highuvyesttime?></span>
                  <?php  ?>
               </td>
            </tr>
 <?php ?>
            <tr>
               <td align="center" width="35%" nowrap="nowrap" class="data2" style="text-align: center; font-size: 9px;">

   <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                  <?php echo date("M-d",$UVshortdate?><br/>
         <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-$evening],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
 <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                  <?php $UVptr++; // increment counter ?>
</td>
                <td align="center" width="30%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
    <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                    <?php echo date("M-d",$UVshortdate?><br/>
           <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-$evening],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
   <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                    <?php $UVptr++; // increment counter ?>
                </td>
                <td align="center" width="35%" class="data2" nowrap="nowrap" style="text-align: center; font-size: 9px;">
    <?php $UVshortdate mktime(0,0,0,date("m"), date(d)+$UVptrdate("y")); ?>
                   <?php echo date("M-d",$UVshortdate?><br/>
  <img src="/ajax-images/uv<?php echo round($UVfcstUVI[$UVptr-$evening],0); ?>.gif" height="45" width="34" alt="" title="Predicted UV rate" /><br/>
  <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>
                   <?php $UVptr++; // increment counter ?>
</td>
              </tr>
<?php //$UVptr++; // increment counter ?>
<?php // end $haveUV  ---------------------------------------- ?>

I'm waiting to see what happens after midnight.

I also just checked my ajax-images directory and I see that my single integer uppercase UV images don't have leading zeros whereas my lowercase images do.  Does the script look for leading zeros, Scott?

The mods have passed the midnight test.  Today's (June 3rd) UV forecast is still correctly listed as the first one displayed, and it's value/icon is correct.
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 03, 2011, 05:12:22 PM
Hello,

Hope somebody an help me, i tweaked the ajax-dashboard a bit, everything is working fine but i am getting two errors: first one is in the current condition section, no matter what i do i keeps saying before the condition "it is" although with ajax off it works like it should work. Second glitch is my snow section, this should be changing but it doesn't? Help is greatly appreciated!

www.akker.be (http://www.akker.be)

Marc
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 03, 2011, 10:08:09 PM
I also just checked my ajax-images directory and I see that my single integer uppercase UV images don't have leading zeros whereas my lowercase images do.  Does the script look for leading zeros, Scott?

It should be looking for only the number, the value is rounded and 8 should be 8 not 08. 

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 03, 2011, 10:09:20 PM
Hope somebody an help me, i tweaked the ajax-dashboard a bit, everything is working fine but i am getting two errors: first one is in the current condition section, no matter what i do i keeps saying before the condition "it is" although with ajax off it works like it should work. Second glitch is my snow section, this should be changing but it doesn't? Help is greatly appreciated!

Marc,

The "It is" is coming from the file ajaxWDwx.js.  Search for it in the script and just delete it.  The snow section in version 6.xx is not controlled by the months or temp, it is either on or lightning.  I don't know what else to show there if there is not one of those two.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on June 03, 2011, 11:10:34 PM
I also just checked my ajax-images directory and I see that my single integer uppercase UV images don't have leading zeros whereas my lowercase images do.  Does the script look for leading zeros, Scott?

It should be looking for only the number, the value is rounded and 8 should be 8 not 08. 

Scott

Thanks, Scott.  I understand, and that's what I thought.  The insanity continues because this evening my modified ajax-dashboard6.php was giving skewed UV data, and eliminating my changes corrected it.  Today is the 3rd, yesterday was the 2nd, and tomorrow is the 4th, right?

I just now discovered that the data shown by get-UV-forecast.php changed when I reloaded it, and now it's skewed again in my dashboard!  I needed to reestablish my mods, and I'll also leave the lower case modification in place as well because when I used uppercase just now I again got placeholders.  The craziness involves data given by get-UV-forecast.php which is wrong in the earliest hours after dark, I guess, although we're dealing with some pretty nebulous forecast data to begin with.  I'm not sure how it's derived.  The data produced by get-UV-forecast.php is currently stable.
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 04, 2011, 03:25:24 AM
Hello,

Alright, sorry for the stupid question then  :oops:
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 04, 2011, 09:46:57 AM
Hello,

Alright, sorry for the stupid question then  :oops:

Not a stupid question at all, it just works a bit different then the other versions.  I probably should have put something about it in the instructions

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on June 04, 2011, 04:51:16 PM
The "It is" is coming from the file ajaxWDwx.js.  Search for it in the script and just delete it.  The snow section in version 6.xx is not controlled by the months or temp, it is either on or lightning.  I don't know what else to show there if there is not one of those two.
Scott

I stuck thumbnails of my webcams in there with links to the webcam pages.  Better than 'Coming Soon', maybe.
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 05, 2011, 02:25:36 AM
Hello, all

The more i try to fix it the worse it gets! I dont know anymore if it is a fault in my ajax-dashboard or in something else! My current icon is not correct anymore, without java it's correct but when i activate the java-updates(easy in FF) it messes up the current condition icon and goes into a random icon. I've tried all versions of ajaxWDwx.js and i think it has something to do with a path but i am really lost now! Is there someone out there who can help me, it is going to be difficult because my main website is in a subfolder....

Greetings from Marc (in desperate need  ](*,))
Title: Re: Alternative-Dashboard Version 6.10
Post by: gwwilk on June 05, 2011, 07:32:41 AM
Hello, all

The more i try to fix it the worse it gets! I dont know anymore if it is a fault in my ajax-dashboard or in something else! My current icon is not correct anymore, without java it's correct but when i activate the java-updates(easy in FF) it messes up the current condition icon and goes into a random icon. I've tried all versions of ajaxWDwx.js and i think it has something to do with a path but i am really lost now! Is there someone out there who can help me, it is going to be difficult because my main website is in a subfolder....

Greetings from Marc (in desperate need  ](*,))

Check the GIF's in your ajax-images directory.  There is currently nothing available under 'current conditions' at http://www.akker.be/car/ajax-images/few.gif  Be sure all of your paths are correct.  If the image is there, delete the full qualification portion of the path in settings, i.e. './car/ajax-images/few.gif' rather than 'http://www.akker.be/car/ajax-images/few.gif' and it might display.  I have found that my webhost, GoDaddy, dislikes fully qualified paths.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 05, 2011, 09:08:10 AM
Hello, all

The more i try to fix it the worse it gets! I dont know anymore if it is a fault in my ajax-dashboard or in something else! My current icon is not correct anymore, without java it's correct but when i activate the java-updates(easy in FF) it messes up the current condition icon and goes into a random icon. I've tried all versions of ajaxWDwx.js and i think it has something to do with a path but i am really lost now! Is there someone out there who can help me, it is going to be difficult because my main website is in a subfolder....

Greetings from Marc (in desperate need  ](*,))

You also MUST be using ajaxWDwx.js version 3.04 if you are using the alternative dashboard version 6.xx, it simply will not work right without it as I made several modifications to it for the dashboard.  The java script is included in the archive.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: Chris_K on June 05, 2011, 10:15:26 AM
Is there a link to Bashewa's 9.11?? I was on his site and couldn't find it.
Title: Re: Alternative-Dashboard Version 6.10
Post by: CNYWeather on June 05, 2011, 08:23:05 PM
Here's version 9.13 on from Meerkat (Ranier)

http://www.bashewa.com/downloads/bws-script-ajaxWDwx.zip?v9.13
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 05, 2011, 10:32:49 PM
Just so everyone is clear... (since this is an alternative dashboard thread), Meerkat's (Ranier) version is NOT compatable with the alternative dashboard version 6.xx.  I'm just saying!

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on June 07, 2011, 02:17:36 PM
Scott,
What generates the current conditions icon on alt-dash originate. Just got solar/vu sensors for my Davis. Trying to figure out WD solar noon, hours of sunglight, etc.
Thanks
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 07, 2011, 08:29:29 PM
Scott,
What generates the current conditions icon on alt-dash originate. Just got solar/vu sensors for my Davis. Trying to figure out WD solar noon, hours of sunglight, etc.
Thanks
Ed
There is a setting in WD to use you solar readings for current conditions, its under the main setup I believe.  WD controls that icon based on how you have that set (metar at night usually)

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: WraxallDave on June 08, 2011, 06:27:48 AM
Hi Scott,

Have you got an answer for post

http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072 (http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072)

The last I heard you said the language type was not being picked up and you were going to look at it that weekend.

Also the wind direction was being translated in making up the icon wind direction.

Thanks, Dave
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 08, 2011, 07:42:54 AM
Have you got an answer for post

http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072 (http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072)

The last I heard you said the language type was not being picked up and you were going to look at it that weekend.

Also the wind direction was being translated in making up the icon wind direction.
Dave,

I haven't had a chance to really dive into the issue and find a solution yet, have been spending weekends with family taking care of my dad.  I hope to find some time to work on more things soon.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: giggietto on June 08, 2011, 09:44:37 AM
Hi, It's possible for you update the ajax dashboard with this script?

http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/ (http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/)

Someone it made it?

www.sinnaimeteo.altervista.org (http://www.sinnaimeteo.altervista.org)

I have problem with weather icon condition, metar work wrong e I don't have a solar sensor.

Thanx
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 08, 2011, 09:41:36 PM
Hi, It's possible for you update the ajax dashboard with this script?

http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/ (http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/)

Someone it made it?

www.sinnaimeteo.altervista.org (http://www.sinnaimeteo.altervista.org)

I have problem with weather icon condition, metar work wrong e I don't have a solar sensor.

Thanx

I don't think I would have the time to do the changes there for at least a few months, I have too much going on right now.  I'll take a look at your site if you post the link and see if I can see anything but it's likely that you have to work with Weather Display settings to get it set correctly for your location, the dashboard just displays the icon based on what Weather Display sets.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 09, 2011, 11:26:30 AM
Hi, guys

Have been a week in Spain, i just had to fill in the full paths for the wordpress-add-on, thats why you see the full paths, but you gave me a hint and i will look into it, be back later, i also changed the ajaxWDwx.js version to the one you mensioned, but to no avail.....

Thanks so far,
Title: Re: Alternative-Dashboard Version 6.10
Post by: stormwatch on June 09, 2011, 10:44:26 PM
I just noticed an issue I am having on my new 6.10 Dashboard that I haven't noticed until now. It has been working great but I just noticed that my dashboard is showing "Snow" instead of "Rain" at the top of the 2nd Column. :oops:

www.carolinastormwatch.com

I guess this has been like this since I upgraded a couple of weeks ago; I know there must be a simple fix for this but I must be overlooking it. 6.09 was correct.

Any assistance with this would be appreciated!

No one has a possible solution??? Snow has set to false, not sure where else to look.
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 14, 2011, 04:36:20 AM
All,

I am having that problem to, and i am still having this weird problem with my current condition icon too, and now my cloud-base is following the cc-icon, is this normal or? At night everything is normal :sad:

Take a look here www.akker.be/car/ajax-dashboardbekan.php (http://www.akker.be/car/ajax-dashboardbekan.php)

Marc,
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 14, 2011, 07:46:59 AM
It appears you are running the dashboard as a stand alone.  You can't run it stand alone, it needs to be run as part of the ajax-dashboard system to work correctly.

Scott

All,

I am having that problem to, and i am still having this weird problem with my current condition icon too, and now my cloud-base is following the cc-icon, is this normal or? At night everything is normal :sad:

Take a look here www.akker.be/car/ajax-dashboardbekan.php (http://www.akker.be/car/ajax-dashboardbekan.php)

Marc,
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 14, 2011, 07:49:13 AM
As I said in a message yesterday, the problem is you are using a old version of Testtags.php.  It doesn't have the needed tags to run the script you are trying to use.

Scott


I just noticed an issue I am having on my new 6.10 Dashboard that I haven't noticed until now. It has been working great but I just noticed that my dashboard is showing "Snow" instead of "Rain" at the top of the 2nd Column. :oops:

www.carolinastormwatch.com

I guess this has been like this since I upgraded a couple of weeks ago; I know there must be a simple fix for this but I must be overlooking it. 6.09 was correct.

Any assistance with this would be appreciated!

No one has a possible solution??? Snow has set to false, not sure where else to look.
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 14, 2011, 01:56:59 PM
Hello,

I just took the dashboard.php, sorry :oops:, this is the correct URL:http://www.akker.be/car/index.php (http://www.akker.be/car/index.php)
The cc-icon gives always the same description though the icon is correct? And the cloudbase-php follows the description.
Title: Re: Alternative-Dashboard Version 6.10
Post by: stormwatch on June 14, 2011, 01:57:15 PM
As I said in a message yesterday, the problem is you are using a old version of Testtags.php.  It doesn't have the needed tags to run the script you are trying to use.

Scott


I just noticed an issue I am having on my new 6.10 Dashboard that I haven't noticed until now. It has been working great but I just noticed that my dashboard is showing "Snow" instead of "Rain" at the top of the 2nd Column. :oops:

www.carolinastormwatch.com

I guess this has been like this since I upgraded a couple of weeks ago; I know there must be a simple fix for this but I must be overlooking it. 6.09 was correct.

Any assistance with this would be appreciated!

No one has a possible solution??? Snow has set to false, not sure where else to look.

Hi Scott. I appreciate you looking at the problem. Like I said yesterday though 6.08, 6.09 worked fine with the textags I currently have but I guess for some reason it caught up with me. I always included the new tags that you had suggested be added with each new Version.

Do you or does someone else have the newest Version of texttags that I should be using with Scott's ajaxDashboard6.10?? I would appreciate any assistance on this I could get. Been trying to find them on the Forum but I guess I am just not looking in the correct place.

Thanks for the help!! :grin:

Edit: Staccermaccer that is the EXACT problem that I am experiencing! ](*,)

Tom
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 14, 2011, 09:24:46 PM
You can find it from KEN attached to a message in this thread:

http://www.weather-watch.com/smf/index.php/topic,40861.0.html (http://www.weather-watch.com/smf/index.php/topic,40861.0.html)


As I said in a message yesterday, the problem is you are using a old version of Testtags.php.  It doesn't have the needed tags to run the script you are trying to use.

Scott


I just noticed an issue I am having on my new 6.10 Dashboard that I haven't noticed until now. It has been working great but I just noticed that my dashboard is showing "Snow" instead of "Rain" at the top of the 2nd Column. :oops:

www.carolinastormwatch.com

I guess this has been like this since I upgraded a couple of weeks ago; I know there must be a simple fix for this but I must be overlooking it. 6.09 was correct.

Any assistance with this would be appreciated!

No one has a possible solution??? Snow has set to false, not sure where else to look.

Hi Scott. I appreciate you looking at the problem. Like I said yesterday though 6.08, 6.09 worked fine with the textags I currently have but I guess for some reason it caught up with me. I always included the new tags that you had suggested be added with each new Version.

Do you or does someone else have the newest Version of texttags that I should be using with Scott's ajaxDashboard6.10?? I would appreciate any assistance on this I could get. Been trying to find them on the Forum but I guess I am just not looking in the correct place.

Thanks for the help!! :grin:

Edit: Staccermaccer that is the EXACT problem that I am experiencing! ](*,)

Tom
Title: Re: Alternative-Dashboard Version 6.10
Post by: stormwatch on June 14, 2011, 10:59:02 PM
Thanks for all your assistance Scott! I definitely owe you a donation for all of your hard work with all of these scripts. Hopefully, when/if I get a new Kidney later this year I will be able to get rid of all of (or most) of these medical bills and be able to pay forward for all of the help I have received from so many people. Kind of tough right now..LOL :grin:

Well, I have updated my testtags but the problem exists. Still showing snow on the main dashboard. I'm sure it is a mistake somewhere on my part because everyone else seems to be fine. It just popped up when I moved from 6.09 to 6.10. I'll keep looking for the culprit!!

Just a quick question that I don't think has any bearing on this because I have never had a problem before but in the texttags the conditions are all "gif" and I use jpg or png" images. Could this possibly affect anything with your scripts??

EDIT: PROBLEM HAS BEEN RESOLVED!!!!
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 15, 2011, 02:14:21 AM
Hi, stormwatch,

Can you give me the solution to your problem because it's similar to mine and i would like to have a stab at it too? The testtags from Ken are much older than the one i use, and it worked before with my version, so  ](*,), so i am looking forward to your reply! About your illness, I was almost in the same case as you because i have mesangial glomerulonefritis, but luckily it was pushbacked with some heavy chemo and cortisone. So good luck to you anyway!!

Staccermaccer
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 15, 2011, 07:47:02 AM
I see how you fixed the issue, looks good!  How version 6.xx works is the middle section is either snow or lightning.  There is no shutoff for it.  The only thing you can do if you don't ever want either is to change that section to something else.  I didn't know what to put in there so I didn't leave any other option as setable. 

Hope things go good with the kidney, I know that can be a real tough time.

Scott


Thanks for all your assistance Scott! I definitely owe you a donation for all of your hard work with all of these scripts. Hopefully, when/if I get a new Kidney later this year I will be able to get rid of all of (or most) of these medical bills and be able to pay forward for all of the help I have received from so many people. Kind of tough right now..LOL :grin:

Well, I have updated my testtags but the problem exists. Still showing snow on the main dashboard. I'm sure it is a mistake somewhere on my part because everyone else seems to be fine. It just popped up when I moved from 6.09 to 6.10. I'll keep looking for the culprit!!

Just a quick question that I don't think has any bearing on this because I have never had a problem before but in the texttags the conditions are all "gif" and I use jpg or png" images. Could this possibly affect anything with your scripts??

EDIT: PROBLEM HAS BEEN RESOLVED!!!!
Title: Re: Alternative-Dashboard Version 6.10
Post by: stormwatch on June 15, 2011, 05:18:43 PM
Hi, stormwatch,

Can you give me the solution to your problem because it's similar to mine and i would like to have a stab at it too? The testtags from Ken are much older than the one i use, and it worked before with my version, so  ](*,), so i am looking forward to your reply! About your illness, I was almost in the same case as you because i have mesangial glomerulonefritis, but luckily it was pushbacked with some heavy chemo and cortisone. So good luck to you anyway!!

Staccermaccer

Hi,

I basically did what Scott told me that I needed to do. Go to the link that he provided above on the Weather-Watch Forum and download texttags.txt (Version 1.06) and I also downloaded the testtags.php.txt (rename to texttags.php). Close down and exit Weather Display. Go into your wdisplay File and find Webfiles. Find testtags.txt and testtags.php and delete both files. Put your new V1.06 testtags.txt file in there along with your testtags.php file. Ken's testtags.php is already written with info so it will take a several seconds for the texttags.txt to overwrite the info in the php file so don't give up if the info is not corrected on your dashboard immediately.

I'll be honest; I had no problem with my texttags with Scott's Version 6.08 and 6.09 for some reason but it caught up with me in V6.10. I thought that I had added all the correct texttags as his instructions indicated with each upgrade but apparently my new tags were being overwritten with old info. There are a couple of people that were having this issue earlier in the thread. I remembered that they also downloaded the texttags into the wdisplay main folder also and had no problem after that. Didn't want to take ANY chances so I downloaded a copy of the txt file into wdisplay just to cover ALL my bases just in case because there was already a testtags.txt file in the main folder.

That is a DETAILED guide to exactly what I did and it corrected the issue; hope this solves your problem. Please let me know if this corrects your problem. Have a great day!

Tom
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 16, 2011, 03:17:05 AM
OK, i will try that! No succes...It even got worse! My dashboard stays in nightmode now, does not display rain, and is still not giving the right CC-icon, I'll give up #-o, switching back to the 6.00 beta, and re-continue my search of what went wrong!
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 16, 2011, 07:41:32 AM
OK, i will try that! No succes...It even got worse! My dashboard stays in nightmode now, does not display rain, and is still not giving the right CC-icon, I'll give up #-o, switching back to the 6.00 beta, and re-continue my search of what went wrong!

Maybe if you post a link to your site I can help figure out what is the problem.  Did you add in the additional tags to the version 1.06 Testtags.txt file too?  You need to do both. 

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 16, 2011, 12:22:51 PM
Hi, Scott,

It has nothing to do with the testtags because i tried the new one and it even got worse, it gave 75 degrees in the tab in FF, no rain and some few more hiccups! I changed back to the previous version i had saved, and the rain and t reappeared back. I will enclose the testtags, the ajaxWDwx and the ajax-dashboard? When i disable my java-script in FF the right CC- icon appears and stays, but in English, so not translated, though it is in the language.js file..Also the Cloudbase.php is still listening to something else??

Staccermaccer,
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 16, 2011, 09:21:21 PM
Hi, Scott,

It has nothing to do with the testtags because i tried the new one and it even got worse, it gave 75 degrees in the tab in FF, no rain and some few more hiccups! I changed back to the previous version i had saved, and the rain and t reappeared back. I will enclose the testtags, the ajaxWDwx and the ajax-dashboard? When i disable my java-script in FF the right CC- icon appears and stays, but in English, so not translated, though it is in the language.js file..Also the Cloudbase.php is still listening to something else??

Staccermaccer,

Your testtags file is jammed packed with duplicate tags and is still missing tags that are supposed to be added for version 6.xx.  I really can't do anything more to help you without seeing what you have (a link to your site).

My suggestion:  Delete your current testtags.txt file.  Install the new testtags.txt version 1.06 from Ken, all in all the additional tags from the add file in the version 6.xx archive file.  

As for the ajaxWDwx.js file, that too is the wrong version.  As I clearly state in the instructions and have mentioned here many many time, you must replace version 9.13 with my version 3.04 (also included in the archive with the instructions).

You can't expect the script to work if you are missing many of the items it depends on to work!!

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 17, 2011, 03:45:13 AM
Hi Scott,

Made all the changes, but to no avail! Still the same! Please read my previous posts because something changes with day or night? I have tried all the things you mentioned (I'm not thick :lol:) but a change all ways back to the previous versions if it doesn't help.

This is my site:www.akker.be (http://www.akker.be) i will enclose the newest files to take a look at.....

Sorry to disturb you with this but normally i can fix this things myself,

Greetings from Staccermaccer,
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 17, 2011, 09:08:44 PM
Ok, if you look at the file ajax-dashboard.php, right under the version notices, you will notice the following:

Code: [Select]
$Lang    = 'en';
$uomTemp = '&deg;F';
$uomBaro = ' inHg';
$uomWind = ' mph';
$uomRain = ' in';
$uomSnow = ' in';
$uomPerHour = '/hr';
$uomHeight = ' ft';
$uomDistance = ' miles';
$imagesDir = 'ajax-images/';  // directory for ajax-images with trailing slash
//$timeFormat = 'D, d-M-Y g:ia T';  // Fri, 31-Mar-2006 6:35pm TZone
$timeFormat = 'D, M-d-Y g:ia';  // 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'

You will notice the $uomSnow is set at " in"

Therefore, when checking if we need to set the snow icon or not, we are going to use US measurement.  If it were in " cm" then we use metric.  Now, the program will compare your dewpoint reading of 4.3 (which is in metric) to see if it is less then freezing (32F because of your ENGLISH unit of measurement) and yes it is.  Thus you have the snow icon.  However, if you set the snow unit of measurement to CM, then it compares your dewpoint of 4.3 to 0 and it says no, it is greater and thus shows RAIN.  This is what I have been saying.

Hi Scott,

Made all the changes, but to no avail! Still the same! Please read my previous posts because something changes with day or night? I have tried all the things you mentioned (I'm not thick :lol:) but a change all ways back to the previous versions if it doesn't help.

This is my site:www.akker.be (http://www.akker.be) i will enclose the newest files to take a look at.....

Sorry to disturb you with this but normally i can fix this things myself,

Greetings from Staccermaccer,
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 18, 2011, 03:11:14 AM
Hi, Scott,

OK, thank you, that did the trick (i thought these where for standalone use)

I probably overlooked that one in the great search for the other faults, but i am still having my problem with the Cloud-base.php and the CC-icon with is still giving these odd day-night differences and the misty-icon!

Staccermaccer,
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 18, 2011, 09:00:48 AM
Glad to see it's up an running.  I did notice that your fire weather images are not showing. The script is looking for them in:

http://www.akker.be/car/ajax-images/fire/7/fire-31.png

The path seems a bit odd but may be fine, make sure you have the images in the .png format too.

As for the mist and problems with the CC Icon, those are all controlled by Weather Display, I just display them based on the test tags and when I look at your testtags.php, it is displaying the correct image.  You may be having a metar override your current conditions in Weather Display.  Check the setting there especially the rain related ones.  As for the cloudbase addin, even mine doesn't work right!  I show daytime hours after sunset!  I can't help with that one.  Best to contact the author of that script.

Scott

Hi, Scott,

OK, thank you, that did the trick (i thought these where for standalone use)

I probably overlooked that one in the great search for the other faults, but i am still having my problem with the Cloud-base.php and the CC-icon with is still giving these odd day-night differences and the misty-icon!

Staccermaccer,
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 18, 2011, 11:50:20 AM
Hello,

I upgraded to the latest v of WD. Now my web page keeps showing New Record High. I believe this has to do with WD as 6.10 was working fine before. Any suggestions.

Another questions is there a way to show the heat index or wind chill (either shows based on threshold set) under the Currently outside temperature. The NWS uses heat index and windchill and not feels like. I would like those indexes to show instead of feels like in that place on the web page. Please advise.

http://lebanontnwx.org (http://lebanontnwx.org)

Thanks,
Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 18, 2011, 02:09:43 PM
Hi, Scott,

If i shut the java engine down in FF then it gives the right CC-icon, so i think it must have to do something with the ajaxWdwx.js or is this wrong?

Thanks for the help so far!

Staccermaccer.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 18, 2011, 03:59:17 PM
Did you go through all the settings in ajaxWDwx-settings.js and verify that they match your setup?  If you think of java as a separate program that does nothing but update readings, then remember that all the settings in the main script (The PHP stuff) has to be the same in the Java stuff.   Your setup file for the java has a number of settings that may need to be tinkered with to make it all update right.

Scott

Hi, Scott,

If i shut the java engine down in FF then it gives the right CC-icon, so i think it must have to do something with the ajaxWdwx.js or is this wrong?

Thanks for the help so far!

Staccermaccer.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 18, 2011, 04:03:17 PM
If your station doesn't have 2 years of history, then in the config file for the dashboard find this line:

Code: [Select]
$useSTAhilo = true;           // Set to True for Station High/Low (Must have 2 years data to use) or False for WU High/Low
And set it to false.  Otherwise it will have a new high or low every day till you get 2 years of history. 

As for changing the feels like, yes it's possible, you would have to replace the code in that spot to include either the windchill or the heat index. 

Scott


Hello,

I upgraded to the latest v of WD. Now my web page keeps showing New Record High. I believe this has to do with WD as 6.10 was working fine before. Any suggestions.

Another questions is there a way to show the heat index or wind chill (either shows based on threshold set) under the Currently outside temperature. The NWS uses heat index and windchill and not feels like. I would like those indexes to show instead of feels like in that place on the web page. Please advise.

http://lebanontnwx.org (http://lebanontnwx.org)

Thanks,
Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 18, 2011, 09:28:22 PM
Hi Scott,

Thank you I will make the change to false for the high and low.

Yes, I would like to make the change with the feels like temperature, how would I do that and what code would I replace with what code?

Thanks,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 18, 2011, 10:55:21 PM
You will want to look for this code around line 420:

Code: [Select]
                          <?php langtrans('Feels like'); ?>:&nbsp;<span class="ajax" id="ajaxfeelslike">
  <?php echo strip_units($feelslike) . $uomTemp?>

and replace it with:

Code: [Select]
                <?php langtrans('Heat Index'); ?>:&nbsp;<span class="ajax" id="ajaxheati">
                  <?php  echo strip_units($heati) . $uomTemp?>

You can do the same for windchill

Scott

Hi Scott,

Thank you I will make the change to false for the high and low.

Yes, I would like to make the change with the feels like temperature, how would I do that and what code would I replace with what code?

Thanks,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 19, 2011, 03:16:05 PM
Hi Scott,

Thank you. I did as suggested. The heat index shows when the page loads but when the descrpitive word appears the value changes to the feels like temperature. In this heat index is 91 but the feels like is 104. So it works momentarily then as mentioned when the descriptive word appears it shows the fees like. Must be another place in the script that needs changing also. Please advise.

Also you mentioned windchill is this a new line to add or where is it found.

Thanks,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 19, 2011, 06:28:23 PM
Make sure that the id in the changed line is:  ajaxheati  You may want to double check that line.

In the winder months you will need to change the code to put in the windchill code or it would have to have some more programming to shitch between the two.


Hi Scott,

Thank you. I did as suggested. The heat index shows when the page loads but when the descrpitive word appears the value changes to the feels like temperature. In this heat index is 91 but the feels like is 104. So it works momentarily then as mentioned when the descriptive word appears it shows the fees like. Must be another place in the script that needs changing also. Please advise.

Also you mentioned windchill is this a new line to add or where is it found.

Thanks,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 19, 2011, 07:35:51 PM
Hi Scott,

Here is the code. I beleive I have it correct. Results are it shows until the descriptive word appears then it goes to a much higher reading which is commomly the feels like temperature.

 <?php langtrans('Heat Index'); ?>:&nbsp;<span class="ajax" id="ajaxheati">
           <?php echo strip_units($heati) . $uomTemp; ?>

Please advise. Thanks.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 19, 2011, 10:18:15 PM
Actually, I forgot to mention that you will also need to remove the line right below that:

Code: [Select]
<span class="ajax" id="ajaxheatcolorword"><?php  echo $heatcolourword?></span><br/>
That is what is still putting in the colored word

Scott

Hi Scott,

Here is the code. I beleive I have it correct. Results are it shows until the descriptive word appears then it goes to a much higher reading which is commomly the feels like temperature.

 <?php langtrans('Heat Index'); ?>:&nbsp;<span class="ajax" id="ajaxheati">
           <?php echo strip_units($heati) . $uomTemp; ?>

Please advise. Thanks.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 20, 2011, 06:38:02 PM
Hi Scott,

I did as instructed (removed the wording line) and that did not work. Instead of showing a Feels like temperature of 107 and extremely hot it is showing 107 feels like and now the descriptive word is warm. The descriptive word is not the issue. I would like the descriptive word to continue to show. The problem is the Heat index in WD, WL and on the webpage say it is 97or 96. The value on the web page under the current temperature shows a 'feels like' of 107 n o the heat index of 96 or 97. The heat index never made it to 107 today so it cannot be showing the high heat index as that was 103. So the issue is I made the changes and instead of the heat index showing in place of the feels like temperature it appears I am still getting the feels like temperature and now with the wrong descriptive word. Any ideas? I appreciate your patience and help.

Best regards,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 20, 2011, 08:30:52 PM
Send me your ajax-dashboard6.php file because if you removed the right lines and added the right lines it's impossible that it is still showing that, that is what was removed and replaced!  :shock:


Scott

Hi Scott,

I did as instructed (removed the wording line) and that did not work. Instead of showing a Feels like temperature of 107 and extremely hot it is showing 107 feels like and now the descriptive word is warm. The descriptive word is not the issue. I would like the descriptive word to continue to show. The problem is the Heat index in WD, WL and on the webpage say it is 97or 96. The value on the web page under the current temperature shows a 'feels like' of 107 n o the heat index of 96 or 97. The heat index never made it to 107 today so it cannot be showing the high heat index as that was 103. So the issue is I made the changes and instead of the heat index showing in place of the feels like temperature it appears I am still getting the feels like temperature and now with the wrong descriptive word. Any ideas? I appreciate your patience and help.

Best regards,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 21, 2011, 07:58:20 AM
Hi Scott,

Should I include it as an attachment or can I e-mail it to you. Please advise.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: mayo9999 on June 21, 2011, 01:13:31 PM
Hi Scott,

I've got an "UV Summary/Forecast" error in today's forecast of 11.5; however the code want's to display a UV12.gif (that I don't have).  I've seen this a few times over the last several weeks.  Where can I get a UV12.gif from?

Thanks,
Title: Re: Alternative-Dashboard Version 6.10
Post by: jgillett on June 21, 2011, 01:53:16 PM
I've got an "UV Summary/Forecast" error in today's forecast of 11.5; however the code want's to display a UV12.gif (that I don't have).  I've seen this a few times over the last several weeks.  Where can I get a UV12.gif from?
Had the same problem here. From Scott...
Quote
Quick fix will be to make a copy of the UV11.JPG and call it UV12.
The rounding issue is rounding up the 11.5 to 12.
Yes, you will still see the 11+ graphic (there is no UV12 graphic at this time), but at least it won't be blank or throw an error.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 21, 2011, 06:29:35 PM
For now, that is going to be the official fix for this as there is no UV12 (it only goes to 11+ officially) and it's a rounding error.  I will add an icon for 12 that will just read 11+ too.

Scott

I've got an "UV Summary/Forecast" error in today's forecast of 11.5; however the code want's to display a UV12.gif (that I don't have).  I've seen this a few times over the last several weeks.  Where can I get a UV12.gif from?
Had the same problem here. From Scott...
Quote
Quick fix will be to make a copy of the UV11.JPG and call it UV12.
The rounding issue is rounding up the 11.5 to 12.
Yes, you will still see the 11+ graphic (there is no UV12 graphic at this time), but at least it won't be blank or throw an error.
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 21, 2011, 06:30:40 PM
Either is fine, my email is available by clicking on the mail icon under my name or attach here but rename it to .txt from .php

Hi Scott,

Should I include it as an attachment or can I e-mail it to you. Please advise.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 21, 2011, 06:47:29 PM
Hi Scott,

There is no e-mail under your name. I beleive you have your e-mail on hidden.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: mayo9999 on June 21, 2011, 07:10:59 PM
Scott (and John),

Thanks for the workaround...  No more missing gif file :-)

For now, that is going to be the official fix for this as there is no UV12 (it only goes to 11+ officially) and it's a rounding error.  I will add an icon for 12 that will just read 11+ too.

Scott

I've got an "UV Summary/Forecast" error in today's forecast of 11.5; however the code want's to display a UV12.gif (that I don't have).  I've seen this a few times over the last several weeks.  Where can I get a UV12.gif from?
Had the same problem here. From Scott...
Quote
Quick fix will be to make a copy of the UV11.JPG and call it UV12.
The rounding issue is rounding up the 11.5 to 12.
Yes, you will still see the 11+ graphic (there is no UV12 graphic at this time), but at least it won't be blank or throw an error.
Title: Re: Alternative-Dashboard Version 6.10
Post by: n3ouc on June 21, 2011, 08:28:02 PM
File attached.

Just at a first glance, I believe your image directory is incorrect in the file. You have ajax-images/ and in actuality that cannot be a directory. You would need to have ./ajax-images/   Just at a quick glance I found that. I will look at the rest of the file a little closer.

Take Care,
Mike
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 22, 2011, 09:40:38 PM
File attached.

Here is what happens when I put your exact file into my website, untouched, exactly as you sent it to me:  (See Image)

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 23, 2011, 08:07:13 AM
Hi Scott,

Thank you for looking into this. Ok so what might I have running that would cause this? I still have my original ajax-dashboard file in the same directory could that be the cause. If not what might I have different somewhere else that is causing this? You can see from my website what I am getting and I see your results. I am new to php etc. so I have been following the lead I get from you and others. When I had the orginal dashboard Ken gave me code to use the heat index and windchill instead of feels like. If the current setup still use the orginal in addition to 6 could that be the issue? Please advise.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 23, 2011, 08:26:33 PM
Bob,

The only thing I can think of is you are not calling ajax-dashboard6.php from your index.php file.  You are probably calling the same file name without the 6 in it.  The best way to test it is to rename the other dashboard file on your server and see if it still loads.  My guess it that it won't.  Edit your index.php to load the new file name and it should run.

Scott


Hi Scott,

Thank you for looking into this. Ok so what might I have running that would cause this? I still have my original ajax-dashboard file in the same directory could that be the cause. If not what might I have different somewhere else that is causing this? You can see from my website what I am getting and I see your results. I am new to php etc. so I have been following the lead I get from you and others. When I had the orginal dashboard Ken gave me code to use the heat index and windchill instead of feels like. If the current setup still use the orginal in addition to 6 could that be the issue? Please advise.

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 23, 2011, 08:46:00 PM
Hi Scott,

That was it. Index.php was not calling 6. Sucess.

Anyway to get the wording back and still have the heat index show. Also is there a way to have the wind chill show when there is a wind chill temeprature. I know you said I would have to make a manul change but if it could be automated that would be great. Let me know.

Agin many thanks for your help (putting up with newbies). This is a great script keep up the good work!!!

Best regards,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 23, 2011, 09:03:56 PM
Bob,

I'll look into making it an option on the next version.  If the sun makes an appearance here sometime in the next few months I plan to spend a lot of time outside and not programming but right now thats not looking promising so a new version may happen sooner then later.  If I walked out into my backyard I'd sink in the grass it's so wet!   #-o

Scott

Hi Scott,

That was it. Index.php was not calling 6. Sucess.

Anyway to get the wording back and still have the heat index show. Also is there a way to have the wind chill show when there is a wind chill temeprature. I know you said I would have to make a manul change but if it could be automated that would be great. Let me know.

Agin many thanks for your help (putting up with newbies). This is a great script keep up the good work!!!

Best regards,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 24, 2011, 08:00:33 AM
Hi Scott,

Thanks and understood. I hope the weather improves so you can enjoy the outdoors. The number of months that weather is warm enough to enjoy being outside is limted. We had an active April and May with severe storms then we went into a string of 14 days of 90 plus then into a pattern of rain just about every other day. Hey but this why this hobby is so enjoyable, change and variety.

Thanks again,

Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 25, 2011, 04:29:38 PM
Since it's been raining here all morning (Weatherman said it was going to be a hot sunny weekend, my station knew better!)  I was able to put a few finishing touches on my next update to the alternative dashboard for Weather Display users.  I am looking for a few people to beta test the changes.  You should be using both UV and Solar sensors to help me test this.  If you want to give it a try, send me your email address and I'll give you a link to download it.

The latest version follows Kens newest template for Weather Display Ajax Template and includes now a solar icon, UV forecast icons and many other smaller changes and additional language translation items that were missed before.

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: ed2kayak on June 26, 2011, 02:06:56 PM
Scott,

My station has not been up 1 year. August 2010 was approximate date. But on the hilowavg  I see avg temp for July. Should I edit this out, or just wait for July to come & go?
http://cvweather.org/wxhilowavg.php

Thanks
Ed
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 26, 2011, 02:33:19 PM
Scott,

My station has not been up 1 year. August 2010 was approximate date. But on the hilowavg  I see avg temp for July. Should I edit this out, or just wait for July to come & go?
http://cvweather.org/wxhilowavg.php

Thanks
Ed

Ed, the average is based on an incomplete month.  I still think the averages shouldn't be updated till month end but Weather Display does it daily.  There is nothing much you can do about it. 

Scott
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 27, 2011, 07:30:50 AM
Hi, Scott

I am willing to give it a shot!

Marc AKA Staccermaccer
Title: Re: Alternative-Dashboard Version 6.10
Post by: staccermaccer on June 27, 2011, 05:39:42 PM
Hi, Scott

Implemented your template in the V3 templates here:http://www.akker.be/wxindex.php (http://www.akker.be/wxindex.php), and i thought: why not give it a shot in the V2 template here:www.akker.be (http://www.akker.be). Still having a few minor issues with the paths (i think) but it's working!

Greetings and glad to help you!

Staccermaccer.

Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 27, 2011, 08:21:59 PM
It's looking good, just a few paths to fix in the one!  Thanks

Hi, Scott

Implemented your template in the V3 templates here:http://www.akker.be/wxindex.php (http://www.akker.be/wxindex.php), and i thought: why not give it a shot in the V2 template here:www.akker.be (http://www.akker.be). Still having a few minor issues with the paths (i think) but it's working!

Greetings and glad to help you!

Staccermaccer.


Title: Re: Alternative-Dashboard Version 6.10
Post by: tnwxman on June 27, 2011, 08:53:19 PM
Scott,

I have UV and solar also and am willing to help test.

Best regards,
Bob
Title: Re: Alternative-Dashboard Version 6.10
Post by: BurnsvilleWeather on June 27, 2011, 09:11:42 PM
Scott,

I have UV and solar also and am willing to help test.

Best regards,
Bob

Thanks Bob but I think I'm ready to release the changes here in a few minutes.  I did one final change and I think that is all I'm going to do before I leave for vacation!    Look for it in a few minutes here.

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on June 27, 2011, 09:22:26 PM
UPDATE:  Version 6.20 is now available!  See the first message in this thread for details on whats new and updated in this release as well as to get the download link!

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: tstorm on June 28, 2011, 04:41:04 PM
Scott,

  I updated to 6.20 and under Current Conditions Section I'm not showing the rain.jpg image with the amount to the right.  Any ideas?

http://www.harpersferry-weather.com

Thanks,

John
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on June 28, 2011, 07:27:45 PM
  I updated to 6.20 and under Current Conditions Section I'm not showing the rain.jpg image with the amount to the right.  Any ideas?

http://www.harpersferry-weather.com

John,

I'm guessing that somehow you don't have a unit of measure defined for snow anywhere.  It should be located in settings.php like shown below:

Code: [Select]
$SITE['uomTemp'] = '&deg;F';  // ='&deg;C', ='&deg;F'
$SITE['uomBaro'] = ' inHg';    // =' hPa', =' mb', =' inHg'
$SITE['uomWind'] = ' mph';   // =' km/h', =' kts', =' m/s', =' mph'
$SITE['uomRain'] = ' in';     // =' mm', =' in'
$SITE['uomSnow'] = ' cm';     // =' cm', =' in'
$SITE['uomDistance'] = ' miles';  // or ' km' -- used for Wind Run display
$SITE['uomPerHour'] = '/hr';

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: tstorm on June 28, 2011, 08:09:58 PM
Thanks Scott!   Issue resolved.  There was nothing for snow in the Setting.php

John
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on June 28, 2011, 08:21:26 PM
Thanks Scott!   Issue resolved.  There was nothing for snow in the Setting.php

John

Great!  I added a note to that in the FAQs on the instructions for future people that have that problem too!  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on June 29, 2011, 09:01:50 PM
If you are having any issues with the Alternative-Dashboard 6.xx script over the next two weeks, I will be away from the computer on vacation and won't be able to respond.  I've updated the FAQ section in the instructions (located in the 6.20 archive) with several of the most common issues and their fixes.  Please check there and if still in need of help, post here, perhaps someone here will have seen it before too.  I'll be back around the 10th of July and will answer then.  Thanks

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: CNYWeather on July 04, 2011, 02:21:00 PM
Anyone out there know where to look if my units of measure wont change from
Metric to Imperial?
Title: Re: Alternative-Dashboard Version 6.20
Post by: Silversword on July 05, 2011, 01:30:32 AM
Anyone out there know where to look if my units of measure wont change from
Metric to Imperial?

Hi,

Try looking in ajaxWDwx.js file in this area and see if you have errors here.

//==============================================================================
var clientrawFile = './clientraw.txt'; // location of clientraw.txt relative to this page on website

var useUOM = 'E';   // [ E | M ] ... Units Of Measure:
                    //               E = English/Imperial
                    //               M = Metric
                    // NOTE: You can change individual units below in UNITS-OF-MEASURE.

var showUOM = true; // set to FALSE if no units should be displayed inside "ajaxtags".
                    // i.e. if your UOM's are outside the of the "ajaxtag" spans.
                    // Note: If you have implemented UOM switching this needs to
                    //       be TRUE and all your UOM's need to be on the inside
                    //       of your "ajaxtags".

//==============================================================================

This is from the version 6.20 folder from Scott.

Hope this helps a little.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 05, 2011, 02:30:16 AM
You might also look at useUOM = 'E' in ajaxWDwx-settings.js, around line 21.
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 05, 2011, 05:20:12 AM
Hi Scott,

I have installed version 6.20 with the language option, but it has not fixed the wind direction icons from being lost.

Take a look  http://www.wraxall-weather.co.uk/index.php (http://www.wraxall-weather.co.uk/index.php)

Did you look at this problem when changing the language selector.

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: CNYWeather on July 05, 2011, 08:02:47 AM
Anyone out there know where to look if my units of measure wont change from
Metric to Imperial?

Hi,

Try looking in ajaxWDwx.js file in this area and see if you have errors here.

//==============================================================================
var clientrawFile = './clientraw.txt'; // location of clientraw.txt relative to this page on website

var useUOM = 'E';   // [ E | M ] ... Units Of Measure:
                    //               E = English/Imperial
                    //               M = Metric
                    // NOTE: You can change individual units below in UNITS-OF-MEASURE.

var showUOM = true; // set to FALSE if no units should be displayed inside "ajaxtags".
                    // i.e. if your UOM's are outside the of the "ajaxtag" spans.
                    // Note: If you have implemented UOM switching this needs to
                    //       be TRUE and all your UOM's need to be on the inside
                    //       of your "ajaxtags".

//==============================================================================

This is from the version 6.20 folder from Scott.

Hope this helps a little.

--Stan Y.
   Maui, Hawaii


Eh..... I had the wrong ajaxWDwx.js file loaded somehow.Got it now. Thanks!!
Title: Re: Alternative-Dashboard Version 6.20
Post by: Silversword on July 05, 2011, 12:17:05 PM
Hi Tony,

Glad that you got it to work.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 09, 2011, 02:05:44 PM
Dave,

Not sure what I'm missing in the script, I'm at a loss to figure out what I did wrong there.  I'll keep looking but for the time, that part is not working correctly.  Sorry.

Scott


Hi Scott,

I have installed version 6.20 with the language option, but it has not fixed the wind direction icons from being lost.

Take a look  http://www.wraxall-weather.co.uk/index.php (http://www.wraxall-weather.co.uk/index.php)

Did you look at this problem when changing the language selector.

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 09, 2011, 02:21:59 PM
Scott/Dave,

Unless I'm missing something entirely here, wind direction icons are there - or are these not the specific icons you're looking for?
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 09, 2011, 06:41:41 PM
They aren't translating to language specific icons though!

Scott

Scott/Dave,

Unless I'm missing something entirely here, wind direction icons are there - or are these not the specific icons you're looking for?

Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 09, 2011, 06:52:37 PM
Ah - sorry.

BTW - aren't you still on vacation??
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 09, 2011, 06:54:38 PM
LOL, yes, but back home a day early and already getting put to work by friends!    :shock:   I should have stayed on vacation!

Ah - sorry.

BTW - aren't you still on vacation??
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 09, 2011, 10:55:56 PM
Well, hope you had a good time while it lasted!
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 10, 2011, 10:33:17 AM
Hi John,

see http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072 (http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072)

and you will see how the wind icons disappear.

Ken's original does it right this one screws them up.

Dave.
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 10, 2011, 10:36:12 AM
What version of ajaxWDwx.js are you using with both?

Scott

Hi Scott,

I have installed version 6.20 with the language option, but it has not fixed the wind direction icons from being lost.

Take a look  http://www.wraxall-weather.co.uk/index.php (http://www.wraxall-weather.co.uk/index.php)

Did you look at this problem when changing the language selector.

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 10, 2011, 10:48:56 AM
Hi Scott,

I installed the ajaxWdwx.js that came with the 6.20 download.

var ajaxVersion  = "3.04a";
var ajaxVersDate = "22-Jan-2011"; /* Release date

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 10, 2011, 10:54:35 AM
So you are using the same file with both the working version and the non-working version of the code?

Scott

Hi Scott,

I installed the ajaxWdwx.js that came with the 6.20 download.

var ajaxVersion  = "3.04a";
var ajaxVersDate = "22-Jan-2011"; /* Release date

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 10, 2011, 11:09:42 AM
Hi Scott,

For Ken's version I renamed his ajaxWDwx to ajaxWD1wx

// --- Version 2.21 - 17-Feb-2011 -- added decimal comma option for international display

Dave.
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 10, 2011, 11:18:20 AM
Ok, that was what I was wondering, if it still works with version 3.04a or not.

Hi Scott,

For Ken's version I renamed his ajaxWDwx to ajaxWD1wx

// --- Version 2.21 - 17-Feb-2011 -- added decimal comma option for international display

Dave.
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 10, 2011, 04:38:55 PM
Hi John,

see http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072 (http://www.wxforum.net/index.php?topic=9538.msg112072#msg112072)

and you will see how the wind icons disappear.

Ken's original does it right this one screws them up.

Dave.

Hi Dave,

Went back to your site and saw the wind icon in place. Changed to Spanish. The wind icon was still there, but the page had completely lost contact with the CSS. A huge mess. This happened more than once.

Just FYI...
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 11, 2011, 06:13:23 AM
John,

It seems to get out of that problem you set the "Style" option and press "Set" and it goes away. But why it does that in the first place I do not know.

Another problem is with the forecast section, the German translation can be very large at times and causes the section to expand off the page and mess up the screen. As you can see the Alternate-Dashboard has many serious problems with the language selection option.

Dave.
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 11, 2011, 02:07:39 PM
Hi Dave,

Obviously I can certainly understand the need for the language options. In my case I just stay with English - less hassle.

As for why that is happening - afraid I can offer no help. Sorry.
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 15, 2011, 03:44:59 PM
This seems to be the day for problems.

The solar icon is currently not showing on my main page. Source shows it's looking for...

<img src="ajax-images/SI79 %.gif" height="65" width="34" alt="" title="Current Solar Index" />

...which I understand it not finding.

It's been working great up to now. Haven't touched anything - honest!

Thanks.
Title: Re: Alternative-Dashboard Version 6.20
Post by: WraxallDave on July 16, 2011, 10:24:41 AM
Hi John,

I have the Solar icon problem from time to time, the function that creates the SI icon name get_SIrange($currentsolarpercent)
screws up and produces the wrong icon names.

Dave
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 16, 2011, 11:21:16 AM
Yes, I have been looking at that solar icon issue also, it seems that sometimes the value sent by WD is not a number so it fails to give the proper reading.. I may have to add an icon for N/A or something for those times.

Scott
Title: Re: Alternative-Dashboard Version 6.20
Post by: jgillett on July 16, 2011, 11:40:07 AM
Yes, I have been looking at that solar icon issue also, it seems that sometimes the value sent by WD is not a number so it fails to give the proper reading.. I may have to add an icon for N/A or something for those times.

Trying to understand this - why wouldn't it fail on the mobile dash at the same time? Don't the two programs get their data from the same place?
Title: Re: Alternative-Dashboard Version 6.20
Post by: tnwxman on July 16, 2011, 03:01:02 PM
Hi All,

Need some help. When I click on the home option on the flyout menu I get the following:

Parse error: syntax error, unexpected '<' in /homepages/6/d330860172/htdocs/wxindex.php on line 51

Line 51 in wxindex.php is:

<div id="main-copy"> 

What is causing this?

Thanks.

Bob
Title: Re: Alternative-Dashboard Version 6.20
Post by: CNYWeather on July 16, 2011, 03:10:13 PM
Clicking on your banner brings you to index.php

Maybe change the link in flyout menu to reflect that?
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 16, 2011, 04:01:03 PM
yes, but not at exactly the same time, it only happens every once inawhile

Yes, I have been looking at that solar icon issue also, it seems that sometimes the value sent by WD is not a number so it fails to give the proper reading.. I may have to add an icon for N/A or something for those times.

Trying to understand this - why wouldn't it fail on the mobile dash at the same time? Don't the two programs get their data from the same place?
Title: Re: Alternative-Dashboard Version 6.20
Post by: tnwxman on July 16, 2011, 04:28:04 PM
Hi Tony,

That fixed it. Thanks.

Bob
Title: Re: Alternative-Dashboard Version 6.20
Post by: Silversword on July 26, 2011, 02:07:59 AM
Hi Scott,

I don't know if this is just my problem but whenever the UV index in the prediction mode goes over 12.5 or more the UV icon is not displayed.  Also, during the day when it goes over that 12.5 threshold the icon is not displayed for some reason. Sometimes I get a UV index that approaches 15 when the sun is near vertical at my location.  This happens BTW twice a year being in the tropics.  It is called the Lahaina Noon over here. See the attached snapshot from this evening. I am currently using version 6.20.

Thanks for you comment or possible solution.

--Stan Y.
   Maui, Hawaii
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 26, 2011, 07:41:21 AM
I will have to add in some code to handle that.  I didn't think there was supposed to be anything over 11 so I didn't put anything in there to handle that. 

Scott

Hi Scott,

I don't know if this is just my problem but whenever the UV index in the prediction mode goes over 12.5 or more the UV icon is not displayed.  Also, during the day when it goes over that 12.5 threshold the icon is not displayed for some reason. Sometimes I get a UV index that approaches 15 when the sun is near vertical at my location.  This happens BTW twice a year being in the tropics.  It is called the Lahaina Noon over here. See the attached snapshot from this evening. I am currently using version 6.20.

Thanks for you comment or possible solution.

--Stan Y.
   Maui, Hawaii

Title: Re: Alternative-Dashboard Version 6.20
Post by: gwwilk on July 26, 2011, 12:29:58 PM
Yes, I have been looking at that solar icon issue also, it seems that sometimes the value sent by WD is not a number so it fails to give the proper reading.. I may have to add an icon for N/A or something for those times.

Scott

Scott,

The Solar Icon issue could be complicated by a programming issue.  I don't think it's a good idea to pass a value to a routine, manipulate the value in a routine, and then pass it back to the caller all the while using the same variable name.  This routine, 'get_SIrange', is used in both Alternative-Dashboard Version 6.20 and WWL-mobile mobile dashboard.  If you look at it you will see that it is called with the parameter '$currentsolarpercent' by the calling routine, but '$si' is used as the data passed to it, which then is manipulated by the routine and returned as '$si'.  I've changed the routine to use a strictly local parameter as follows:
Code: [Select]
function get_SIrange ( $solarpercent ) {
   switch (TRUE) {
     case ($solarpercent == 0):
       $si = '0';
     break;
     case (($solarpercent > 0) and ($solarpercent < 10)):
       $si = '0';
     break;
     case (($solarpercent >= 10) and ($solarpercent < 19)):
       $si = '1';
     break;
     case (($solarpercent >= 20) and ($solarpercent < 29)):
       $si = '2';
     break;
     case (($solarpercent >= 30) and ($solarpercent < 39)):
       $si = '3';
     break;
     case (($solarpercent >= 40) and ($solarpercent < 49)):
       $si = '4';
     break;
     case (($solarpercent >= 50) and ($solarpercent < 59)):
       $si = '5';
     break;
     case (($solarpercent >= 60) and ($solarpercent < 69)):
       $si = '6';
     break;
     case (($solarpercent >= 70) and ($solarpercent < 79)):
       $si = '7';
     break;
     case (($solarpercent >= 80) and ($solarpercenti < 89)):
       $si = '8';
     break;
     case (($solarpercent >= 90) and ($solarpercent < 99)):
       $si = '9';
     break;
     case ($solarpercent >= 100):
       $si = '10';
     break;
   } // end switch
   return $si;
} // end get_Solarrange

This may or may not have anything to do with the red 'x' showing up at times instead of the Solar Index icon.  I'm not seeing it with my modified Ajax-Dashboard6 or my modified mobile dashboard, for whatever it's worth.
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 26, 2011, 07:23:34 PM
I'll check that out, see if it helps!  From what I've seen though, it is actually coming from WD.

Scott


Yes, I have been looking at that solar icon issue also, it seems that sometimes the value sent by WD is not a number so it fails to give the proper reading.. I may have to add an icon for N/A or something for those times.

Scott

Scott,

The Solar Icon issue could be complicated by a programming issue.  I don't think it's a good idea to pass a value to a routine, manipulate the value in a routine, and then pass it back to the caller all the while using the same variable name.  This routine, 'get_SIrange', is used in both Alternative-Dashboard Version 6.20 and WWL-mobile mobile dashboard.  If you look at it you will see that it is called with the parameter '$currentsolarpercent' by the calling routine, but '$si' is used as the data passed to it, which then is manipulated by the routine and returned as '$si'.  I've changed the routine to use a strictly local parameter as follows:
Code: [Select]
function get_SIrange ( $solarpercent ) {
   switch (TRUE) {
     case ($solarpercent == 0):
       $si = '0';
     break;
     case (($solarpercent > 0) and ($solarpercent < 10)):
       $si = '0';
     break;
     case (($solarpercent >= 10) and ($solarpercent < 19)):
       $si = '1';
     break;
     case (($solarpercent >= 20) and ($solarpercent < 29)):
       $si = '2';
     break;
     case (($solarpercent >= 30) and ($solarpercent < 39)):
       $si = '3';
     break;
     case (($solarpercent >= 40) and ($solarpercent < 49)):
       $si = '4';
     break;
     case (($solarpercent >= 50) and ($solarpercent < 59)):
       $si = '5';
     break;
     case (($solarpercent >= 60) and ($solarpercent < 69)):
       $si = '6';
     break;
     case (($solarpercent >= 70) and ($solarpercent < 79)):
       $si = '7';
     break;
     case (($solarpercent >= 80) and ($solarpercenti < 89)):
       $si = '8';
     break;
     case (($solarpercent >= 90) and ($solarpercent < 99)):
       $si = '9';
     break;
     case ($solarpercent >= 100):
       $si = '10';
     break;
   } // end switch
   return $si;
} // end get_Solarrange

This may or may not have anything to do with the red 'x' showing up at times instead of the Solar Index icon.  I'm not seeing it with my modified Ajax-Dashboard6 or my modified mobile dashboard, for whatever it's worth.
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 26, 2011, 07:40:19 PM
I have a fix for the UV over 11 issue.  Need someone with the problem to check it for me.  Please email me if you can test it.

Scott


Hi Scott,

I don't know if this is just my problem but whenever the UV index in the prediction mode goes over 12.5 or more the UV icon is not displayed.  Also, during the day when it goes over that 12.5 threshold the icon is not displayed for some reason. Sometimes I get a UV index that approaches 15 when the sun is near vertical at my location.  This happens BTW twice a year being in the tropics.  It is called the Lahaina Noon over here. See the attached snapshot from this evening. I am currently using version 6.20.

Thanks for you comment or possible solution.

--Stan Y.
   Maui, Hawaii

Title: Re: Alternative-Dashboard Version 6.20
Post by: stormwatch on July 26, 2011, 08:27:33 PM
Someone that was visiting my site and noticed a problem that I was having with my ajax updates and brought it to my attention. When you go to my homepage: www.carolinastormwatch.com/ the page will update as it should but then after that the time flashes green every 5-10 seconds as it should but the info on the dashboard is not updating and the it is not resetting the update time; the page continues on and does not refresh unless you manually refresh the page.

I have no idea when this began and how long it has been going on but it had been working fine previously. I am thinking that this issue began when I updated my testtags which was causing an issue because I was missing some tags. Probably a coincidence and not sure this was the time problem developed.

I am running Version 6.10 of Scott's Dashboard. Anyone have any ideas of what may be going on here??? Any suggestions would be appreciated! Wonderful job that you have done building this script Scott; I know this all has been a pain in the a#@ at times but we certainly appreciate your great work!!

Tom


Title: Re: Alternative-Dashboard Version 6.20
Post by: n3ouc on July 26, 2011, 09:46:48 PM
Hi Tom,
I am running a quasi version of alt dashboard and watched your page for a while tonight with great interest as I am having the same issue. Your page actually does ajax updates, but as mine is doing, the update so many seconds ago does not reset to 0 when an update occurs. Its really weird and I have looked into everything my feeble mind can think of to try and fix this but in the end I just ended up removing the update so many seconds ago section. This started happening on Monday for me and all I added or updated to the system was the alt-dashboard mobile 1.30. I even removed the mobile php to see if that would help but to no avail.

Scott, do you have any ideas or maybe even Ken can chime in..

Take Care,
Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 26, 2011, 10:12:27 PM
Did you upgrade to the new version of testtags.txt too? 

Scott

Hi Tom,
I am running a quasi version of alt dashboard and watched your page for a while tonight with great interest as I am having the same issue. Your page actually does ajax updates, but as mine is doing, the update so many seconds ago does not reset to 0 when an update occurs. Its really weird and I have looked into everything my feeble mind can think of to try and fix this but in the end I just ended up removing the update so many seconds ago section. This started happening on Monday for me and all I added or updated to the system was the alt-dashboard mobile 1.30. I even removed the mobile php to see if that would help but to no avail.

Scott, do you have any ideas or maybe even Ken can chime in..

Take Care,
Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: saratogaWX on July 27, 2011, 12:23:24 AM
Hi Tom,
I am running a quasi version of alt dashboard and watched your page for a while tonight with great interest as I am having the same issue. Your page actually does ajax updates, but as mine is doing, the update so many seconds ago does not reset to 0 when an update occurs. Its really weird and I have looked into everything my feeble mind can think of to try and fix this but in the end I just ended up removing the update so many seconds ago section. This started happening on Monday for me and all I added or updated to the system was the alt-dashboard mobile 1.30. I even removed the mobile php to see if that would help but to no avail.

Scott, do you have any ideas or maybe even Ken can chime in..

Take Care,
Mike
Hi Mike,
Are you referring to your site at http://macungieweather.net/a/index.php ?
If so, you are driving the site by VWS and using the ajaxVWSwx.js script for updates.

I wasn't aware that the alt-dashboard+ajax worked with anything besides Weather-Display ???

Best regards,
Ken
Title: Re: Alternative-Dashboard Version 6.20
Post by: n3ouc on July 27, 2011, 07:49:53 AM
Yes Ken,
I am using a mixture of the alt dashboard and your dashboard. Instead of testags, I was able to get the alt dashboard to read the VWStags.php. This setup has worked very well for me the past month or two and still continues to do so except that out of the blue on Monday, the update so many seconds ago stopped working as does Tom's down in Carolina. After banging it around in my head for awhile, I just removed that section of code. I even tried just using your dashboard and the seconds still do not update. The answer is probably right in front of me, but just cant put my finger on it.   ](*,).

Mike

Update: I re-installed that section of code for the update counter. That particular section is a script, but I cannot find the actual ajaxcounter script in the dashboard or ajaxVWSjs/AjaxWDjs anywhere. Am I on the right track?
Title: Re: Alternative-Dashboard Version 6.20
Post by: gwwilk on July 27, 2011, 11:50:12 AM
Scott,

I think I've cleaned up the Solar Index code so that I'm getting the expected results on my Dashboards.  We still had a couple of problems.  We were calling 'get_SIrange($currentsolarpercent) and sending it non-numeric characters, ' %'.  The second problem was the omission of 1% of the range 10 times in the function 'get_SIrange' (9% to <10%, 19% to <20%, etc).

When I revised the call to 'get_SIrange' to 'get_SIrange(strip_units($currentsolarpercent))' my SI icons started making a little more sense.  Here is the revised code:
Code: [Select]
<img src="ajax-images/SI<?php echo get_SIrange(strip_units($currentsolarpercent)); ?>.gif" height="65" width="34" alt="" title="Current Solar Index" />

Here is the revised function 'get_SIrange':
Code: [Select]
function get_SIrange ( $solarpercent ) {
   switch (TRUE) {
     case ($solarpercent == 0):
       $si = '0';
     break;
     case (($solarpercent > 0) and ($solarpercent < 10)):
       $si = '0';
     break;
     case (($solarpercent >= 10) and ($solarpercent < 20)):
       $si = '1';
     break;
     case (($solarpercent >= 20) and ($solarpercent < 30)):
       $si = '2';
     break;
     case (($solarpercent >= 30) and ($solarpercent < 40)):
       $si = '3';
     break;
     case (($solarpercent >= 40) and ($solarpercent < 50)):
       $si = '4';
     break;
     case (($solarpercent >= 50) and ($solarpercent < 60)):
       $si = '5';
     break;
     case (($solarpercent >= 60) and ($solarpercent < 70)):
       $si = '6';
     break;
     case (($solarpercent >= 70) and ($solarpercent < 80)):
       $si = '7';
     break;
     case (($solarpercent >= 80) and ($solarpercenti < 90)):
       $si = '8';
     break;
     case (($solarpercent >= 90) and ($solarpercent < 100)):
       $si = '9';
     break;
     case ($solarpercent >= 100):
       $si = '10';
     break;
   } // end switch
   return $si;
} // end get_Solarrange

I've incorporated these changes into both my Ajax-Dashboard6.php and WWL-mobile.php and they seem to be doing the job so far this morning.  I'll let you know if they give me more trouble.

Edit:  I still wasn't happy with the 'Solar Index' that the '$currentsolarpercent' was producing.  I found a reference at Dynamax that states that the normal daylight maximum is 1000 W/m2 which fits quite nicely with the 0 to 10 scale we're using.  I've modified the dashboards to base the index on '$VPsolar' rather than '$currentsolarpercent'.  Here is the new code I'm using:
Code: [Select]
<img src="ajax-images/SI<?php echo get_SIrange($VPsolar); ?>.gif" height="65" width="34" alt="" title="Current Solar Index" />
and
Code: [Select]
function get_SIrange ( $solar ) {
   switch (TRUE) {
     case ($solar == 0):
       $si = '0';
     break;
     case (($solar > 0) and ($solar < 100)):
       $si = '0';
     break;
     case (($solar >= 100) and ($solar < 200)):
       $si = '1';
     break;
     case (($solar >= 200) and ($solar < 300)):
       $si = '2';
     break;
     case (($solar >= 300) and ($solar < 400)):
       $si = '3';
     break;
     case (($solar >= 400) and ($solar < 500)):
       $si = '4';
     break;
     case (($solar >= 500) and ($solar < 600)):
       $si = '5';
     break;
     case (($solar >= 600) and ($solar < 700)):
       $si = '6';
     break;
     case (($solar >= 700) and ($solar < 800)):
       $si = '7';
     break;
     case (($solar >= 800) and ($solar < 900)):
       $si = '8';
     break;
     case (($solar >= 900) and ($solar < 1000)):
       $si = '9';
     break;
     case ($solar >= 1000):
       $si = '10';
     break;
   } // end switch
   return $si;
} // end get_Solarrange

I'm much happier with the range this algorithm produces.

Thanks for all of your hard work!
Title: Re: Alternative-Dashboard Version 6.20
Post by: CNYWeather on July 27, 2011, 12:11:14 PM
Tom, I camped out for a bit and didnt see anything update except the time.

In my experience, that has usually meant there's something wrong with the ajaxWDwx.js file.
When I monkey with it and "break" it, time updates and nothing else does without a refresh.
Title: Re: Alternative-Dashboard Version 6.20
Post by: n3ouc on July 27, 2011, 03:50:34 PM
Ken - Tom,
I found the problem the problem with my site not updating. I finally flushed the ajaxVWSws file and installed a fresh copy and it took care of the issue. Tom, did you re-install or mess with your ajaxWDws file? Look at that as it may very well be the issue.

Take care,
Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 27, 2011, 08:35:37 PM
Could you explain how using the raw solar reading is better then the percentage?  I'm not understanding how it is better as I am almost always above 1000W/m2 in the summer months and the idea behind the icons is more of a percentage of sunlight (like UV) that your site is experiencing.  I'm missing what improves with the raw reading as opposed to the percentage.

Scott


One issue with this solar icon script is that if you hit a number, say a solar index of 100, nothing will show icon wise. You need to set the script up to do something like this:
 case (($solar > 0) and ($solar < 100)):
       $si = '0';
     break;
     case (($solar >= 99) and ($solar < 200)):
       $si = '1';
     break;
     case (($solar >= 199) and ($solar < 300)):
       $si = '2';
     break;


and so on so that the number 100, 200, 300 and so forth are covered.

Hope this helps,

Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: n3ouc on July 27, 2011, 10:07:36 PM
Hi Scott,
First let me apologize on the solar script as I was very mistaken with my earlier post. I think in previous versions the < = section didnt include the equals sign but now does. The script is fine how you wrote it.  :???:

The only reason I use raw solar readings is because VWS does not do a solar percentage calculation so the only way I can get the solar icon to show is to do it with the solar radiation. I do not know why gwwlk is using this, but that is my reason. By substituting the testtags mentions in the alt-ajaxdashboard file with VWStags, I had to comprimise in a couple of spots to get the alt-dashboard to work and this is one of the spots.

Thank you for all your hard work..  I really enjoy working with these php scripts and seeing just what is possible. Every day I come across something else that can be done with these scripts.

Take Care,

Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: BurnsvilleWeather on July 27, 2011, 10:11:25 PM
Hi Mike,

Ok, that makes more sense now.  To help keep confusion down though, can we start a new thread for questions about your VWS version?  I think it's confusing people as the alternative dashboard script I put out is only officially for Weather Display software.  I'd be happy to help with a translation to VWS where I can.

Scott

Hi Scott,
First let me apologize on the solar script as I was very mistaken with my earlier post. I think in previous versions the < = section didnt include the equals sign but now does. The script is fine how you wrote it.  :???:

The only reason I use raw solar readings is because VWS does not do a solar percentage calculation so the only way I can get the solar icon to show is to do it with the solar radiation. I do not know why gwwlk is using this, but that is my reason. By substituting the testtags mentions in the alt-ajaxdashboard file with VWStags, I had to comprimise in a couple of spots to get the alt-dashboard to work and this is one of the spots.

Thank you for all your hard work..  I really enjoy working with these php scripts and seeing just what is possible. Every day I come across something else that can be done with these scripts.

Take Care,

Mike
Title: Re: Alternative-Dashboard Version 6.20
Post by: saratogaWX on July 27, 2011, 10:34:34 PM
Yes Ken,
I am using a mixture of the alt dashboard and your dashboard. Instead of testags, I was able to get the alt dashboard to read the VWStags.php. This setup has worked very well for me the past month or two and still continues to do so except that out of the blue on Monday, the update so many seconds ago stopped working as does Tom's down in Carolina. After banging it around in my head for awhile, I just removed that section of code. I even tried just using your dashboard and the seconds still do not update. The answer is probably right in front of me, but just cant put my finger on it.   ](*,).

Mike

Update: I re-installed that section of code for the update counter. That particular section is a script, but I cannot find the actual ajaxcounter script in the dashboard or ajaxVWSjs/AjaxWDjs anywhere. Am I on the right track?

Well, I'm surprised (and a bit pleased).  When I'd created the plugins for VWS, WL and Cumulus, I'd tried to map as many of the native tags to WD $tags (in VWS-defs.php) to make the (original) dashboard and gizmo work.  I'd not tried it with Scott's alternative dashboard, but I'm pleased that much of it works with VWS as a driver.
Keep in mind that VWS doesn't produce all the tags that are used in the alternative dashboard, and the VWS AJAX can only update that which is published in the WeatherFlash files (wflash.txt/wflash2.txt).  

Best regards,
Ken
Title: Re: Alternative-Dashboard Version 6.20
Post by: gwwilk on July 27, 2011, 10:37:15 PM
Could you explain how using the raw solar reading is better then the percentage?  I'm not understanding how it is better as I am almost always above 1000W/m2 in the summer months and the idea behind the icons is more of a percentage of sunlight (like UV) that your site is experiencing.  I'm missing what improves with the raw reading as opposed to the percentage.

Scott

I'll jump in here, Scott.  The scale is arbitrary when you use the raw solar reading, that's a given.  If you want to move the icon points around, that's fairly easy to do (e.g. 0 to <120, 120 to < 240, 240 to < 360...to end with 10>=1200).  Why use raw solar?  Well, I think that better reflects the nature of an index.  Do you want it to mirror the percentage of potential sunlight your site is experiencing, or do you want it to mirror the solar energy your site is receiving?  IMHO I think solar energy is a better use for a 'Solar Index', but that's just me.  Using percentage my 'Index' hovered around 6-7 all day, and then fell slowly at dusk--it still would have read 5 just now at dusk.  An index above zero when there's no energy coming from sunlight is counter-intuitive to me.

In fact, when I look at my max solar for last month it was indeed 1432 W/m2, which means my shot in the dark indexing was off target.  I do see the value of a 'Solar Ratio' as the percentage along with 'Solar Index' as the absolute value.  Could we think about using both values?  Or just change the name of your original algorithm to 'Solar Ratio'?  Sorry...my OCD is on display again, isn't it?

The first set of changes I posted today should provide an accurate Solar Index ratio as based on percentage, and the second set of changes will provide an absolute solar index, although it scales up too rapidly as written.  I'm going to rescale it now just to see how it works tomorrow.

I apologize for any confusion I might have created while trying to get my head around this.
Title: Re: Alternative-Dashboard Version 6.20
Post by: stormwatch on July 28, 2011, 12:07:06 AM
Ken - Tom,
I found the problem the problem with my site not updating. I finally flushed the ajaxVWSws file and installed a fresh copy and it took care of the issue. Tom, did you re-install or mess with your ajaxWDws file? Look at that as it may very well be the issue.

Take care,
Mike

Thanks everyone for the input here. Hi Mike, no I have not touched the ajaxWDwx file at all since I installed V6.09 of Scott's script several months ago. Like I said in the earlier post; Scott was able to pinpoint a problem I was having because my texttags were V1.06 but I thought I had been updating them as new Versions of the Dashboard were released but apparently not. Once I installed the newest Version of Texttags my other issues were corrected (forget issue now). As I said earlier though it seems that the issue with with my page not updating seems to have began right around the time I installed the new texttags but may have absolutely no connection at all. I do remember several weeks ago just watching my page to see how often it was updating (due to sometimes taking 20-30 sec) but it updated fine.

I guess the best thing do to is redo the ajaxWDwx and see what happens. You are definitely correct Tony; it will update when you first go to my homepage but after that no updates unless you manually refresh the page. Very strange but I am used to my scripts doing odd things....LOL!!! Most every time it is the OPERATOR not the script!! :oops:

Thanks, Tom   
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on July 30, 2011, 09:08:13 AM
UPDATED:  Version 6.21 - 26-Jul-2011
Modifications for UV so values over 11 show correctly now.  Updates to Solar. This is a minor update that just needs the main .php file replaced. 

The download link is in the first message of this thread!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: FrontRunner on August 07, 2011, 04:14:43 AM
Yesterday i download version 6.21 and currently trying to translate it to Dutch. So far results can be seen here http://westlandsweer.nl (http://westlandsweer.nl). But I've got a few issues with this:

Code: [Select]
                     if ($WDdateMDY)
                          echo date("M-j-Y", mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear));
                      else
                          echo date("j-M-Y", mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear));
I would like to expres that in ajax-dashboard.php there are more rows with the mkdate-function. Just make sure that the mkdate-function always shows mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear) AND NOT mktime(0,0,0,$recordlowchillday,$recordlowchillmonth,$recordlowchillyear)


[solved]
Seems to be a slight coding error in AjaxWDwx.js, imgNrs seem to be wrong --> find and replace
Code: [Select]
function ajax_getFireIndex ( fwi , fireImg ) {
   switch (true) {
     case (fwi==0): idx = fireImg.imgNrs[0]; break;
     case (fwi< 7): idx = fireImg.imgNrs[0]; break;
     case (fwi<16): idx = fireImg.imgNrs[1]; break;
     case (fwi<25): idx = fireImg.imgNrs[2]; break;
     case (fwi<31): idx = fireImg.imgNrs[3]; break;
     default      : idx = fireImg.imgNrs[4];
   }
return idx;
};



Any help is much appreciated
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 14, 2011, 04:15:03 PM
  • Furthermore my windchill record shows a date of 7/6/2013. But if I look in my testtags.php i see the following values:
    $recordlowchillmonth = '7';   // Record low temp month
    $recordlowchillday = '30';   // Record low temp day
    $recordlowchillyear = '2011';   // Record low temp year

    Any ideas on how to solve this? [Solved: changed some coding ajax-dashboard.php [line 1314] to]
Code: [Select]
                     if ($WDdateMDY)
                          echo date("M-j-Y", mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear));
                      else
                          echo date("j-M-Y", mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear));
I would like to expres that in ajax-dashboard.php there are more rows with the mkdate-function. Just make sure that the mkdate-function always shows mktime(0,0,0,$recordlowchillmonth,$recordlowchillday,$recordlowchillyear) AND NOT mktime(0,0,0,$recordlowchillday,$recordlowchillmonth,$recordlowchillyear)
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 14, 2011, 04:18:12 PM
With the next version of the alternative dashboard I will be adding support for leaf sensor, soil moisture and soil temperature.  I will be adding those sensors this coming weekend hopefully and will be beta testing that over the next few weeks.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: ed2kayak on August 20, 2011, 11:12:28 AM
Scott,
Just checked your site w/beta alt dashboard. Looks like I'll need to buy some soil sensors. :?
Ed
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 20, 2011, 11:58:44 AM
Scott,
Just checked your site w/beta alt dashboard. Looks like I'll need to buy some soil sensors. :?
Ed

Ed,

Yeah it was quite the project but the local area farmers seem to be pleased!  They are looking forward to the information during the growing season.  So far so good.  Now on to building a Soil page for all the other data!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: ed2kayak on August 20, 2011, 12:03:42 PM
what's required for that setup hardware wise?
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 20, 2011, 12:34:34 PM
what's required for that setup hardware wise?

For me, I purchased a Leaf and Soil Moisture/Temperature Station (wireless) #6345 from Davis, 1 Leaf Wetness sensor #6420 and 2 each of Davis Soil Moisture Sensor #6440 and Davis Steel Temp Probe #6470

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 21, 2011, 10:27:13 PM
Here is a preview of the new Soil Conditions section (option) that I have added in Version 6.5:

You can set the number of sensors from 1-4 and it will include a base set of graphics for the current conditions icons.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on August 30, 2011, 10:32:27 PM
Working on getting the new dash installed. Fix the Langtran issue but now have this : Parse error: syntax error, unexpected $end in /homepages/18/d339288694/htdocs/ajax-dashboard.php on line 2524

Any ideas?

Line 2524 id ?> which seems to be tied to me uncommenting the 2 lines noted to fix the lang error.
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on August 30, 2011, 11:13:34 PM
OK so I need to work on my uncommenting skills Lol.... I got it up and running but it's a little wide...Back to work
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on August 31, 2011, 01:23:53 AM
It's up and running  \:D/ I don't know if it's me but the dashboard is JUST slightly wider than the spot it's sitting in. Did I miss changing a value? If so where do I go to change that value. Thanks Scott for giving me a nudge in the right direction :)
Title: Re: Alternative-Dashboard Version 6.21
Post by: jgillett on August 31, 2011, 03:15:10 AM
It's up and running  \:D/ I don't know if it's me but the dashboard is JUST slightly wider than the spot it's sitting in.

From my viewpoint it fits perfectly within the window. There is no spillover.

However, you do have some validation errors to look at - nothing really major.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 31, 2011, 07:44:58 AM
Looks great!  You're missing the very small raising, falling and steady arrow images though and you may want to go with transparrent gif images of the sun and moon so you don't get the background.   :grin:

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on August 31, 2011, 08:42:14 AM
Thanks guys. I fixed the width issue but by 2:30 am I was done Lol. Hope to work on it more tonight. Scott where do I find the GIF's and what do I change to use them? The Ajaxwdwx.js ? I don't seem to be getting AQI updates? Is that an issue on their end or mine?

Thanks

** Arrows are fixed and working **
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 31, 2011, 07:05:09 PM
Thanks guys. I fixed the width issue but by 2:30 am I was done Lol. Hope to work on it more tonight. Scott where do I find the GIF's and what do I change to use them? The Ajaxwdwx.js ? I don't seem to be getting AQI updates? Is that an issue on their end or mine?

Thanks

** Arrows are fixed and working **

Glad you found the images!  You still need to update the images for wind direction and current conditions in the main ajax-dashboard.php file too.  Make it match what you set them to in the java script.  They need to be set in both because the page loads and the java only updates.  The AQI is a separate module that you have to configure, have you done all that yet?

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on August 31, 2011, 07:18:02 PM
Glad you found the images!  You still need to update the images for wind direction and current conditions in the main ajax-dashboard.php file too.  Make it match what you set them to in the java script.  They need to be set in both because the page loads and the java only updates.  The AQI is a separate module that you have to configure, have you done all that yet?

Scott


Scott I haven't configured the AQI so that is likely the issue. I'm hoping to work on the remaining images later after company leaves. Which images am I looking for? Do I use the GIF or JPG version? Thanks for the help on this. REALLY happy with the way it looks.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 31, 2011, 09:07:38 PM
Scott I haven't configured the AQI so that is likely the issue. I'm hoping to work on the remaining images later after company leaves. Which images am I looking for? Do I use the GIF or JPG version? Thanks for the help on this. REALLY happy with the way it looks.
Set the following line is AltAjaxDashboardConfig6.php to .png instead of .jpg
Code: [Select]
// 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        = '.jpg';             // extension of the graphic filename
$wrCalm        = 'wr-calm.jpg';      // set to full name of graphic for calm display ('wr-calm.gif')
Then at the bottom of ajax-dashboard6.php, find the block of images that show .gif (like this snip)
Code: [Select]
// pick the NOAA style condition icon based on iconnumber
function newIcon($numb) {

  $iconList = array(
"skc.gif",          //  0 imagesunny.visible
"nskc.gif",         //  1 imageclearnight.visible
"bkn.gif",          //  2 imagecloudy.visible

And change all in that section only to .jpg instead of .gif.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on August 31, 2011, 09:10:46 PM
Scott I haven't configured the AQI so that is likely the issue. I'm hoping to work on the remaining images later after company leaves. Which images am I looking for? Do I use the GIF or JPG version? Thanks for the help on this. REALLY happy with the way it looks.
You are still missing the steady arrow (blue arrow pointing left).  It's in the archive along with other images you may need for Version 6.2x.  Put them all in the same directory as the other arrows.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 01, 2011, 04:28:04 PM
OK I THINK I have the arrow situation under control. Still need to fix a few other small issues but I have a question. How do I configure the AQI to pick up the values for NY? Do I configure it within the Get AQI script? What URL do I use to fetch the data?

Any help is appreciated.
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 01, 2011, 07:04:47 PM
You want the value for NYC Bobby?

Here's the code. Save it as get-aqi-rss.php

Code: [Select]
<?php
//Current Air Quality URL
$urlRealtime "http://feeds.enviroflash.info/rss/realtime/94.xml";  //New York City, NY
// Images Directory
$imagesDir "./ajax-images";

// GET THE DATA FROM URL
getAQIdata($urlRealtime"realtime");


//// FUNCTIONS
// Data aquisition
function getAQIdata($AQIurl,$type) {
global $$type;

$$type = array();
$typeA $type;
$typeA = new DOMDocument();
$typeA->load($AQIurl);
foreach ($typeA->getElementsByTagName('item') as $node) {
$itemRSS = array ( 
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
);
array_push($$type$itemRSS);
}
}


// strip out the needed data
preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />\n|Uis'$realtime[0]["desc"], $r3);
$realIndex2 'N/A';
$realValue2 'N/A';
$realMeasure2 'N/A';

// search for two AQI types
if(preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis'$realtime[0]["desc"])) {
   
preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis'$realtime[0]["desc"], $r3);
   
$realIndex2 trim(strip_tags($r3[4]));
   
$realValue2 trim(strip_tags($r3[5]));
   
$realMeasure2 trim(strip_tags($r3[6]));
}

$realIndex1 trim(strip_tags($r3[1]));
$realValue1 trim(strip_tags($r3[2]));
$realMeasure1 trim(strip_tags($r3[3]));

// get the last update
preg_match('|Last Update: (.*)</i>|'$realtime[0]["desc"], $r4);
$realUpdate trim(strip_tags($r4[1]));

// arrays for comparing levels and values
$aqiValues = array('0-50''51-100''101-150''151-200''201-300''301-500');
$aqiLevels = array('Good''Moderate''Unhealthy for Sensitive Groups''Unhealthy''Very Unhealthy''Hazardous');
$aqiGraphic = array('AQI1.jpg''AQI2.jpg''AQI3.jpg''AQI4.jpg''AQI5.jpg''AQI6.jpg');  ////////////////////////////////////////////


// Associate AQI level with graphic icon
function getGraphic($value$levels$graphic$iDir) {
   global 
$levelImage;
   
   
$var array_search($value$levels);
   if(
$value !== 'N/A') {
   $levelImage "<img src=\"".$iDir."/".$graphic["$var"]."\" alt=\"".$levels["$var"]."\" title=\"".$levels["$var"]."\" border=\"0\" />";
   echo $levelImage;
   }
   else {
   $levelImage "<img src=\"".$iDir."/aqi_nodata_text.gif\" alt=\"No Data\" title=\"No Data\" border=\"0\" />";
   echo $levelImage;
   }
}

////  END OF FUNCTIONS

?>
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 01, 2011, 08:14:41 PM
Tony,

Thanks bud! You rock !
Title: Re: Alternative-Dashboard Version 6.21
Post by: jahuff on September 04, 2011, 08:35:14 PM
Hi Everyone,

I am almost complete with the conversion to Ver. 3 of Ken's templates. I have a problem with getting the Alternative Dashboard working. I have the latest version of the Dashboard. The website is located at www.johnsnhweather.com. The problem can be seen at www.johnsnhweather.com/althome.php

If you look at the source for the page the code stops after the radar image. The code below is what follows but will not run.

Code: [Select]
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
 { include_once("ajax-dashboard621.php");
   } else {
print "<p>&nbsp;</p>\n";
print "<p>&nbsp;</p>\n";
print "<p>Note: ajax-dashboard not included since weather station not yet specified.</p>\n";
        for (
$i=0;$i<5;$i++) { print "<p>&nbsp;</p>\n"; }
}?>


<div align="center">
<div id="elixirs1">
<?php include("record.php"); print $breakerreport?>
</div>
</div>
<br/>
  <table width="70%" style="border: none">
  <tr><td align="center">
    <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" alt="Regional Radar" width="310" height="240" style="margin: 0px; padding: 0px; border: none" />
  </td>
  <td align="center">
    <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_ir_anim.gif" alt="Regional Infrared Satellite" 
      width="310" height="240" style="margin: 0px; padding: 0px; border: none" />
  </td>
  </tr>
  <tr><td colspan="2" align="center"><small>Radar/Satellite images courtesy of <a href="http://www.weatherunderground.com">Weather Underground</a>.</small></td></tr>
  </table>
    </div>
    <?php
############################################################################
include("wxscrollinfo2.php");
############################################################################
?>

<br/>

<?php
############################################################################
include("wxscrollinfo.php");
############################################################################
?>

<br/>
<?php
############################################################################
include("wxsnow.php");
############################################################################
?>

<?php
############################################################################
#include("wxtext.php");
############################################################################
?>

</div><!-- end center -->

</div><!-- end column-dark -->

</div><!-- end main-copy -->

<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>

Thanks,

John
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 04, 2011, 09:15:13 PM
Where's your ajax dashboard located John?

Should be here and it gives an error loading it

http://www.johnsnhweather.com/ajax-dashboard621.php
Title: Re: Alternative-Dashboard Version 6.21
Post by: jahuff on September 04, 2011, 10:56:01 PM
Hi Tony,

My dashboard is located at
http://www.johnsnhweather.com/ajax-dashboard621.php

I'm not sure why the error is comming up.

John
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 05, 2011, 02:00:17 AM
Thanks to Scott and Tony I have the new dash installed and have the watch box also up and running  \:D/

My question is though, How the HELL did I wind up with dual them switchers and how the hell do I fix it  ](*,)
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 05, 2011, 08:04:43 AM
Hi Tony,

My dashboard is located at
http://www.johnsnhweather.com/ajax-dashboard621.php

I'm not sure why the error is comming up.

John

No go John

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 05, 2011, 08:18:58 AM
Thanks to Scott and Tony I have the new dash installed and have the watch box also up and running  \:D/

My question is though, How the HELL did I wind up with dual them switchers and how the hell do I fix it  ](*,)

Not sure what you mean!  What is dual?

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 05, 2011, 08:21:23 AM
Hi Tony,

My dashboard is located at
http://www.johnsnhweather.com/ajax-dashboard621.php

I'm not sure why the error is comming up.

John

John,

I'm seeing your page but it needs to be called from within the normal template, not shown on it's own.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: jahuff on September 05, 2011, 08:31:48 AM
Hi All,

The problem was in my PHP code of Alternative-Dashboard Version 6.21, I had uncommented the last two functions langtransstr and langtrans with Ver 3 of Kens code they must be commented PHP doesn't allow duplicate defs for function names. Thanks for the fix Ken.

Thanks,
John
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 05, 2011, 08:40:56 AM
Thanks to Scott and Tony I have the new dash installed and have the watch box also up and running  \:D/

My question is though, How the HELL did I wind up with dual them switchers and how the hell do I fix it  ](*,)

Not sure what you mean!  What is dual?

Scott

There are 2 style switchers in the menubar. Took me a bit to see that  #-o
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 05, 2011, 08:50:08 AM
The problem was in my PHP code of Alternative-Dashboard Version 6.21, I had uncommented the last two functions langtransstr and langtrans with Ver 3 of Kens code they must be commented PHP doesn't allow duplicate defs for function names. Thanks for the fix Ken.

Yup, that would do it!  I put that in at the bottom (commented out) for backwards compatability!  Glad Ken got you going, he's VERY good at this stuff!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 05, 2011, 09:08:49 AM
Quote
There are 2 style switchers in the menubar. Took me a bit to see that  #-o

Yep and I CANNOT figure out why ? :?: ](*,)
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 05, 2011, 09:20:01 AM
check in menubar.php and look for 2 references to the color theme switcher Bobby

<!-- begin Color Theme Switcher Plugin http://www.642weather.com/weather/scripts.php -->
<!-- end Color Theme Switcher Plugin http://www.642weather.com/weather/scripts.php -->

Must be in your menubar twice
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 05, 2011, 09:32:15 AM
check in menubar.php and look for 2 references to the color theme switcher Bobby

<!-- begin Color Theme Switcher Plugin http://www.642weather.com/weather/scripts.php -->
<!-- end Color Theme Switcher Plugin http://www.642weather.com/weather/scripts.php -->

Must be in your menubar twice

Fixed !! I didn't think to check Menubar.php as I don't recall putting it there again.

You keep this up Tony I'm gonna owe you a case of beer !

Thanks bud!
Title: Re: Alternative-Dashboard Version 6.21
Post by: CNYWeather on September 05, 2011, 09:43:25 AM
Budweiser please lol  :-P

See your SWSP Alert is working. Can I make a suggestion?

Clicking your alerts brings you to a national page. I'd change this in SWSP-config.php:

$alertDetailPage = 'wxalertslocal.php';  // web page for displaying map & details

Create yourself a local page, then local visitors will get those local alerts right off the bat

Code: [Select]
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-USA template set)
############################################################################
#
#   Project:    Sample Included Website Design
#   Module:     sample.php
#   Purpose:    Sample Page
#   Authors:    Kevin W. Reed <kreed@tnet.com>
#               TNET Services, Inc.
#
Copyright: (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
# This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once(
"common.php");
############################################################################
$TITLE$SITE['organ'] . " - Local Weather Alerts";
$showGizmo true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
?>

<link rel="stylesheet" type="text/css" href="SWSPalerts.css" media="screen" title="screen" />
</head>
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>


<div id="main-copy">
<h1>Local Weather Alerts</h1>
    <div id="subheader">
        <h3>Click on the map or scroll for your weather office</h3>
<?php include("SWSPloc-inc.php"); ?>

</body>
</html>

</body>

</html><!-- end main-copy -->

<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>

Last thing, you have SWSPalerts.css uploaded too? That will change the look of the alerts on the main page.
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 05, 2011, 11:13:22 AM
Think I got it now :)
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 06, 2011, 08:23:21 PM
Question if anybody can help. I upgraded to Ken's V3 templates. Still a little rough but working on it. My issue is I copied the Ajax-dashboard and AjaxWDwx.js from my directory which was working with the V2 templates over to the new V3 setup and the dashboard is missing. I'm running out of hair to pull out. If anybody has any thoughts I'd REALLY appreciate it.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 06, 2011, 11:04:01 PM
Question if anybody can help. I upgraded to Ken's V3 templates. Still a little rough but working on it. My issue is I copied the Ajax-dashboard and AjaxWDwx.js from my directory which was working with the V2 templates over to the new V3 setup and the dashboard is missing. I'm running out of hair to pull out. If anybody has any thoughts I'd REALLY appreciate it.

Is there a link to your version 3 dashboard?  Maybe I (or someone else) can see something to help quick!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: mava on September 15, 2011, 05:16:26 AM
Hi,
I have upgraded from V2 to V3 and it seems to be working fine except from the cloud-base script. "clientraw not available" .
I haven't done anything to cloud-base so I guess it has to do with the new V3 files like Settings or Settings-weather??

Any ideas?

www.mavahome.com

regards
Title: Re: Alternative-Dashboard Version 6.21
Post by: Strgazr27 on September 15, 2011, 11:17:40 AM
Mava,

Are the paths to the image and clientraw correct? I had forgotten to upload the image and script so it gave me issues till I did that?
Title: Re: Alternative-Dashboard Version 6.21
Post by: mava on September 15, 2011, 01:19:51 PM
Hi,
Yes they should be. I can't see any problems with the path.
Worked fine with V2 and stopped when I upgraded to V3.

UPDATE : Found the problem. Had to dissable the path to Settings.php.

rgs
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 16, 2011, 09:54:15 AM
Hi,

I am having a couple of problems with this version. please help, I have tried everything I can think of.

1) wunderground forecast in row one not aligned correctly (checked in FF and IE).
2) wind chill not switching to heat index during warm temps.
3) time on dashboard not in 24hr format despite (to the best of my knowledge) being set to show 24hr.
The website is at: http://www.gosportweather.co.uk/Base-World/wxindex.php
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 16, 2011, 06:14:32 PM
1) wunderground forecast in row one not aligned correctly (checked in FF and IE).
2) wind chill not switching to heat index during warm temps.
3) time on dashboard not in 24hr format despite (to the best of my knowledge) being set to show 24hr.
The website is at: http://www.gosportweather.co.uk/Base-World/wxindex.php

Couple of questions.  What version of Ken's script are you using, V2 or V3?  It looks like you have set your width in the css to wider then the standard format, is that correct?  Can you send a copy of the ajaxWDwx.php file to me so I can see your settings.  (zip it or rename it .txt)

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 16, 2011, 06:51:59 PM
Hi,

I am using V3 of kens scripts with your V6 dashboard installed. I have set the size to wide in the settings.php. I was going to see whether the problem with the alignment of the WU forecast was better in 'narrow' but can't do because there seems to be a problem with their site at the moment. Please find attached a copy of my ajaxWDwx.php which is the one which was included with your dashboard. I'll report back when I have been able to check up on the WU alignment problem. 
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 16, 2011, 09:28:20 PM
I am using V3 of kens scripts with your V6 dashboard installed. I have set the size to wide in the settings.php. I was going to see whether the problem with the alignment of the WU forecast was better in 'narrow' but can't do because there seems to be a problem with their site at the moment. Please find attached a copy of my ajaxWDwx.php which is the one which was included with your dashboard. I'll report back when I have been able to check up on the WU alignment problem. 
OOps!  ](*,)  I asked for the wrong file name, I actually would like to see AltAjaxDashboardConfig6.php as that has the main configuration files for the dashboard in it.  As for the width, the alt-dashboard won't really look right in wide format, it was designed only for narrow. 

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 18, 2011, 12:40:42 PM
Hi,

sorry for the late reply. Here is the AltAjaxDashboardConfig6.php you asked for. The problem with the forecast out of alignment was a client side problem and therefore needs no work done on it. The only things are the clock not in 24hr and wind chill not changing. What temperature does it have to be for the wind chill to change to heat index?
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 18, 2011, 04:18:46 PM
sorry for the late reply. Here is the AltAjaxDashboardConfig6.php you asked for. The problem with the forecast out of alignment was a client side problem and therefore needs no work done on it. The only things are the clock not in 24hr and wind chill not changing. What temperature does it have to be for the wind chill to change to heat index?
In the config, you have the $coolVal set to 65 so it would need to reach 65C to change (since you use metric).  If you set it correctly to the metric value it will change nicely!

Code: [Select]
$coolVal   = '65';            // Temperature to Switch view to Cooling Degree Days rather then Heating usually 18.33C or 65F
As for the time, you will need to manually set the format on line about 398 in the main script and in the ajaxwdwx.js settings. 

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 18, 2011, 05:51:34 PM
Hi,

Thank you that has sorted the wind chill/ heat index. I will have another look at the time issue because last time I looked in the files they were set correctly but didn't show the correct format on the webpage.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 18, 2011, 06:04:42 PM
Hi,

Thank you that has sorted the wind chill/ heat index. I will have another look at the time issue because last time I looked in the files they were set correctly but didn't show the correct format on the webpage.

The format is set by the line in the code, it's not in the settings right now.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 19, 2011, 05:59:48 PM
Scott,

I have two degree symbols showing under station all time records how do I get rid of one of them. I have tried adding the code suggested earlier in this tread but it doesn't seemed of changed it. Also I have found that under station highs and lows it is saying two temperatures with dates in 2012. I think the temperatures are correct but the dates are not. I have checked the testtags.php and cannot find 2012 in there.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 19, 2011, 10:25:44 PM
Scott,

I have two degree symbols showing under station all time records how do I get rid of one of them. I have tried adding the code suggested earlier in this tread but it doesn't seemed of changed it. Also I have found that under station highs and lows it is saying two temperatures with dates in 2012. I think the temperatures are correct but the dates are not. I have checked the testtags.php and cannot find 2012 in there.

You can either turn off the unit of measure in WD or remove the . $uofm in the echo statement where you see two.  As for the 2012, do you have two years of history?

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 20, 2011, 05:39:56 AM
Hi,

no I haven't got two years of history yet. I have had a look at $uofm in the echo statement and removed it but it didn't seem to make a difference. Also how do I turn off uom switching at the top of the dashboard? I have tried removing the code but it didn't change.  ](*,)
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 20, 2011, 10:14:14 AM
Hi,

no I haven't got two years of history yet. I have had a look at $uofm in the echo statement and removed it but it didn't seem to make a difference. Also how do I turn off uom switching at the top of the dashboard? I have tried removing the code but it didn't change.  ](*,)

If you don't have two years of history the only option you can use is the Weather Underground history.  You can enable that option in the config file.  I'll have to see if I can find the place in WD for turning off the Unit Of Measure in the tags.  I can't remember off the top my head where that is located.  I will check when I get home from work.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 20, 2011, 05:33:31 PM
Scott,

I don't have solar or UV sensors and was wondering how I would go about replacing the 'Solar Summary' section with a section for extra temperature.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 20, 2011, 05:57:26 PM
I don't have solar or UV sensors and was wondering how I would go about replacing the 'Solar Summary' section with a section for extra temperature.

It would be pretty easy to just remove that short section of code and add in another as long as it wasn't much longer then the current area the solar display is now.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: rh205 on September 21, 2011, 10:02:48 AM
Scott,

I have tried changing the code in the ajax-dashboard.php but it still says 'solar summary' and the same data. The idea is to change the title to 'Grass Temp' and then show current 'Grass Temp', 'Grass Temp Max' and 'Grass Temp Min'. The testtag file appears to be writing these values correctly but the dashboard isn't showing them.  Where else do I need to change the code? What code should I put and in which file? I am new to php so my attempts seem to be failing.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 21, 2011, 06:15:48 PM
Scott,

I have tried changing the code in the ajax-dashboard.php but it still says 'solar summary' and the same data. The idea is to change the title to 'Grass Temp' and then show current 'Grass Temp', 'Grass Temp Max' and 'Grass Temp Min'. The testtag file appears to be writing these values correctly but the dashboard isn't showing them.  Where else do I need to change the code? What code should I put and in which file? I am new to php so my attempts seem to be failing.

I'll take a look tonight and see if I can fix it up for you.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on September 21, 2011, 07:37:55 PM
I have tried changing the code in the ajax-dashboard.php but it still says 'solar summary' and the same data. The idea is to change the title to 'Grass Temp' and then show current 'Grass Temp', 'Grass Temp Max' and 'Grass Temp Min'. The testtag file appears to be writing these values correctly but the dashboard isn't showing them.  Where else do I need to change the code? What code should I put and in which file? I am new to php so my attempts seem to be failing.
I've created a custom mod for you.  Email me for a password to extract the file.  (I don't want it to get accidentially mixed in with the regular version.)

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: jahuff on October 03, 2011, 08:04:57 AM
Hi Scott,

Do you plan to update ajaxWDwx.js to support the new animated GIF icon set provided by http://www.meteotreviglio.com?

Thanks for your support.

John

I think the only thing that needs updating is the icon under Current Conditions.

Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 03, 2011, 06:20:36 PM
Do you plan to update ajaxWDwx.js to support the new animated GIF icon set provided by http://www.meteotreviglio.com?
I think the only thing that needs updating is the icon under Current Conditions.

John,

I haven't looked at his set yet.  I'll try and do that soon and see if I can add it in.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: jahuff on October 03, 2011, 06:30:17 PM
Thank you very much Scott.
John
Title: Re: Alternative-Dashboard Version 6.21
Post by: southhedland on October 04, 2011, 04:09:03 AM
having some serious issues with Images

southhedlandweather.com

fire index, current weather and cloud base
any help would be great, cheers
Title: Re: Alternative-Dashboard Version 6.21
Post by: i_fiorentino on October 04, 2011, 09:05:33 AM
Hi Scott,
i've installed the new version of plaintext-parser but after that the wxsim animated icons in my Home doesn't show anymore.
I've attached the code.
Could you help me please?
Thanks in advance,

Alessandro


@Southhedland
Hi!
Have you used AjaxWDwx.js ver. 9.xx?
Because this script working only with this file.
Regards,

Alessandro
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 04, 2011, 07:46:10 PM
Hi Scott,
i've installed the new version of plaintext-parser but after that the wxsim animated icons in my Home doesn't show anymore.
I've attached the code.
Could you help me please?
Alessandro

I just looked and your animated icons are showing, did you already discover the solution?

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: i_fiorentino on October 05, 2011, 04:34:03 AM
No, i don't Scott  :-(
I'm working with previous version of plaintext-parser but i think it's a wxsim3in1 problem not dashboard.
Thanks,

Alessandro

Edit 05/10: The ajax-dashboard, unlike wwl-mobile script, is compatible with animated icons by Meteotreviglio.com.
I've installed ken's parser and the icons are showed in animated mode with .gif extensions.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 05, 2011, 09:45:02 PM
No, i don't Scott  :-(
I'm working with previous version of plaintext-parser but i think it's a wxsim3in1 problem not dashboard.
Thanks,

Alessandro

Edit 05/10: The ajax-dashboard, unlike wwl-mobile script, is compatible with animated icons by Meteotreviglio.com.
I've installed ken's parser and the icons are showed in animated mode with .gif extensions.

Actually, it's only partially compatible with the animated icons.  Some of the images will not be called correctly if not updated.  I have put out a beta version that should allow it.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 14, 2011, 09:07:05 PM
Hey Scott... I figured I'd get up to date with your dashboard scripts. I'm still running 5.03 from April 2009  :-)

I downloaded 6.21, changed a few settings in them files and uploaded them. When I go to my site, the dashboard isn't showing, and its also causing my footer not to load. I know it's probably hard to tell what could be causing this. I'll post what versions of what files I'm using now just so you know.

ajaxWDwx.js Version 4.20 - 11-Oct-2009      Rainers version 9.11
ajaxWDwx-settings.js  SettingsVersion = "9.11"      SettingsDate    = "19-Jan-2010"
dashboard 5.03

Currently I went back to 5.03 just so my site is working. I'm sure the info I posted isn't enough to go on, if there's anything else that you need to know to give you a clue on whats going on, just ask. Thanks.
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 14, 2011, 11:42:14 PM
Got it working, now to fine tune everything. I had uncommented 2 lines by accident in the dashboard file.
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 15, 2011, 12:33:38 AM
I have almost 4 years of data, but when I put this section to true, nothing shows up for the records. Any ideas?

$useSTAhilo = false;           // Set to True for Station High/Low (Must have 2 years data to use) or False for WU High/Low

Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 15, 2011, 11:54:23 AM
I have almost 4 years of data, but when I put this section to true, nothing shows up for the records. Any ideas?

$useSTAhilo = false;           // Set to True for Station High/Low (Must have 2 years data to use) or False for WU High/Low



I think your testtags.txt version is too old (version 1.06 and doesn't seem to have the added ones from the archive).  Download the latest from Ken's site and then be sure to add the additional tags from the 6.21 archive file to the end of the testtags.txt file.  I think that will give you the needed additions. 

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 15, 2011, 02:44:31 PM
Ok... Thanks Scott.. Ill give that  a try
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 15, 2011, 07:05:40 PM
Updating those tags helped, thanks Scott.

Another question. In the wind area, I'd like to replace "gusting to" to todays high gust. The tag for that is "maxgstnopd" In part of the script below, I've tried a few different things to change that tag, but I cant get it to work. Any Ideas? Thanks.

Code: [Select]

<td valign="middle" style="text-align: center; border: 1px solid gray;" >
                          <?php langtrans('Wind'); ?>:&nbsp;
                                <strong><span style="font-size: 14px" class="ajax" id="ajaxwinddir"> <?php echo $dirlabel?></span><br />
        <span style="font-size: 14px" class="ajax" id="ajaxwind">
  <?php echo strip_units($avgspd); ?>
        </span></strong><br />
<span class="meas"><?php langtrans('Gusting to'); ?>:<br /></span>
<span class="ajax" id="ajaxgust">
          <?php echo $gstspd?>
        </span>
</td>

Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 15, 2011, 11:19:21 PM
You would need to remove the ajax class for that section and then replace the gust tag with the high today tag, there isn't an ajax tag for todays high.

Scott

Updating those tags helped, thanks Scott.

Another question. In the wind area, I'd like to replace "gusting to" to todays high gust. The tag for that is "maxgstnopd" In part of the script below, I've tried a few different things to change that tag, but I cant get it to work. Any Ideas? Thanks.

Code: [Select]

<td valign="middle" style="text-align: center; border: 1px solid gray;" >
                          <?php langtrans('Wind'); ?>:&nbsp;
                                <strong><span style="font-size: 14px" class="ajax" id="ajaxwinddir"> <?php echo $dirlabel?></span><br />
        <span style="font-size: 14px" class="ajax" id="ajaxwind">
  <?php echo strip_units($avgspd); ?>
        </span></strong><br />
<span class="meas"><?php langtrans('Gusting to'); ?>:<br /></span>
<span class="ajax" id="ajaxgust">
          <?php echo $gstspd?>
        </span>
</td>

Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 16, 2011, 01:38:46 PM
Thanks.. I got it working.
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on October 18, 2011, 09:10:28 AM
Does the Record Low/High Graphic get activated by your stations all time records, or from somewhere else? Mine is showing an Record low for the day, but according to my data its not a record low. Thanks.


High Today
41.4F
 12:01 AM

Low Today
36.9F
 5:30 AM


Rec* High
72.7F
 2009

Rec* Low
35.4F
 2010
* Records from this Station Since 2008
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on October 18, 2011, 09:24:30 AM
It is from the Weather Underground records.  If you don't wish to use it, there is an option in the config file to turn it off.  In a future version I'll add an option for local station records.

Scott


Does the Record Low/High Graphic get activated by your stations all time records, or from somewhere else? Mine is showing an Record low for the day, but according to my data its not a record low. Thanks.


High Today
41.4F
 12:01 AM

Low Today
36.9F
 5:30 AM


Rec* High
72.7F
 2009

Rec* Low
35.4F
 2010
* Records from this Station Since 2008
Title: Re: Alternative-Dashboard Version 6.21
Post by: tnwxman on October 31, 2011, 08:44:34 PM
Hi Scott,

I carefully update to v 6.21 however on my webpage it still says Version 6.06 16-Jan-2011. I updated all the settings and then renamed the ajax-dashboard6.php, AltAjaxDashboardConfig6.php, and ajaxWDwx.js by adding old after each file name. I then uploaded ajax-dashboard6.php, AltAjaxDashboardConfig6.php, and ajaxWDwx.js. Everything appears to be working. So why does it still show Version 6.06 16-Jan-2011.

Best regards,

Bob
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on November 01, 2011, 10:11:34 PM
Bob,

I'm not sure what is happening but what is going to your hosting site is not version 6.50.  I have no idea what is happening but it for sure is not what is being uploaded if you can read the file and see the version 6.5 stamp in the file.  Sorry I can't help more, it just does not make any sense. 

Scott

I carefully update to v 6.21 however on my webpage it still says Version 6.06 16-Jan-2011. I updated all the settings and then renamed the ajax-dashboard6.php, AltAjaxDashboardConfig6.php, and ajaxWDwx.js by adding old after each file name. I then uploaded ajax-dashboard6.php, AltAjaxDashboardConfig6.php, and ajaxWDwx.js. Everything appears to be working. So why does it still show Version 6.06 16-Jan-2011.
Title: Re: Alternative-Dashboard Version 6.21
Post by: tnwxman on November 02, 2011, 07:38:59 PM
Hi Scott,

Thanks I will keep checking however my mobile page does show the correct v at 1.32B so how did that show correctly and the main page which is suppose to be 6.21 shows 6.08 January. I believe I have followed all instructions correctly. Have uploaded the correct files from your website. Not sure why this is happening.

Bob
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on November 02, 2011, 10:57:01 PM
Thanks I will keep checking however my mobile page does show the correct v at 1.32B so how did that show correctly and the main page which is suppose to be 6.21 shows 6.08 January. I believe I have followed all instructions correctly. Have uploaded the correct files from your website. Not sure why this is happening.
I agree, it is very strange, I have no answers for it.  What is on your hosting site is an old version, it's not the new 6.50.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: tonyva on February 14, 2012, 05:16:35 PM
Hi

I have upgraded from Version 4.3 to 6.53 recently and like the layout very much.

I would like to add the tide dial http://www.mangawhaiweather.co.nz/smalltide.php (http://www.mangawhaiweather.co.nz/smalltide.php)to the "Coming Soon" section on the dashboard but I am having no success with it.

If someone could help with this please it would be appreciated.

Thanks
Tony


Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on February 14, 2012, 10:31:45 PM
Send me the code and any image files and I'll try and put it in as an option for you.

Scott


Hi

I have upgraded from Version 4.3 to 6.53 recently and like the layout very much.

I would like to add the tide dial http://www.mangawhaiweather.co.nz/smalltide.php (http://www.mangawhaiweather.co.nz/smalltide.php)to the "Coming Soon" section on the dashboard but I am having no success with it.

If someone could help with this please it would be appreciated.

Thanks
Tony



Title: Re: Alternative-Dashboard Version 6.21
Post by: tonyva on February 16, 2012, 02:16:49 PM
Thanks Scott, I will email to you.
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on February 17, 2012, 01:46:22 PM
Good evening folks - first off thank you Scott for all your hard work!


Can someone tell me where I am going wrong on the Alt-Dashboard.  I am trying to get it setup here http://www.carrowhawny.com/aaa/index.php

I know that data isnt current but once I have everything setup I will move everything into the live area of the website.   I have a couple of questions which I can't figure out first one is how do I set the width of the webpage I prefer the narrow display and whilst the header and footer are displaying as narrow whilst the Alt-Dashboard displays in a wider format see the attached screenshot

Second question is which part of the CSS files do I need to change the colour of the background outside of the frames on the webpage

Many thanks

Phil
Title: Re: Re: Alternative-Dashboard Version 6.21
Post by: suddenincline on February 17, 2012, 05:05:31 PM
Get your fire images working and the dashboard will resize it self

:)
Title: Re: Re: Alternative-Dashboard Version 6.21
Post by: suddenincline on February 17, 2012, 05:17:01 PM
Can anyone tell me why dashboard updates fine but my wind rose icon won't unless I refresh?

www.inclinemedialive.com
Title: Re: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on February 17, 2012, 07:51:30 PM
Can anyone tell me why dashboard updates fine but my wind rose icon won't unless I refresh?

www.inclinemedialive.com

See this message:

http://www.wxforum.net/index.php?topic=14691.0 (http://www.wxforum.net/index.php?topic=14691.0)

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: i_fiorentino on February 18, 2012, 09:32:47 AM
Hi Scott!
I don't remember if i've already asked this question....  :???:
Do you know why the Last YTD Rain tag shows 0 instead of correct amount?
And how to set this tag with the correct amount in WD?
Thanks in advance,

Alessandro
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on February 18, 2012, 10:48:21 AM
Hi Scott!
I don't remember if i've already asked this question....  :???:
Do you know why the Last YTD Rain tag shows 0 instead of correct amount?
And how to set this tag with the correct amount in WD?

Alessandro

Have you checked to see if you have the tag that is called there in your testtags.txt.  If it is there, then it's one of the uploaded files from WD that you have turned off.  I'm not sure which ones do what so if thats the case you may need to ask Brian or do a search on the WD forum. 

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on February 18, 2012, 10:54:05 AM
Second question is which part of the CSS files do I need to change the colour of the background outside of the frames on the webpage

Phil

I think you have answers for the rest of your questions, this one is done in the files called weather-screen-green-narrow.css and since you have the color selection turned on, you will need to modify each .css file that has "narrow" in the file name.  (one for each possible color).


In there you will find the settings for background as well as all the other sections of the script.  If you need more help finding the right place, drop a note, either I will or someone else will gladly point you to the right spot to edit!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: i_fiorentino on February 18, 2012, 12:40:55 PM
Have you checked to see if you have the tag that is called there in your testtags.txt.  If it is there, then it's one of the uploaded files from WD that you have turned off.  I'm not sure which ones do what so if thats the case you may need to ask Brian or do a search on the WD forum.  

Scott


Thanks Scott,
I've found the problem.
Trend.gif didn't updated correctly....but i don't know if that file updating itself.  ](*,)
Regards,

Alessandro
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on February 18, 2012, 02:50:36 PM
Many thanks for the help folks - getting this right will be my job of tomorrow!

Phil
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on February 29, 2012, 05:10:15 PM
Me gain LOL

Got most of the dashboard working properly (www.carrowhawny.com) with one exception - I have added the cloud-base.php to the webpage but for some reason it is showing night  instead of day - can someone point me int he the right direction to rectify this.  I have checked the new dashboard, dashboard settings, ajaxWD.js and the cloud-base.php and am still none the wiser. _ i am fairly sure its a time zone setting but where I don't know.

Phil
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on March 01, 2012, 09:14:20 PM
Phil,

Since that is actually an add-in module to the dashboard and written by someone else, you may want to start a new thread and ask specifically about that.  You may have better luck.  Mine doesn't work 100% correct either so I can't be of much help myself!

Scott

Got most of the dashboard working properly (www.carrowhawny.com) with one exception - I have added the cloud-base.php to the webpage but for some reason it is showing night  instead of day - can someone point me int he the right direction to rectify this.  I have checked the new dashboard, dashboard settings, ajaxWD.js and the cloud-base.php and am still none the wiser. _ i am fairly sure its a time zone setting but where I don't know.
Title: Re: Alternative-Dashboard Version 6.21
Post by: southhedland on March 01, 2012, 09:32:03 PM
Hey Folks

any idea on how to fix this ongoing issue

The Station all time records are displaying to Correct Temp but Dates are wrong, ????


HIGHS:   
42.0C
1-Jan-2014   

Record Dew
Point:    23.6C
1-Sep-2013

Thanks

Steve
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on March 02, 2012, 02:25:22 PM
Scott

I was having a look on the board and found this

$ourTZ = "America/Phoenix";
# Set timezone in PHP5/PHP4 manner
  if (!function_exists('date_default_timezone_set')) {
   putenv("TZ=" . $ourTZ);
    } else {
   date_default_timezone_set("$ourTZ");
   }

that Ken had posted in this thread http://www.wxforum.net/index.php?topic=10730.0 

I added this into your alt-dashboard and it now works as it was intended - I changed the"America/Phoenix" to "Europe/Dublin"

Thank you once again!
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on March 02, 2012, 08:34:38 PM
I was having a look on the board and found this

$ourTZ = "America/Phoenix";
# Set timezone in PHP5/PHP4 manner
  if (!function_exists('date_default_timezone_set')) {
   putenv("TZ=" . $ourTZ);
    } else {
   date_default_timezone_set("$ourTZ");
   }

that Ken had posted in this thread http://www.wxforum.net/index.php?topic=10730.0 

Thanks for the tip, I'll try it on mine too!

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: mickopla on March 05, 2012, 02:38:33 PM
I have an error on my dashboard with regards the 24Hr difference in Temperature. Basically the difference is incorrect. Is there anything i can check or fix in order to get it working properly??? Thanks in advance.

Mike
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on March 06, 2012, 07:39:51 PM
I have an error on my dashboard with regards the 24Hr difference in Temperature. Basically the difference is incorrect. Is there anything i can check or fix in order to get it working properly??? Thanks in advance.

Mike

You may want to post your code for that section, its not standard code so hard to know what was changed.

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: southhedland on March 07, 2012, 03:55:04 AM
Hey Folks

any idea on how to fix this ongoing issue

The Station all time records are displaying to Correct Temp but Dates are wrong, ????


HIGHS:   
42.0C
1-Jan-2014   

Record Dew
Point:    23.6C
1-Sep-2013

Thanks

Steve

Bump.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on March 07, 2012, 08:57:03 PM
Hey Folks
any idea on how to fix this ongoing issue
The Station all time records are displaying to Correct Temp but Dates are wrong, ????
Bump.

Steve,

Without being able to go to your site and take a look, I would have to guess that you have your date format set wrong in the script.  Look at the top of the script and find where it sets the date format. 

Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on March 09, 2012, 05:02:08 AM
Good morning folks

I have just about got the ALT-Dashboard working properly http://www.carrowhawny.com/ (thank you for all your help) but I have a few minor date issues that whilst are minor issues I would still like to fix.  On the Dew Point record it is ready the date as M-d-Y instead of d-M-Y.
Liquid Precipitation  shows the date as 9/3/2012 instead of 9-Mar-2012
Lightning Strike read 2012/03/07 whereas it should be 07/03/2012
The final one is the Station All Time Records - the high reads 3-Sep-2012 but it should be 9-Mar-2012

Before I start messing around in the Dashboard and breaking things is there an easy way to rectify the date formating?

Many thanks

Phil
Title: Re: Alternative-Dashboard Version 6.21
Post by: mickopla on March 09, 2012, 01:34:26 PM
I have an error on my dashboard with regards the 24Hr difference in Temperature. Basically the difference is incorrect. Is there anything i can check or fix in order to get it working properly??? Thanks in advance.

Mike

You may want to post your code for that section, its not standard code so hard to know what was changed.

Scott

Thanks for the reply Scott. For whatever reason it seems to be working ok again  :grin:
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on March 13, 2012, 07:38:33 PM
Good morning folks

I have just about got the ALT-Dashboard working properly http://www.carrowhawny.com/ (thank you for all your help) but I have a few minor date issues that whilst are minor issues I would still like to fix.  On the Dew Point record it is ready the date as M-d-Y instead of d-M-Y.
Liquid Precipitation  shows the date as 9/3/2012 instead of 9-Mar-2012
Lightning Strike read 2012/03/07 whereas it should be 07/03/2012
The final one is the Station All Time Records - the high reads 3-Sep-2012 but it should be 9-Mar-2012

Before I start messing around in the Dashboard and breaking things is there an easy way to rectify the date formating?

Many thanks

Phil

Phil,

The format of those values are coming directly from WD.  Look for the WD date format at the top of the script.  You can change it there.


Scott
Title: Re: Alternative-Dashboard Version 6.21
Post by: jdee on March 14, 2012, 08:02:25 AM
Thanks Scott

Will set to it shortly! :grin:
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on May 12, 2012, 06:16:28 PM
Quick question. The "New record low" icon is displayed on my page, but the "New Record High" should be displayed too cause my station hit a new record today. Any idea why there both not showing? Both graphics are loaded into the same directory.  Screen Shot attached. Thanks.
Title: Re: Alternative-Dashboard Version 6.21
Post by: Weather Display on May 12, 2012, 06:43:06 PM
I would presume it is only set to show one record condition at a time, i.e the first one found or similar
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on May 12, 2012, 08:25:22 PM
I have my parents site using version 5.03 of the dashboard, and theres is showing both. Im running version 6.21 on my site.

Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on May 12, 2012, 11:02:56 PM
At this time, the High/Low only works with the Weather Underground records, not the station records.  This change will be in the soon to be released 6.61 release. 

Scott

Quick question. The "New record low" icon is displayed on my page, but the "New Record High" should be displayed too cause my station hit a new record today. Any idea why there both not showing? Both graphics are loaded into the same directory.  Screen Shot attached. Thanks.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on May 13, 2012, 12:14:51 AM
Here is a sample screen with the new records all showing (not likely to happen all 4 at once but)  It is now in the new version 6.61 soon to be released.

Scott


Quick question. The "New record low" icon is displayed on my page, but the "New Record High" should be displayed too cause my station hit a new record today. Any idea why there both not showing? Both graphics are loaded into the same directory.  Screen Shot attached. Thanks.
Title: Re: Alternative-Dashboard Version 6.21
Post by: ALITTLEweird1 on May 13, 2012, 12:42:45 AM
Thanks Scott.. That looks good. Looking forward to the new version.
Title: Re: Alternative-Dashboard Version 6.21
Post by: BurnsvilleWeather on May 14, 2012, 09:44:54 PM
I've got the pre-release version on what I will be calling 6.70 up and running on my site with the new soil images (can see more of them on the soil page too).  It has 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. 

I've also added in the Solar switching icon 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. 

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. 

You can see the pre-release version on my site now.  I plan to release it on Wednesday as soon as I hear from one more user about one last issue.  Whew!

Scott

PS:  Still time to drop notes on anything I may have missed! :shock: