Author Topic: Alternative-Dashboard Version 6.21  (Read 151102 times)

0 Members and 1 Guest are viewing this topic.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Alternative-Dashboard Version 6.07
« Reply #275 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.
« Last Edit: February 10, 2011, 07:38:04 AM by CNYWeather »
Tony




Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #276 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Alternative-Dashboard Version 6.07
« Reply #277 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?

Tony




Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #278 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Alternative-Dashboard Version 6.07
« Reply #279 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
Tony




Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Alternative-Dashboard Version 6.07
« Reply #280 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 
Tony




Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #281 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #282 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #283 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #284 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

CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #285 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #286 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #287 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #288 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #289 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.07
« Reply #290 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Alternative-Dashboard Version 6.07
« Reply #291 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
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.08
« Reply #292 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative-Dashboard Version 6.08
« Reply #293 on: February 18, 2011, 11:08:50 PM »
Posted 6.08. Lookin' good.

Thanks for all your work (as always!).
John
W7JKG

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Alternative-Dashboard Version 6.08
« Reply #294 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 .

Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Alternative-Dashboard Version 6.08
« Reply #295 on: February 19, 2011, 07:25:01 AM »
Scott, using 6.08. Thanks for all the work.
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.08
« Reply #296 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
« Last Edit: February 19, 2011, 09:38:07 AM by WebsterWeather »
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative-Dashboard Version 6.08
« Reply #297 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.
John
W7JKG

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative-Dashboard Version 6.08
« Reply #298 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...   :?
John
W7JKG

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alternative-Dashboard Version 6.08
« Reply #299 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
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


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

 

anything