Author Topic: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL  (Read 46870 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Since the original release of the Weather-Display/AJAX/PHP template sets in February, 2008, there have been many requests to use the templates with other weather software such as Cumulus, VWS and WeatherLink.

V3.00 - 3-Feb-2011 - Initial release is now available  http://saratoga-weather.org/wxtemplates/index.php

The V3.00 templates use three Base templates (by geographical region) and four weather software plugins supporting Cumulus, VWS, Weather-Display and WeatherLink).  All the Base templates are derived from the WD/AJAX/PHP World-ML distribution and so include built-in multilanguage support.

With this release, I will no longer be updating the original WD/AJAX/PHP distributions and updating the V3.00 distributions instead.

For issues with the new templates, please check the support page for posting questions ..
I'd prefer using WXforum.net for Base-Canada, Base-USA, Base-World, VWS-plugin, and WeatherLink-plugin questions.
I'd prefer using Weather-Watch.com for Weather-Display-plugin questions and the sandaysoft.com forum for Cumulus-plugin questions.


Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #1 on: February 05, 2011, 01:56:22 PM »
Thanks to Ray Beriau for the head-up in finding Notice: and Deprecated: errata , I've gone through the templates with error_reporting(E_ALL | E_DEPRECATED) enabled and found/fixed all the Notice: and Deprecated: type errors in the template sets.

Version 3.01 - 05-Feb-2011 Changes:

ajax-dashboard.php, ajax-gizmo.php - (Base-Canada, Base-USA, Base-World) - updated with additional isset() tests for missing variables, snow display handling and replace split() with explode()

Base-World - updated WU-forecast.php to remove extra HTML comments left from testing

VWS-plugin - updated gen-VWStags.php to add almnormhi# values that are missing from VWS saved tags.txt file
                  updated VWS-defs.php to add beaufort calculations and correct $mindew assignment

Cumulus-plugin - updated CU-defs.php to add $trends assignment for barotrend info

WL-plugin - updated WL-defs.php to correct beaufort calc with misspecified wind unit.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #2 on: February 05, 2011, 02:45:16 PM »
Ken,  I guess I'm a little confused.  You noted with the last post that you changed these

VWS-plugin - updated gen-VWStags.php to add almnormhi# values that are missing from VWS saved tags.txt file
                  updated VWS-defs.php to add beaufort calculations and correct $mindew assignment

I compared them to what I have and can find no differences, maybe I downloaded the wrong files?


Do we have to reinstall the package on updates?

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #3 on: February 05, 2011, 04:03:00 PM »
Hi Jay,

The VWS-plugin.zip contains updated files:
gen-VWStags.php
VWS-defs.php
and new VWStags.htx files

You should install those three (the new VWStags.htx files contain previously missing variables)

Those file are all dated 2/5/11 .. if that's not what you see in the .zip, I'd suggest you download it again.
I just tried it, and all those files were shown as updated in my download.

You don't have to reinstall the entire package(s) on updates, but it is recommended that you download the updates, compare the contents update dates to your local copy and copy the updated support scripts / tags files to the appropriate places on your site (tags to VWS) .. that will ensure that you have the latest fixes installed.  It's important to do that for the Beta testers since it will update you to the released version.
« Last Edit: February 05, 2011, 04:05:49 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #4 on: February 05, 2011, 04:35:39 PM »
Congrats on the "next phase" of templates and thanks for all the time and work involved! Looking forward to trying them with my WLink data (if I can ever get rid of my 500s...  ](*,) )

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #5 on: February 06, 2011, 04:03:23 PM »
Update V3.03 - Base-USA only -wxindex.php page was missing a closing </div> .. now fixed.

