cloudy

Author Topic: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)  (Read 116514 times)

0 Members and 1 Guest are viewing this topic.

mth

  • Guest
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #825 on: April 11, 2010, 03:00:36 PM »
OK, if that be the case then can you or someone assist me in setting this up?  I cannot get the WD set up correct evidently.

You are not going to be able to find the AQI specifically for an area.  The AQI instumentation is stragically placed to encompass the most person's as possible by each state entity.

Airnow.gov uses these locations:
Lehigh Valley
Liberty/Clairton area
Philadelphia
Pittsburgh
Susquehanna Valley

These readings come from these 'partners' of the airnow.gov site:
Allegheny County (PA)
Pennsylvania Department of Environmental Protection (PA)
Philadelphia Air Management Services (PA)

It comes down to where these 'partners' choose to place the instruments.



 
 

Offline Burnsville Weather Live

  • Scott
  • Posts: 1,282
  • Formally Webster Weather LIVE
  • Burnsville, MN, USA
    • Burnsville Weather LIVE
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #826 on: April 11, 2010, 06:19:05 PM »
OK, if that be the case then can you or someone assist me in setting this up?  I cannot get the WD set up correct evidently.

What do you have in WD for the settings and perhaps attach a copy of the websearchout.txt and web search.txt files.  You really aren't giving anyone enough information to help.

Scott
Scott

www.BurnsvilleWeatherLIVE.com (Formally Webster Weather Live)

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp.

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #827 on: April 14, 2010, 08:58:03 PM »
Hi guys
Can some one tell me how to get the current condition icon back to a larger size. Done it before but can't for the life of me remember how!!
 Something to do with old age i guess

Thanks
Tony
http://www.gyweather.com

Offline Burnsville Weather Live

  • Scott
  • Posts: 1,282
  • Formally Webster Weather LIVE
  • Burnsville, MN, USA
    • Burnsville Weather LIVE
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #828 on: April 14, 2010, 09:30:01 PM »
Hi guys
Can some one tell me how to get the current condition icon back to a larger size. Done it before but can't for the life of me remember how!!
 Something to do with old age i guess
Tony,

In version 4.20 you need to set the size in both the ajax-dashboard.php file and in ajaxWDwx.js.  In ajax-dashboard.php, scan down for this code:

Code: [Select]
  <span class="ajax" id="ajaxconditionicon2">
  <img src="<?php echo $imagesDir newIcon($iconnumber?>"
alt="<?php $t1 fixupCondition($Currentsolardescription);
  echo $t1?>
"
  title="<?php echo $t1?>" height="108" width="112" />
  </span> 

