Now available - wview plugin for Saratoga-Weather AJAX/PHP website templates

741 views
Skip to first unread message

SaratogaWX

unread,
Jul 3, 2012, 10:35:42 PM7/3/12
to wv...@googlegroups.com
The WV-plugin for wview software to use the Saratoga-Weather free AJAX/PHP website templates is now available
at http://saratoga-weather.org/wxtemplates/index.php

Since wview does not currently offer FTP uploads except at one interval, I'd not developed a realtime/AJAX addition yet.  Pedro has been working on a
addon that generates a Weather-Display-like clientraw.txt and uploads it at a frequent interval.  When he's finished packaging it, we'll do an AJAX routine
for it.. the template set is already marked-up to support AJAX.

An additional feature provided is the display of yesterday min/max temperatures and times, along with yesterday's rain value.  wview does not currently
have direct variables supporting this, but the generated NOAA-style climate report does, so the data is extracted from yesterday's NOAA report.

Do let me know your results on installing/running the template with wview plugin .. I'd be pleased to list your website along with other sites using the template set.

Enjoy and best regards,
Ken

BigMac

unread,
Jul 4, 2012, 9:07:37 AM7/4/12
to wv...@googlegroups.com
Great stuff, have downloaded the files and am in the process of editing for my site.

Thanks Ken!

Bill

Kjell Thomas Pedersen

unread,
Jul 4, 2012, 11:43:02 AM7/4/12
to wv...@googlegroups.com
Hi,

Great stuff, I'm trying it out. Just one question, it seems to be
expecting ftp uploading. I don't use ftp, I host my own server and the
wview runs locally on the same site. How does it handle this?

Thanks,

Thomas
> --
> You received this message because you are subscribed to the Google
> Groups "wview" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/wview/-/MapXEv7H_YwJ.
> To post to this group, send email to wv...@googlegroups.com.
> To unsubscribe from this group, send email to wview
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/wview?hl=en.


SaratogaWX

unread,
Jul 4, 2012, 1:02:29 PM7/4/12
to wv...@googlegroups.com
All the template set needs from wview is processing of the WVtags.phpx and generation of the NOAA reports and graphs and to place the generated results in the document tree of the webserver.  If you're running a local server, then the ./weather/ directory in htdocs will work, and no FTP is needed to display the template (assuming PHP5.x is available on your Apache local webserver.

FTP is only needed to have wview upload to a non-local website.

Hope this helps...

Best regards,
Ken

SaratogaWX

unread,
Jul 4, 2012, 4:19:45 PM7/4/12
to wv...@googlegroups.com
I did the install in /var/www/weather directory (used unzip of the three files Base-USA, WV-plugin and carterlake-icons.zip files)
Had to chmod 777 the /var/www/weather/cache directory so the cache files would store.
Only issue.. my Ubuntu-natty doesn't seem to have the GD library installed, so exploring which packages need to be installed -- effect: thermometer image doesn't show.
Any hints on what needs to be installed to get the GD library functioning under Apache2/PHP5 ?

BTW.. I'm running the Ubuntu-natty system under VMware under Windows 7 on a Core-i7 16GB ram system with no issues.  I've not played with *nix since using BSDi back in the 90's .. fun relearning stuff :)

n1otx

unread,
Jul 4, 2012, 4:52:36 PM7/4/12
to wview
Hi Ken,
Try php5-gd
> >> > athttp://saratoga-weather.org/wxtemplates/index.php

SaratogaWX

unread,
Jul 4, 2012, 5:08:22 PM7/4/12
to wv...@googlegroups.com
Awesome.. installed PHP5 and reinstalled php5-gd and thermometer works :)
Thanks!

Wowzer

unread,
Jul 4, 2012, 6:34:36 PM7/4/12
to wv...@googlegroups.com
Hi Ken,
I'm looking at your screenshots and have a question. Can you clarify that the Archive/*.txt files are not required? I do not generate them.

Some of us use the SSH method on the SSH tab to upload files to our web hosts. In my case I'm using a cron job to rsync via ssh to transfer the files to my web host every minute. As long as the files are in the correct place templates will be happy to read them.

I'll have to upload the new templates to dev directory before implementing to production. Some of my WD template files date back to 2007 and 2008 and some were customized by me. I'll be looking carefully at your V2 to V3 upgrade steps. ;)

Thanks,
David

SaratogaWX

unread,
Jul 4, 2012, 6:45:31 PM7/4/12
to wv...@googlegroups.com
Hi David,

That's correct .. the Archive/*.txt files are not used by the template set.  Only the WVtags.php, the graphics files (in the same directory) and optionally, the NOAA/*.txt files for display and getting yesterday's temps/rain.   Sure, SSH/rsync would work just fine (instead of wview FTP) and as long as they're in place on the website, it will work fine too.

The upgrade V2->V3 tool will show you all the files that changed (and package a WD-specific set) since the last release of V2 in January, 2011.  If you'd snagged an earlier set, it may be easier to just get the V3 Base, Plugin (and carterlake-icons if needed) and start from there.

Best regards,
Ken

BigMac

unread,
Jul 5, 2012, 9:03:44 AM7/5/12
to wv...@googlegroups.com
Up and running with only a couple of glitches due to operator error!

Feel free to list my site http://www.sanfordweather.com/

Thanks for all the work


Bill

On Tuesday, July 3, 2012 9:35:42 PM UTC-5, SaratogaWX wrote:

SaratogaWX

unread,
Jul 5, 2012, 1:31:53 PM7/5/12
to wv...@googlegroups.com
Hi Bill,
Glad you got it running :)

You should change Settings.php

$SITE['WDdateMDY'] = false;

to

$SITE['WDdateMDY'] = true;

since your wview is reporting dates in mm/dd/yyyy format.

I've added your site to the list as the first wview website :)

Best regards,
Ken

Wowzer

unread,
Jul 5, 2012, 3:56:49 PM7/5/12
to wv...@googlegroups.com
Hi Ken,
Thanks for the info. So far the dev site is looking good, http://bartlesvilleweather.com/wxdev/. Plan is to migrate all changes to http://bartlesvilleweather.com/ when complete.

Regards,
David

Jordi Corbella

unread,
Jul 5, 2012, 4:07:28 PM7/5/12
to wv...@googlegroups.com
Hi, 

I have installed the world-base & vview plugin but when I try to open the wxindex.php  it shows this error:

Fatal error: Call to undefined function print_css_style_menu() in/homepages/40/d300554888/htdocs/meteocam/Saratoga/menubar.phpon line 101

Any suggestions?

Jordi



--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/MapXEv7H_YwJ.
To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wview?hl=en.

SaratogaWX

unread,
Jul 5, 2012, 4:24:46 PM7/5/12
to wv...@googlegroups.com
That's great, David.  Let me know when you've migrated it to the final URL and I'll add your site to the list :)

Best regards,
Ken

SaratogaWX

unread,
Jul 5, 2012, 4:29:23 PM7/5/12
to wv...@googlegroups.com
That function is provided by include-style-switcher.php -- have you unzipped all the files in the Base-World.zip and uploaded to your website?
It would also help to have an URL to your website for additional debugging.
Best regards,
Ken


On Thursday, July 5, 2012 1:07:28 PM UTC-7, Jordi Corbella wrote:
Hi, 

I have installed the world-base & vview plugin but when I try to open the wxindex.php  it shows this error:

Fatal error: Call to undefined function print_css_style_menu() in/homepages/40/d300554888/htdocs/meteocam/Saratoga/menubar.phpon line 101

Any suggestions?

Jordi


On 4 July 2012 04:35, SaratogaWX <webmaster@saratoga-weather.org> wrote:
The WV-plugin for wview software to use the Saratoga-Weather free AJAX/PHP website templates is now available
at http://saratoga-weather.org/wxtemplates/index.php

Since wview does not currently offer FTP uploads except at one interval, I'd not developed a realtime/AJAX addition yet.  Pedro has been working on a
addon that generates a Weather-Display-like clientraw.txt and uploads it at a frequent interval.  When he's finished packaging it, we'll do an AJAX routine
for it.. the template set is already marked-up to support AJAX.

An additional feature provided is the display of yesterday min/max temperatures and times, along with yesterday's rain value.  wview does not currently
have direct variables supporting this, but the generated NOAA-style climate report does, so the data is extracted from yesterday's NOAA report.

Do let me know your results on installing/running the template with wview plugin .. I'd be pleased to list your website along with other sites using the template set.

Enjoy and best regards,
Ken




--

Wowzer

unread,
Jul 7, 2012, 9:12:29 PM7/7/12
to wv...@googlegroups.com
Hello Ken,
My production site is live. Please add http://bartlesvilleweather.com/ to the list.

I did a little tweaking to display the direction of the daily peak wind gust. I display it on my old wxindex.php and mobile pages.

I noticed the peak direction was dayhighwinddir on line 291 in WVtags.php.

I added "$maxgstd = $WX['dayhighwinddir'];" to line 77 in WV-defs.php.

To get it to display on wxindex.php I added <span class="ajax" id="ajaxwindmaxgustdir"><?php echo ($maxgstd); ?></span>  to line 524 in ajax-dashboard.php.


Regards,
David

Robert M. Jones

unread,
Jul 7, 2012, 10:26:57 PM7/7/12
to wv...@googlegroups.com
David,

Your site looks good. I have been configuring a wview site also. It appears that wview does not currently support automatic page updates since I did not find an ajax javascript for wview nor is there a configuration item in Settings.php. Maybe this is to come later. I had to tweek the .css for the NOAA reports to keep the data inside the box for yearly reports but it was not much trouble. Now I need to work on the menu for my new items and I want to spice up my top banner. Maybe, next week. You can see my development work at http://www.w4lcs.com/weather/wxindex.php

Bob Jones


From: Wowzer <david...@gmail.com>
To: wv...@googlegroups.com
Sent: Sat, July 7, 2012 8:12:32 PM
Subject: Re: [wview-group] Now available - wview plugin for Saratoga-Weather AJAX/PHP website templates

Hello Ken,
My production site is live. Please add http://bartlesvilleweather.com/ to the list.

I did a little tweaking to display the direction of the daily peak wind gust. I display it on my old wxindex.php and mobile pages.

I noticed the peak direction was dayhighwinddir on line 291 in WVtags.php.

I added "$maxgstd = $WX['dayhighwinddir'];" to line 77 in WV-defs.php.

To get it to display on wxindex.php I added <span class="ajax" id="ajaxwindmaxgustdir"><?php echo ($maxgstd); ?></span>  to line 524 in ajax-dashboard.php.


Regards,
David


On Thursday, July 5, 2012 3:24:46 PM UTC-5, SaratogaWX wrote:
That's great, David.  Let me know when you've migrated it to the final URL and I'll add your site to the list :)

Best regards,
Ken

On Thursday, July 5, 2012 12:56:49 PM UTC-7, Wowzer wrote:
Hi Ken,
Thanks for the info. So far the dev site is looking good, http://bartlesvilleweather. com/wxdev/. Plan is to migrate all changes to http://bartlesvilleweather. com/ when complete.

Regards,
David

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/ZxE3j1_PwzYJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.

SaratogaWX

unread,
Jul 8, 2012, 12:42:39 AM7/8/12
to wv...@googlegroups.com
Nice, David...  I've added your site to the list :)

One suggestion about your mod to ajax-dashboard, the language translation feature would be enabled if you used

<span class="ajax" id="ajaxwindmaxgustdir"><?php echo  langtransstr($maxgstd); ?></span>

Also, no AJAX updates are not yet available for wview .. I know that Pedro was working on a Weather-Display like clientraw.txt and independent update, so when he's done, I'll add a AJAX script to the template for wview.  Meanwhile, it is good to maintain the AJAX-ready markup :)

Best regards,
Ken

Wowzer

unread,
Jul 8, 2012, 1:45:47 PM7/8/12
to wv...@googlegroups.com
Thanks Ken,

The language translation feature has been added as you suggested.

Cheers,
David

KX5I

unread,
Jul 8, 2012, 2:04:08 PM7/8/12
to wv...@googlegroups.com
Hey Bob,
Your site is looking good too. I noticed the call sign in the URL. I'm also a ham, call is KX5I.

Do you mind sharing the CSS tweaks you made? I had not noticed it on my site, but I had never clicked on the yearly buttons either.

Cheers,
David

Robert M. Jones

unread,
Jul 8, 2012, 7:44:21 PM7/8/12
to wv...@googlegroups.com
Hi David,

I am still working on some modifications to the display. I will look up the .css changes and send them to you direct. I am W4LCS I guess you have my main web address. http://www.w4lcs.com

73, Bob
W4LCS


From: KX5I <david...@gmail.com>
To: wv...@googlegroups.com
Sent: Sun, July 8, 2012 1:04:11 PM

Subject: Re: [wview-group] Now available - wview plugin for Saratoga-Weather AJAX/PHP website templates
--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/fB7zPyb-jTIJ.

Rob Hopper

unread,
Jul 9, 2012, 1:18:58 AM7/9/12
to wv...@googlegroups.com
Thanks, Ken.  Great templates!  I am trying it out at http://www.robhopper.info/weather/wxindex.php, and I added by indoor sensors to the historical graphs.

I am using the animated GIFs from meteotreviglio, and it looks like you reference the images in directory ./forecast, but they are installed in ./Forecast (from the archive you provide).  Easily solved with a symbolic link, but I thought you would want to know...

 --Rob

SaratogaWX

unread,
Jul 9, 2012, 12:41:44 PM7/9/12
to wv...@googlegroups.com
Hi Rob,
Glad you're enjoying the templates :)

I just checked my distribution of carterlake-icons.zip (the .jpg images) and that .zip uses forecast/images/ for the directory structure.
The Meteotreviglio animate .gif icons unfortunately uses Forecast/images/ as the directory structure .. I think Paolo of Meteotreviglio was unaware that Linux/Unix pays attention to the case of the names (Windows does not).  So your symlink solution works to fix that issue :)

Best regards,
Ken

n1otx

unread,
Jul 17, 2012, 7:34:05 PM7/17/12
to wview
Hi Ken,
I have long admired your Saratoga-Weather website templates so I am
super happy that they are now available for use with WVIEW. I have
just finished switching my website over to your awesome templates. Had
some local pages that I really liked so they got retained and blended
into to try to keep a consistent look.More spit and polish to come as
time allows,but have gone live.Please add my site to your template
user list:

http://pauland.net

Thanks !

Paul

On Jul 3, 10:35 pm, SaratogaWX <webmas...@saratoga-weather.org> wrote:
> The WV-plugin for wview software to use the Saratoga-Weather free AJAX/PHP
> website templates is now available
> athttp://saratoga-weather.org/wxtemplates/index.php

SaratogaWX

unread,
Jul 17, 2012, 9:44:23 PM7/17/12
to wv...@googlegroups.com
Hi Paul,

Glad you've found the template useful for your site :)
I've added you to the list of sites .. thanks for letting me know.

Best regards,
Ken

Jordi Corbella

unread,
Jul 21, 2012, 10:41:39 AM7/21/12
to wv...@googlegroups.com
Hi, 

I've unzipped again the Base-World and view plugin and copied all the content on my site; I've configured my wview in order to generate the WVtags.php and it runs, but it still gets the error when I start wxindex.php...

I don't know what happens...

The site where I've unzipped all the stuff is: http://meteocam.jordicorbella.com/saratoga

And the error is: 

Fatal error: Call to undefined function print_css_style_menu() in/homepages/40/d300554888/htdocs/meteocam/saratoga/menubar.phpon line 101


Thanks

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/mFbNwjrT77AJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.

SaratogaWX

unread,
Jul 21, 2012, 12:53:43 PM7/21/12
to wv...@googlegroups.com, jo.co...@gmail.com
The issue seems to be a bunch of code is missing from your Settings.php after the lines:

##########################################################################
# end of configurable settings
##########################################################################
?>

You should extract the Settings.php from the Base-World.zip and add all the missing stuff to your Settings.php.
When it says 'End of configurable settings', that just means you don't need to normally configure stuff below that, but the template set expects the code to remain in that position until the closing ?>

Here's what you're missing:


#
if(file_exists("Settings-language.php")) { include_once("Settings-language.php"); }
  else { //  use defaults built-in
# Multilanguage support constants - please do NOT change the settings below
# DO NOT CHANGE THESE SETTINGS
$SITE['installedLanguages'] = array (
  'af' => 'Afrikaans',
  'bg' => '&#1073;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080; &#1077;&#1079;&#1080;&#1082;',
  'ct' => 'Catal&agrave;',
  'dk' => 'Dansk',
  'nl' => 'Nederlands',
  'en' => 'English',
  'fi' => 'Suomi',
  'fr' => 'Fran&ccedil;ais',
  'de' => 'Deutsch',
  'el' => '&Epsilon;&lambda;&lambda;&eta;&nu;&iota;&kappa;&#940;',
  'ga' => 'Gaeilge',
  'hu' => 'Magyar',
  'it' => 'Italiano',
  'no' => 'Norsk',
  'pl' => 'Polski',
  'pt' => 'Portugu&ecirc;s',
  'ro' => 'limba rom&#00226;n&#00259;',
  'es' => 'Espa&ntilde;ol',
  'se' => 'Svenska',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['ISOLang'] = array ( // ISO 639-1 2-character language abbreviations from country domain
  'af' => 'af',
  'bg' => 'bg',
  'ct' => 'ca',
  'dk' => 'da',
  'nl' => 'nl',
  'en' => 'en',
  'fi' => 'fi',
  'fr' => 'fr',
  'de' => 'de',
  'el' => 'el',
  'ga' => 'ga',
  'it' => 'it',
  'hu' => 'hu',
  'no' => 'no',
  'pl' => 'pl',
  'pt' => 'pt',
  'ro' => 'ro',
  'es' => 'es',
  'se' => 'sv',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['langCharset'] = array( // for languages that DON'T use ISO-8859-1 (latin) set
 'bg' => 'ISO-8859-5',
 'el' => 'ISO-8859-7',
 'hu' => 'ISO-8859-2',
 'ro' => 'ISO-8859-2',
 'pl' => 'ISO-8859-2',
 'ru' => 'UTF-8',
 'gr' => 'UTF-8'
);
# DO NOT CHANGE THESE SETTINGS
$SITE['WULanguages'] = array ( // for WeatherUnderground forecast supported languages
  'af' => 'afrikaans',
  'bg' => 'bulgarian',
  'ct' => 'catalan',
  'dk' => 'danish',
  'nl' => 'dutch',
  'en' => 'english',
  'fi' => 'finnish',
  'fr' => 'french',
  'de' => 'deutsch',
  'el' => 'greek',
  'ga' => 'gaelic',
  'hu' => 'hungarian',
  'it' => 'italian',
  'no' => 'norwegian',
  'pl' => 'polish',
  'pt' => 'portuguese',
  'ro' => 'romanian',
  'es' => 'espanol',
  'se' => 'swedish',
);
# End - multilanguage support constants
# Now prune the installedLanguages based on langavail selection
$tarray = array();
foreach ($SITE['langavail'] as $n => $k) {
  if(isset($SITE['installedLanguages'][$k])) {
    $tarray[$k] = $SITE['installedLanguages'][$k];
  }
}
$SITE['installedLanguages'] = $tarray;
# end prune the installedLanguages based on langavail selection
#
  } // end use default language specs
# set the Timezone abbreviation automatically based on $SITE['tzname'];
# Set timezone in PHP5/PHP4 manner
  if (!function_exists('date_default_timezone_set')) {
     putenv("TZ=" . $SITE['tz']);
//     print "<!-- using putenv(\"TZ=". $SITE['tz']. "\") -->\n";
    } else {
     date_default_timezone_set($SITE['tz']);
//     print "<!-- using date_default_timezone_set(\"". $SITE['tz']. "\") -->\n";
   }

$SITE['tzname']    = date("T",time());
if($SITE['allowThemeSwitch']) {
  # begin Color Theme Switcher Plugin by Mike Challis
  # http://www.642weather.com/weather/scripts.php
  include_once('include-style-switcher.php');
  $SITE['CSSscreen'] = validate_style_choice();
  # end Color Theme Switcher Plugin
} else {
  session_start(); // for preservation of language settings.
  if ($SITE['CSSwideOrNarrowDefault'] == 'wide') {
          $_SESSION['CSSwidescreen'] = 1;
          $CSSstyle = str_replace ('.css','-wide.css',$SITE['CSSscreenDefault']);
  } else {
          $_SESSION['CSSwidescreen'] = 0;
          $CSSstyle = str_replace ('.css','-narrow.css',$SITE['CSSscreenDefault']);
  }
  $SITE['CSSscreen'] = $CSSstyle;
}
# Automatic Info we might need
############################################################################
if(isset($_SERVER['REMOTE_ADDR']))   {$SITE['REMOTE_ADDR']    = $_SERVER['REMOTE_ADDR'];}
if(isset($_SERVER['REMOTE_HOST']))   {$SITE['REMOTE_HOST']    = $_SERVER['REMOTE_HOST'];}
if(isset($_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT']        = $_SERVER['DOCUMENT_ROOT'];}
if(isset($_SERVER['REQUEST_URI']))   {$SITE['REQURI']        = $_SERVER['REQUEST_URI'];}
if(isset($_SERVER['SERVER_NAME']))   {$SITE['SERVERNAME']    = $_SERVER['SERVER_NAME'];}
$SITE['remote']            = "onclick=\"window.open(this.href,'_blank');return false;\"";
$SITE['PHPversion'] = phpversion();
// default settings needed for various pages when the weather software plugin is not installed.
// do not change these
$SITE['WXsoftwareURL'] = '#';
$SITE['WXsoftwareLongName'] = '(unspecified)';
$SITE['WXtags'] = '';
# now fetch the weather software settings if it exists
if(isset($_REQUEST['wx']) and file_exists('Settings-weather-'.strtoupper($_REQUEST['wx']).'.php')) {
    include_once('Settings-weather-'.strtoupper($_REQUEST['wx']).'.php');
} elseif(file_exists("Settings-weather.php")) {
    include_once("Settings-weather.php");
}
?>

Best regards,
Ken

On Saturday, July 21, 2012 7:41:39 AM UTC-7, Jordi Corbella wrote:
Hi, 

I've unzipped again the Base-World and view plugin and copied all the content on my site; I've configured my wview in order to generate the WVtags.php and it runs, but it still gets the error when I start wxindex.php...

I don't know what happens...

The site where I've unzipped all the stuff is: http://meteocam.jordicorbella.com/saratoga

And the error is: 

Fatal error: Call to undefined function print_css_style_menu() in/homepages/40/d300554888/htdocs/meteocam/saratoga/menubar.phpon line 101


Thanks

To unsubscribe from this group, send email to wview+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wview?hl=en.

SaratogaWX

unread,
Jul 21, 2012, 1:15:30 PM7/21/12
to wv...@googlegroups.com, jo.co...@gmail.com
And... you seem to be missing


$SITE             = array();

############################################################################
# Sitewide configuration - website style and features
############################################################################


before the comment.

I'd recommend you *not* prune stuff from the files .. just add your custom configuration items to the base copy of the file to replace the settings in it.

Best regards,
Ken

SaratogaWX

unread,
Jul 21, 2012, 6:42:53 PM7/21/12
to wv...@googlegroups.com, jo.co...@gmail.com
I think I know what happened.  Instead of using the Settings.php and Settings-weather.php for wview, you seem to have copied/pasted the configuration examples from http://saratoga-weather.org/wxtemplates/Settings-config-World.php and from http://saratoga-weather.org/wxtemplates/Settings-Config-WV.php into the respective Settings.php and Settings-weather.php files.

Both of the examples on those pages are stripped-versions to show only the things you may need to change (and what they mean), and neither example contains the full code required to have the template operate properly.

You need to start with Settings.php from Base-World.zip and Settings-weather.php from WV-plugin.zip as the starting points, and make your configuration changes to those files .. then the template should work correctly for you :)

Best regards,
Ken

Jordi Corbella

unread,
Jul 22, 2012, 12:15:56 PM7/22/12
to wv...@googlegroups.com
Hi!

It was the error!

Two questions:
- I use the Spanish plugin but the actual conditions in Summary/temperature is always in English (Few clouds)...
- Do not actualise the conditions itself automatically every x minutes? Is it necessary reload the page every time?


Thank You for your help!

Jordi Corbella


To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/lxvZHB3KW6sJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wview?hl=en.



--
http://jordicorbella.com

Jordi Corbella

unread,
Jul 22, 2012, 12:17:36 PM7/22/12
to wv...@googlegroups.com

SaratogaWX

unread,
Jul 22, 2012, 3:30:01 PM7/22/12
to wv...@googlegroups.com, jo.co...@gmail.com
Hi Jordi,

I see it's working now with the Settings.php and Settings-weather.php from the distributions.  I suggest you make the following changes to Settings.php:

Change:
$SITE['latitude']        = '41.4';    //North=positive, South=negative decimal degrees
$SITE['longitude']        = '-2';  //East=positive, West=negative decimal degrees
$SITE['cityname']        = 'METEOCAM';

$SITE['tz']             = 'America/Los_Angeles'//NOTE: this *MUST* be set correctly to


to

$SITE['latitude']        = '41.3857';    //North=positive, South=negative decimal degrees
$SITE['longitude']        = '2.1699';  //East=positive, West=negative decimal degrees
$SITE['cityname']        = 'Barcelona';

$SITE['tz']             = 'Europe/Madrid'//NOTE: this *MUST* be set correctly to


Change:
$SITE['WXSIM']            = true;  // Set to false if you have not installed WXSIM

to
$SITE['WXSIM']            = false;  // Set to false if you have not installed WXSIM

Change:
//*
$SITE['WUforecasts'] = array(

to
/*
$SITE['WUforecasts'] = array(
 (until you have filled out the multi-city forecast area with stations of your own choosing, then change the '/*' back to '//*' to enable the $SITE['WUforecasts'] to work again.

Change:
$SITE['EUwarningURL']    = 'http://www.meteoalarm.eu/index3.php?area=DK004&day=0&lang=en_UK';

to
$SITE['EUwarningURL']    = 'http://www.meteoalarm.eu/en_UK/0/0/ES001-Barcelona.html';

Change:
$SITE['lang'] = 'en';                // default language for website to use

to
$SITE['lang'] = 'es';                // default language for website to use


Then in Settings-weather.php:

Change:
$SITE['conditionsMETAR'] = 'KSJC';  // set to nearby METAR for current conditions icon/text

to

$SITE['conditionsMETAR'] = 'LEBL'; // dist=7 mi (11 km), dir=NW, Barcelona Airport, Spain elev=6, dated=05-JUL-11


Change:
$SITE['DavisVP']        = true;  // set to false if not a Davis VP weather station
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor

to
$SITE['DavisVP']        = false;  // set to false if not a Davis VP weather station
$SITE['UV']                = false;  // set to false if no UV sensor
$SITE['SOLAR']            = false;  // set to false if no Solar sensor

And that should get the majority of the data display correct on your website (assuming you are in Barcelona).

Best regards,
Ken


On Sunday, July 22, 2012 9:15:56 AM UTC-7, Jordi Corbella wrote:
Hi!

It was the error!

Two questions:
- I use the Spanish plugin but the actual conditions in Summary/temperature is always in English (Few clouds)...
- Do not actualise the conditions itself automatically every x minutes? Is it necessary reload the page every time?


Thank You for your help!

Jordi Corbella


Jordi Corbella

unread,
Jul 22, 2012, 3:49:27 PM7/22/12
to wv...@googlegroups.com
That's fine!

Thank You very much indeed!

Jordi

To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/xugKZf9-OAAJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wview?hl=en.

Jordi Corbella

unread,
Jul 22, 2012, 4:50:43 PM7/22/12
to wv...@googlegroups.com
Is there anyone translating the templates into Catalan?
If not, I would be willing to do it if you explain me how...

Jordi

On 22 July 2012 21:30, SaratogaWX <webm...@saratoga-weather.org> wrote:
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/xugKZf9-OAAJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wview?hl=en.



--
http://jordicorbella.com

SaratogaWX

unread,
Jul 22, 2012, 10:52:50 PM7/22/12
to wv...@googlegroups.com, jo.co...@gmail.com
Hi Jordi,

I've put together a Catalan update for the Base-World template.  You can get the updated files from the maintence page
http://saratoga-weather.org/wxtemplates/updates.php  Query for 22-Jul-2012, Base-World to get the needed parts. 
Unzip all the files to your website (and the ajax-images/* directory) EXCEPT for the Settings.php in the update.

You don't need to use the updated Settings.php in the update set .. instead, just change your existing Settings.php

from
  'bg',  // bulgarian
//  'ct', // 'catalan',
  
'dk'// 'danish',

to

  'bg',  // bulgarian
  'ct', // 'catalan',
  
'dk'// 'danish',

to enable display of the Catalan language option.  To set your site to default to Catalan, change Settings.php

$SITE['lang'] = 'es';                // default language for website to use

to
$SITE['lang'] = 'ct';                // default language for website to use

Don't forget to customize wxabout-ct.html for details about your city/weather-station.

Best regards,
Ken

Jordi Corbella

unread,
Jul 23, 2012, 3:40:08 AM7/23/12
to wv...@googlegroups.com
Hi ken,

thank you again for your help, I've got now my web absolutely fine!

But the text weather conditions in the summary/temperature are still in English...where can I find these texts to translate it?

Moltes gràcies

Jordi 

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/OVY1wARnxBMJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.

Jordi Corbella

unread,
Jul 23, 2012, 7:52:21 AM7/23/12
to wv...@googlegroups.com
Sorry, I was wrong, these texts are already translated.

Jordi

SaratogaWX

unread,
Jul 23, 2012, 2:53:33 PM7/23/12
to wv...@googlegroups.com, jo.co...@gmail.com
Hi Jordi,

You can finish up your customization by editing the wxmetar.php page to include the list of your nearby METAR stations.

Use http://saratoga-weather.org/wxtemplates/find-metar.php with your latitude/longitude and a distance to query for nearby METARs.  Then replace my sample list of:

 // Metar(ICAO) | Name of station | dist-mi | dist-km | direction |
  'KSJC|San Jose, California, USA|9|14|NE|', // lat=37.3667,long=-121.9167, elev=24, dated=30-SEP-11
  'KNUQ|Moffett Nas/Mtn, California, USA|9|14|N|', // lat=37.4000,long=-122.0500, elev=12, dated=30-SEP-11
  'KPAO|Palo Alto, California, USA|14|23|NNW|', // lat=37.4667,long=-122.1167, elev=2, dated=30-SEP-11
  'KRHV|San Jose/Reid, California, USA|12|19|ENE|', // lat=37.3167,long=-121.8167, elev=41, dated=30-SEP-11
  'KOAK|Oakland, California, USA|31|50|NNW|', // lat=37.7000,long=-122.2167, elev=26, dated=30-SEP-11
  'KSQL|San Carlos Airpo, California, USA|21|34|NW|', // lat=37.5167,long=-122.2500, elev=1, dated=30-SEP-11
  'KSFO|San Francisco, California, USA|30|49|NW|', // lat=37.6167,long=-122.3667, elev=3, dated=30-SEP-11
  'KE16|San Martin, California, USA|27|43|ESE|', // lat=37.0833,long=-121.6000, elev=86, dated=30-SEP-11
  'KWVI|Watsonville, California, USA|27|44|SSE|', // lat=36.9333,long=-121.7833, elev=43, dated=30-SEP-11
  'KHAF|Half Moon Bay, California, USA|31|50|WNW|', // lat=37.5167,long=-122.5000, elev=21, dated=30-SEP-11
  'KHWD|Hayward, California, USA|28|44|N|', // lat=37.6667,long=-122.1167, elev=21, dated=30-SEP-11
  'KLVK|Livermore, California, USA|31|51|NNE|', // lat=37.7000,long=-121.8167, elev=117, dated=30-SEP-11
// list generated Sun, 27-Nov-2011 9:01pm PST at http://saratoga-weather.org/wxtemplates/find-metar.php

with the list generated by the tool above.

Best regards,
Ken

Jordi Corbella

unread,
Jul 28, 2012, 10:45:56 AM7/28/12
to wv...@googlegroups.com
Thank You

And another station running with your templates: http://jordicorbella.com/vallimeteo

It's really a great work! And very easy to customize...

Jordi

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/cGK5y01EulQJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.

SaratogaWX

unread,
Jul 28, 2012, 1:03:25 PM7/28/12
to wv...@googlegroups.com, jo.co...@gmail.com
You are very welcome!  Glad you are enjoying the template set.

I've added your site to the list :)

Best regards,
Ken
Reply all
Reply to author
Forward
0 new messages