Code: [Select]
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (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'] . " - Home";
$showGizmo true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
?>

</head>
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
//
$useTopWarning true;  // set to true to use only the rss-top-warning script
//                         set to false to use the rss-advisory script instead
?>


<div id="main-copy">
   
<?php // insert desired warning box at top of page
  
if ($useTopWarning) {
 if (phpversion() < 5.0) { 
       include_once(
"rss-top-warning.php");
 } else {
   include_once("atom-top-warning.php");
 }
  } else {
   print 
"      <div class=\"advisoryBox\">\n";
   
$_REQUEST['inc'] = 'y';
   
$_REQUEST['summary'] = 'Y';
   if (
phpversion() < 5.0) {
     include_once(
"rss-advisory.php");
   } else { 
     include_once(
"atom-advisory.php");
   }
   print 
"      </div>\n";
  }
?>

<div class="column-dark">
<div align="center">
  <br/>
  <table width="99%" 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="320" 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="320" 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>
<img src="<?php echo $SITE['imagesDir']; ?>spacer.gif" alt="spacer"
height="2" width="620" style="padding:0; margin:0; border: none" />
<div align="center">
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
 { include_once("ajax-dashboard.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>
</div><!-- end center -->

</div><!-- end column-dark -->

</div><!-- end main-copy -->

<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Befuddled

  • Member
  • *
  • Posts: 3
    • Halifax Weather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #6 on: February 07, 2011, 12:16:13 PM »
Thanks Ken for all your work, it's very much appreciated.

The files installed successfully over my existing site after the relevant edits and apart from one or two errors on my part worked first time.

Except.... (you  knew that was coming didn't you?) I couldn't get the windrose graphics to display correctly. I was using 64X64 pixel GIF images on the old version of the site and remember having a struggle to get them to display. After installing the new template the correct graphic would display when the page was first loaded and then revert to the standard 58X58 PNG image with the Ajax refresh. This despite having edited the relevant lines in ajax-dashboard.php.

The frustrating part was that I'd had it working before the update but couldn't remember how (it's my age y'know). Thankfully I did track it down to edits in the ajaxWDwx.js Javascript file before I embarrassed myself by having to ask for help here.

So, my question is: would it be possible to have the Ajax script read the settings for the windrose graphic from the .php file to avoid having to remember to edit both? Or, even better, have them in Settings.php?

Alternatively, I could just write myself a note.  ;)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #7 on: February 07, 2011, 01:01:38 PM »
Thanks Ken for all your work, it's very much appreciated.

The files installed successfully over my existing site after the relevant edits and apart from one or two errors on my part worked first time.

Except.... (you  knew that was coming didn't you?) I couldn't get the windrose graphics to display correctly. I was using 64X64 pixel GIF images on the old version of the site and remember having a struggle to get them to display. After installing the new template the correct graphic would display when the page was first loaded and then revert to the standard 58X58 PNG image with the Ajax refresh. This despite having edited the relevant lines in ajax-dashboard.php.

The frustrating part was that I'd had it working before the update but couldn't remember how (it's my age y'know). Thankfully I did track it down to edits in the ajaxWDwx.js Javascript file before I embarrassed myself by having to ask for help here.

So, my question is: would it be possible to have the Ajax script read the settings for the windrose graphic from the .php file to avoid having to remember to edit both? Or, even better, have them in Settings.php?

Alternatively, I could just write myself a note.  ;)

You're very welcome!   I'm really pleased you've found the installation relatively trouble-free.  Getting the alternative wind-rose graphics to work is sometimes a real pain (as you've found).  The ajax-dashboard and the ajaxWXwx.js do need to be kept in sync for the wind-rose image size and type, but once set, work fine, so I suggest you use the alternative method you suggested (write a note :) )
The reason for not automating that a bit more is this:  the ajax-dashboard windrose settings are internal to that script (and used nowhere else in the PHP pages), so they aren't a Settings.php thing .. the only PHP->JavaScript right now is to load the appropriate language-LL.js file based on the language, and that file is also parsed to make available the language info for Beaufort, heatcolourword, uv-index words used in the PHP page.

To keep language fidelity with the alternative wind-rose graphics, you should create a 17-image set for each language supported (as is provided in the Base-World /ajax-images ) ..that way, the cardinal directions are shown in the selected language :)

I've added your site to the list of sites using the new Base template sets :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Befuddled

  • Member
  • *
  • Posts: 3
    • Halifax Weather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #8 on: February 08, 2011, 11:26:01 AM »
Thanks for your comments and advice Ken.

I've done as you suggested, written myself a note and put it in a safe place. I forget just where but I'm sure it will turn up.

You are right of course about needing wind-rose graphics for each language, I'll get round to doing that just as soon as I've finally decided on the design of the graphic and what languages I want!

Now, where did I put that to-do list?

Offline Goldseeker

  • Member
  • *
  • Posts: 2
    • Guernsey weather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #9 on: February 08, 2011, 12:40:57 PM »
Thanks Ken for all your work, it's very much appreciated.
Can you help with the problem I have on my test site re Gust Month overflow.
Please see  http://www.gyweather.com/weather/wxindex.php

Many thanks


Tony

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #10 on: February 08, 2011, 12:41:30 PM »
:lol:
I do notes too, then forget where I put them... ahh, the joys of retirement :)

The nifty thing about using the templates is all the extra stuff you can find(make) and keep adding to the site.  Endless amusement.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #11 on: February 08, 2011, 12:45:19 PM »
Thanks Ken for all your work, it's very much appreciated.
Can you help with the problem I have on my test site re Gust Month overflow.
Please see  http://www.gyweather.com/weather/wxindex.php

Many thanks


Tony
Hi Tony,
You're very welcome!