In ajaxWDwx.js look for:
Code: [Select]
  if (iconWD >= 0 && iconWD <= 35) {
    return ("<img src=\"" + imagedir + "/" + $iconList[iconWD] + "\" " +
"width=\"112\" height=\"108\" alt=\"Current condition icon\" />" );
  } else {
return '';

Scott
Scott

www.BurnsvilleWeatherLIVE.com (Formally Webster Weather Live)

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp.

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #829 on: April 14, 2010, 09:34:17 PM »
many thanks Scott

Offline Jeep

  • Richard
  • Posts: 617
  • Whittier, Ca USA
    • Whittier Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #830 on: April 17, 2010, 04:33:29 PM »
I just cannot get 5 to work. 4 works great. But for 5 I've checked and double checked all my settings so many times my eyes are going crossed. Can someone PLEASE take a look at my attached files and maybe find what I'm missing?
--------------------------
Jeep


Offline Burnsville Weather Live

  • Scott
  • Posts: 1,282
  • Formally Webster Weather LIVE
  • Burnsville, MN, USA
    • Burnsville Weather LIVE
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #831 on: April 17, 2010, 07:33:54 PM »
I just cannot get 5 to work. 4 works great. But for 5 I've checked and double checked all my settings so many times my eyes are going crossed. Can someone PLEASE take a look at my attached files and maybe find what I'm missing?

Is there a link to it live on your site, that would help so we can see what is happening. 

Scott
Scott

www.BurnsvilleWeatherLIVE.com (Formally Webster Weather Live)

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp.

Offline Jeep

  • Richard
  • Posts: 617
  • Whittier, Ca USA
    • Whittier Weather
--------------------------
Jeep


Offline Burnsville Weather Live

  • Scott
  • Posts: 1,282
  • Formally Webster Weather LIVE
  • Burnsville, MN, USA
    • Burnsville Weather LIVE
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #833 on: April 17, 2010, 10:06:13 PM »
http://www.whittier-weather.com/test

http://www.whittier-weather.com/test/ajax-dashboard.php

my regular website with version 4:  http://www.whitier-weather.com

When I use the first link, the code that displays ends here:

Code: [Select]
</table>
<!-- ...................... g:ia 1-->
<!-- fcstby='' fcstscript='advforecast2.php' fcstorg='NWS' --></div>
</div>
</div>
</body>
</html>

It appears it is not finding the rest of your code before the </body> and </html> tags.

Scott
Scott

www.BurnsvilleWeatherLIVE.com (Formally Webster Weather Live)

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp.

Offline Jeep

  • Richard
  • Posts: 617
  • Whittier, Ca USA
    • Whittier Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #834 on: April 18, 2010, 12:02:48 AM »
Yes, and it does not work stand alone, either. I believe that would be a problem in altajaxdashboardconfig.php or ajaxWXdx-settings.js, correct?
--------------------------
Jeep


Offline BigOkie

  • Posts: 623
  • Tulsa, OK
    • East Tulsa (Douglas)
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #835 on: April 18, 2010, 03:10:50 AM »
Yes, and it does not work stand alone, either. I believe that would be a problem in altajaxdashboardconfig.php or ajaxWXdx-settings.js, correct?

I'm not sure that's the case, though.  Can you look in the new dashboard file and see if the self-downloader is in the script?  Or have they changed that to be in the config now?

If not, look for a section that looks like this:
Code: [Select]
if (isset($_REQUEST['sce']) && ( strtolower($_REQUEST['sce']) == 'view' or
    strtolower($_REQUEST['sce']) == 'show') ) {
   //--self downloader --
   $filenameReal = __FILE__;
   $download_size = filesize($filenameReal);
   header('Pragma: public');
   header('Cache-Control: private');
   header('Cache-Control: no-cache, must-revalidate');
   header("Content-type: text/plain");
   header("Accept-Ranges: bytes");
   header("Content-Length: $download_size");
   header('Connection: close');
   
   readfile($filenameReal);
   exit;

Because I can't even read the source.  Usually the selfdownloader is left in, so other people can help in cases like this.

Offline Jeep

  • Richard
  • Posts: 617
  • Whittier, Ca USA
    • Whittier Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #836 on: April 18, 2010, 03:56:34 AM »
yes, that section is still in dashboard.
--------------------------
Jeep


Offline linuxfreak

  • Posts: 248
  • Hey there.....
  • Hamilton, Ontario, Canada
    • Hamilton Central Mountain Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #837 on: April 18, 2010, 08:53:04 PM »
When I tried to do "?sce=view", I got the following:

Code: [Select]
<!-- ...................... g:ia 1-->
<!-- fcstby='' fcstscript='advforecast2.php' fcstorg='NWS' -->
<?php
// converted tagslist.txt to .\tagslist.php for php tags
// by gen-PHP-tagslist.pl - Version 1.00 - 07-Apr-2006
// Author: Ken True - webmaster-weather.org
// Edited: 20-Apr-2006 to trim unused tags
// Version 1.01 - 25-Jan-2008 -- added Windy-rain to icon list
// Version 1.02 - 24-Jun-2008 -- added variables to replace old trends-inc.html with trends-inc.php
// Version 1.03 - 27-Oct-2008 -- added Snow and WU almanac variables
// Version 1.04 - 03-Jun-2009 -- added moonrisedate/moonsetdate for wxastronomy.php
// Version 1.05 - 11-Jul-2009 -- added tags for printable flyer, alternative dashboard, high/low/avg plugins
//                               Thanks to Mike and Scott for their permission to add the above tags!
// Version 1.06 - 12-Jul-2009 -- added tags for V4.0 of alternative dashboard
// --------------------------------------------------------------------------
// allow viewing of generated source

In my "educated" opinion, your alt-dashboard script got hosed and now is testtags.php.  Grab a new local copy (you kept an unaltered one I hope  :wink:), kill the copy on the website then upload the "clean" backup copy and see if it clears the problem. I've had files "mutate" into other ones before my eye's, that's why I have all the code I've run since 2008 squirreled away on my local hard drive. Tends to prevent baldness!  :wink: #-o :lol:

George
Davis VP2/FARS, Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3 

Offline Jeep

  • Richard
  • Posts: 617
  • Whittier, Ca USA
    • Whittier Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #838 on: April 18, 2010, 11:19:39 PM »
Well, that had no effect. So I deleted everything in the test directory, then uploaded all the stock php scripts, the dashboard, and my settings.php and top php. Now I get these errors:

Notice: Undefined index: REMOTE_HOST in /home/content/w/e/a/weatherdude/html/test/Settings.php  on line 35

Notice: Undefined variable: snowseasonin in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 175

Notice: Undefined variable: snowseasoncm in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 175

Notice: Undefined variable: snowseasonin in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 302

Notice: Undefined variable: snowmonthin in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 303

Notice: Undefined variable: snowtodayin in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 304

Notice: Undefined variable: snowyesterday in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 305

Notice: Undefined variable: snownowin in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 306

Fatal error: Call to undefined function langtransstr() in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 322
--------------------------
Jeep


Offline ALITTLEweird1

  • Mark
  • Posts: 4,219
  • North Bend, WA
    • North Bend Weather
Re: Alternative Dashboard Script Released (Ver 5.03 FINAL RELEASE)
« Reply #839 on: April 18, 2010, 11:54:48 PM »
To fix your last issue...

Quote
Fatal error: Call to undefined function langtransstr() in /home/content/w/e/a/weatherdude/html/test/ajax-dashboard.php on line 322


Add this towards the bottom of the dashboard script..

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

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


"Nature can do without man, but man cannot do without nature."

Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

 

cumulus