The easiest way to fix the Gust Month overflow/wrap is to edit your language-en.txt file and replace
Code: [Select]
langlookup|Gust Month|Gust Month|
with
Code: [Select]
langlookup|Gust Month|Month|
and that should cure the overflow issue.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #12 on: February 13, 2011, 10:59:57 PM »
Now available .. a updates page you can query to find out what's changed since you downloaded the Beta or Release versions of the template sets.  If your query results in changed files being listed, you can also click on a link to download a .zip file with all the changed scripts.  The page also allows you to save the selections for easy use next time (requires browser cookies to be enabled).

Enjoy!

http://saratoga-weather.org/wxtemplates/updates.php

BTW.. I strongly recommend that all Beta testers and new Release users try the page and download the fixes :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #13 on: February 14, 2011, 12:14:23 AM »
Thanks Ken for your reply on fly-menu at the 'Beta test' thread.  I'll have a good look tomorrow.

Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #14 on: February 14, 2011, 01:40:30 PM »
You can do <?php echo $chandler; ?> to show the number, but your test page is already showing the number and graphic on the alternative dashboard :)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #15 on: February 14, 2011, 01:46:21 PM »
http://weather.athelstanewi.com/wxindextst.php .. it shows the Chandler Burning Index + graphic already.

Steal that code :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #16 on: February 14, 2011, 02:26:27 PM »
Hi Ken,
I have a new wxnewtestpage.php and uploaded
Edited the flyout-menu-test.xml and uploaded
Browse using the ?menu=test and the main page shows the new 'Test menu' item and when click the new wxnewtestpage.php all seems ok to here;
But when then go to any subpage that new 'Test menu' item does not appear, appears only when on the main page view.  Is this until the flyout-menu-test.xml is changed to the live flyout-menu.xml or did I miss something?

Paul

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #17 on: February 14, 2011, 03:08:13 PM »
Ken,
I have experimented again but differently and found that the ?menu=test result seems to apply to the page in the browser where this is activated and tried with putting that in other pages and all is well =D&gt;.  I will now continue on.

Paul

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #18 on: February 14, 2011, 11:43:49 PM »
Quote
The older menubar.php built-in menu creates a simple vertical list of pages on the left-hand sidebar, and the link for current page you are viewing is highlighted.  That menubar.php system is useful for maybe up to 10 or 15 links, and after that you get a long, unorganized view of what's on your website.

I recommend you stick with the default-enabled flyout-menu system which allows you to group and nest related pages with fairly easy configuration of the menu by updating flyout-menu.xml

Most sites stick with the flyout-menu AFAIK.  I'd suggest you troll around the list of template sites and see what kind of looks you can get for your menus.

The "External Links" area in the sidebar is actually in the menubar.php, and you can use this link to add some links or images into your sidebar.

Thanks very much Ken, I've played with it and had lots of learnin/fun.

Can I and, if yes, how add a Google Map link for my station location?  I've tried but can not get an actual location plotted.

Paul

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #19 on: February 15, 2011, 03:45:18 PM »
Quote
Now available .. a updates page you can query to find out what's changed since you downloaded the Beta or Release versions of the template sets.  If your query results in changed files being listed, you can also click on a link to download a .zip file with all the changed scripts.  The page also allows you to save the selections for easy use next time (requires browser cookies to be enabled).

Enjoy!

http://saratoga-weather.org/wxtemplates/updates.php

BTW.. I strongly recommend that all Beta testers and new Release users try the page and download the fixes

Best regards,
Ken

Ken,

This is a great help.  Much easier to keep track of updates.  Thanks,

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Released: PHP/AJAX multilingual website templates for Cumulus, VWS, WD, WL
« Reply #20 on: February 15, 2011, 05:33:44 PM »
You're welcome, Jay.  Over the several years I've had the template sets (V2, now V3) up, folks had asked 'how do I keep them updated?'.  Before the updates page, the answer was a messy manual process (download, compare to existing files, copy in new ones).  I just thought it would be nice to have a more automated process available (and it was a fascinating programming challenge too:) ).
With the Twitter updates, RSS feed, and posts on the forums, folks should know when something is updated...

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
I've made the switch to the VWS templates (but changed the theme).

Mighty fine work Ken!

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Curly,
Your site looks professional, informative, and uncluttered. =D&gt;
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline ext3

  • Member
  • *
  • Posts: 12
Is it possible to add instead of UVword a UV icon(especially if you have a solar rad sensor) in dashboard?
I have managed to put the icon,but my problem is that it wont update with ajax..shows always the initial value from last "normal" refresh,even if the uv changes

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Sure, it's possible, but would require adding code to both the ajax-dashboard and the AJAX JavaScript to support it.

I don't really recommend it for the original ajax-dashboard, as it (a UV icon) would distort the compact layout of the dashboard and create extra whitespace in the solar moon and summary areas.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything