Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Forecast setup for Base-World template

Discussion of Ken True's web site templates

Moderator: saratogaWX

martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Forecast setup for Base-World template

Post by martialTh »

Bonjour à tous et joyeux Noël,
Pourrais le avoir un exemple de page de prévision, pour en copier la syntaxe sur settings.
Je ne comprend pas très bien l'anglais et je voudrais m'en inspirer pour la suite.
Merci
Martial

Hello everyone and merry Christmas,
Could have an example forecast page, to copy the syntax to settings.
I do not understand English very well and I would like to be inspired by it for the rest.
Thank you
Martial
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: ec-radar.php script dead due to Environment Canada website changes

Post by saratogaWX »

Hi Martial,

You seem to have two websites:
https://vieuxboucau.info/ which is a CumulusMX HTML website and

https://vieuxboucau.info/sa/wxindex.php which is a Saratoga PHP template.

For which site do you wish to have a forecast?

Salut Martial,

Vous semblez avoir deux sites Web :
https://vieuxboucau.info/ qui est un site Web CumulusMX HTML et

https://vieuxboucau.info/sa/wxindex.php qui est un modèle PHP Saratoga.

Pour quel site souhaitez-vous avoir un pronostic ?
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: ec-radar.php script dead due to Environment Canada website changes

Post by martialTh »

Bonjour,
J'aimerai une solution pour le site php.
et si possible pour bien comprendre un exemple de site français ou européen.
la ligne de code sur sttings et celle sur wxradar
Merci
Martial

*
Hello,
I would like a solution for the php site.
and if possible to fully understand an example of a French or European site.
the line of code on sttings and the one on wxradar
Thank you
Martial
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Forecast setup for Base-World template

Post by saratogaWX »

For the Base-World Saratoga template, there are two options for forecasts:

1) use Aerisweather forecast (requires an API Key available for free for stations submitting weather data to pwsweather.com) or
2) use WeatherUnderground forecast (requires an API key available for free for stations submitting weather data to weatherunderground.com)

The Base-World template set includes both scripts, and you only need to configure them in Settings.php

Aerisweather will need

Code: Select all

// --- Aerisweather.net forecast variables ---
$SITE['fcstscript'] = 'AW-forecast.php';
$SITE['fcstorg']    = 'Aerisweather'; // set to 'Aerisweather' for Aerisweather.net

$SITE['AWAPIkey'] = 'specify-your-Aerisweather-API-Access-ID-key-here'; // Your API Access ID key 
$SITE['AWAPIsecret'] = 'specify-your-Aerisweather-API-secret-here'; // Your API Secret Key

// Aerisweather display Units: 
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)

$SITE['AWshowUnitsAs'] = 'ca'; // ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['AWforecasts'] = array(
 // Location|lat,long  (separated by | characters)
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
); 
// --- end of Aerisweather forecast variables ---
WeatherUnderground will need

Code: Select all

$SITE['WCAPIkey'] = 'your-key-here';
$SITE['WCforecasts'] = array(
 // Location|lat,long  (separated by | characters)
'Saratoga, CA, USA|37.27465,-122.02295',
); 
// Use this to set the units used in the forecasts:
$SITE['WCunits'] = 'm';
// 'e'= US units F,mph,inHg,in,in
// 'm'= metric C,km/h,hPa,mm,cm (default)
// 'h'= UK units C,mph,mb,mm,cm
// 's'= SI units C,m/s,hPa,mm,cm 
$SITE['fcstscript'] = 'WC-forecast.php';
$SITE['fcstorg']    = 'WU/TWC'; // set to 'WU/TWC' for Wunderground new api
I do not have an example wxradar.php page to use as each country seems to have their own radar.

I hope this helps...
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: Forecast setup for Base-World template

Post by martialTh »

Bonjour
Je suis désolé je n'arrive à rien.
Pouvez vous m'envoyer la même chose avec les n° de lignes.
Je ne repère pas ou très peu.
Merci

Hello
I'm sorry I can't get anywhere.
Can you send me the same with the line numbers.
I do not see or very little.
Thank you
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Forecast setup for Base-World template

Post by PaulMy »

Hi Martial,
Your site https://vieuxboucau.info/sa/wxindex.php does not yet have the CU-plugin files uploaded so little to go on on for now.

For the forecast follow the information and do the settings in Settings.php lines 167 to 277. For WXSIM you need to purchase that program. For the free Aeris forecast settings is lines 177-199, and the WU forecast is lines 236 to 267.
See lines 201 and 202 for customizing the Aeris forecast to your location.

Hopefully that will get your forecasts working.

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: Forecast setup for Base-World template

Post by martialTh »

merci Paul
je finis de mettre en place demain
Je te souhaite de bien finir l'année et de bien commencer la suivante.
A l'année prochaine.
MARTIAL

thanks Paul
i finish setting up tomorrow
I wish you a good end to the year and a good start to the next.
See you next year.
MARTIAL
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: Forecast setup for Base-World template

Post by martialTh »

Hello,
First of all I wish you happiness, health and long life!

Something is wrong with my site.
https://vieuxboucau.info/sa/wxindex.php

I do or think I do everything you tell me.

When I do: https://vieuxboucau.info/sa/wxindex.php
I get: Note: ajax-dashboard not included since weather station not yet specified.

And when I try to see the forecast, I get:
Sorry .. the Aerisweather forecast is not available.
at this address: https://vieuxboucau.info/sa/wxforecast.php

if I do radar at https://vieuxboucau.info/sa/wxradar.php
I get :
https://www.meteo60.fr/radars-precipita ... france.php
Note: you'll need to insert links / images for your national radar here.

if I do: https: //vieuxboucau.info/sa/wxastronomy.php
I get: Note: Astronomy information not available since weather station not yet specified.

I attach my settings (because I think everything comes from there.)
I have hidden the passwords.

The chosen languages ​​are learned but do not change. !!

I am using cumulusMX (update 3160) with windows11.

Thank you for helping me.

Martial


Bonjour,
Tout d'abord je vous souhaite le bonheur, la santé et lune longue vie!!!

Quelque chose ne va pas sur mon site.
https://vieuxboucau.info/sa/wxindex.php

je fais ou je crois faire tout ce que vous me dites.

Quand je fais : https://vieuxboucau.info/sa/wxindex.php
J'obtiens : Note: ajax-dashboard not included since weather station not yet specified.

Et quand je cherche à voir les prévisions, j'obtiens:
Sorry.. the Aerisweather forecast is not available.
à cette adresse : https://vieuxboucau.info/sa/wxforecast.php

si je fais radar à https://vieuxboucau.info/sa/wxradar.php
j'obtiens :
https://www.meteo60.fr/radars-precipita ... france.php
Note: you'll need to insert links/images for your national radar here.

si je fais :https://vieuxboucau.info/sa/wxastronomy.php
j'obtiens :Note: Astronomy information not available since weather station not yet specified.

Je joins mon settings (car je crois que tout viens de là.)
J'ai cachénle mots de passe.

Les langues choisies appraraissent mais ne changent pas.!!

J'utilise cumulusMX (à jour 3160 ) avec windows11.

Merci de m'aider.

Martial

Code: Select all

<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (World-ML template set)
############################################################################
#
#	Project:	Sample Included Website Design
#	Module:		Settings.php
#	Purpose:	Provides the Site Settings Used Throughout the Site
# 	Authors:	Kevin W. Reed <kreed@tnet.com>
#				TNET Services, Inc.
#               Ken True <webmaster@saratoga-weather.org>
#               Saratoga-Weather.org
#
# 	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
############################################################################
// Version 1.01 - 01-Oct-2011 - added support for animated conditions/forecast icons
// Version 1.02 - 22-Jul-2012 - enabled Catalan language support in $SITE['langavail']
// Version 1.03 - 02-Dec-2018 - removed WU-forecast/enabled DS-forecast.php for forecasts
// Version 1.04 - 01-Mar-2019 - added optional WC-forecast.php for WU/TWC forecasts
// Version 1.05 - 11-Apr-2020 - added AW-forecast.php for Aerisweather forecasts
$SITE 			= array();

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

$SITE['CSSscreen']		= 'weather-screen-blue-narrow.css'; // Default screen 800px design
//   Note: $SITE['CSSscreen'] will be overridden if the Theme Switch (below) is enabled.
//   To lock your site to use only one CSS as specified in $SITE['CSSscreen'], just
//   turn off the Theme Switcher.
$SITE['CSSprint']		= 'weather-print-php.css';
#
#$SITE['CSSscreen']		= 'weather-screen.css'; // Classic design
#$SITE['CSSprint']		= 'weather-print.css';

# Mike Challis' Theme Switch configuration
$SITE['allowThemeSwitch']   = true;  // set to false to disable the use of Theme Switcher 
$SITE['CSSscreenDefault'] = 'weather-screen-blue.css'; // leave -narrow or -wide off this .. just change color here
$SITE['CSSwideOrNarrowDefault'] = 'narrow'; // 'narrow' or 'wide'
# CSSsettings_mode
# sets allowable user style select options:
# 1 user can select style and screen width (show style select and screen width select)
# 2 user can select styles only (hide screen width select)
# 3 user can select screen width only (hide style select)
$SITE['CSSsettings_mode'] = 1;  // set to 1, 2 or 3

$SITE['flyoutmenu'] = true; // set to false to use the menu list inside menubar.php instead

$SITE['charset']		= 'ISO-8859-1'; // default character set for webpages (iso-8859-1=latin)
#
# Multilanguage support 
#
$SITE['lang'] = 'fr';                // default language for website to use
$SITE['allowLanguageSelect'] = true; // set to false to disable the use of language selector
$SITE['useLanguageFlags'] = true;    // true=show flags, false=show language 2-char abbreviations
$SITE['languageSelectDropdown'] = false; // true=show dropdown list for languages, false=show linear flags list
$SITE['languageSelectButton'] = false;  // true=show 'Set' button for language select, false=use onchange to submit
$SITE['langavail'] = array('fr','nl' ,'de','it','es', 'pt','en',  // select languages to offer here.  Use comments to remove languages
// array('en', should be first entry on line above
 // 'af',  // afrikaans
 // 'bg',  // bulgarian
 // 'ct', // 'catalan',
//  'dk', // 'danish',
  'nl', // 'dutch',
 // 'fi', // 'finnish',
  'fr', // 'french',
//  'ga', // 'irish',
  'de', // 'german',
 // 'el', // 'greek',
 // 'he', // 'hebrew',
 // 'hu', // 'hungarian',
  'it', // 'italian',
 // 'no', // 'norwegian',
//  'pl', // 'polish',
  'pt', // 'portuguese',
 // 'ro', // 'romanian',
  'es', // 'spanish',
 // 'se', // 'swedish',
);
// if your software uploads almanac dates using a language OTHER THAN English, please put the month
// names in your language to replace the English ones below.  This is used primarily by the
// wxastronomy.php page for the local dates of moon phases, solistices, and equinoxes
$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 
'Janvier','Fevrier','Mars','Avril','Mai','Juin',
'Juillet','Août','Septembre','Octobre','Novembre','Decembre'
);
// example:
//$SITE['monthNames'] = array(  // Danish for wxastronomy page .. replace with month names in your language
//'januar','februar','marts','april','maj','juni',
//'juli','august','september','oktober','november','december'
//);

############################################################################
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']			= 'World Multilingual Website with PHP &amp; AJAX';
$SITE['copyr']			= '&copy; ' . gmdate("Y",time()) . ', Your Weather Website';
$SITE['location']       = 'Vieux Boucau, Nouvelle Aquitaine France';
$SITE['email']			=  'mailto:meteo@vieuxboucau.info';
# Station location: latitude, longitude, cityname
$SITE['latitude']		= '43.785811';    //North=positive, South=negative decimal degrees
$SITE['longitude']		= '-1.400962';  //East=positive, West=negative decimal degrees
$SITE['cityname']		= 'Vieux Boucau';


$SITE['tz'] 			= 'europe/Paris'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
// note: date format used for PHP parts only.  Weather software dates are not processed
// except on the astronomy page
// $SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
// $SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
// $SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

// $SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd/m/Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format


############################################################################
# Sitewide configuration - support scripts configuration
############################################################################

###########################################################################
# These values should reflect the units-of-measure your weather station
# uses to report the weather data when processing weather tags.
# Note: if you change them here, make sure to make the corresponding
#   changes in the ajax[WXname]wx.js AJAX script also.
###########################################################################
// world Settings 
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
$SITE['uomTemp'] = '&deg;C';  // ='&deg;C', ='&deg;F'
$SITE['uomBaro'] = ' hPa';    // =' hPa', =' mb', =' inHg'
$SITE['uomWind'] = ' km/h';   // =' km/h', =' kts', =' m/s', =' mph'
$SITE['uomRain'] = ' mm';     // =' mm', =' in'
$SITE['uomSnow'] = ' cm';     // =' cm', =' in'
$SITE['uomDistance'] = ' km';  // or ' miles' -- used for Wind Run display
$SITE['uomPerHour'] = '/hr';
//
$SITE['imagesDir'] = './ajax-images/';  // directory for ajax-images with trailing slash
// 
$SITE['cacheFileDir']   =  './cache/';   // directory to use for scripts cache files .. use './' for doc.root.dir
// 
$SITE['UVscript']		= 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//	comment out above line to exclude UV forecast from dashboard, gizmo and wxuvforecast.php page
//
// if you have WXSIM installed set $SITE['WXSIM'] = true; otherwise set it to false
$SITE['WXSIM']			= false;  // =false; if you have not installed WXSIM, = true; if you have WXSIM
$SITE['WXSIMscript'] 	= 'plaintext-parser.php'; // script for decoding plaintext.txt into icons
$SITE['defaultlang']	= 'fr';   // 'en' for English (WXSIM plaintext-parser.php)

$SITE['fcsticonsdir'] = './forecast/images/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts
$SITE['fcsticonstype']= '.jpg'; // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
// 
//*
// --- Aerisweather.net forecast variables ---
$SITE['fcstscript'] = 'AW-forecast.php';
$SITE['fcstorg']    = 'Aerisweather'; // set to 'Aerisweather' for Aerisweather.net

$SITE['AWAPIkey'] = '077185bce9d856'; // Your API Access ID key 
$SITE['AWAPIsecret'] = 'F1972c1973&'; // Your API Secret Key$SITE['AWAPIkey'] = '5289ad14056d4f5589ad14056d3f556f'; // Your API Access ID key 
$SITE['AWAPIsecret'] = 'F1972c1973&'; // Your API Secret Key


// Aerisweather display Units: 
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)

$SITE['AWshowUnitsAs'] = 'si'; // ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['AWforecasts'] = array(
 // Location|lat,long  (separated by | characters)
 'Vieux Boucau, FR|43.785811,-1.400962',
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
); 
// --- end of Aerisweather forecast variables ---
/*
For more information on customization of the AW-forecast.php script, please see the documentation at
https://saratoga-weather.org/scripts-AWforecast.php
*/
/*
// NOTE: as of 31-Mar-2020, new DarkSky API keys are not available and the API will be removed
//  at the end of 2021.  Use Aerisweather or WU/TWC for forecasts.
//
// --- DarkSky.net forecast variables ---
$SITE['fcstscript'] = 'DS-forecast.php';
$SITE['fcstorg']    = 'DarkSky'; // set to 'DarkSky' for DarkSky.net

$SITE['DSAPIkey'] = 'specify-your-DarkSky-API-key-here'; // Your API key from https://darksky.net/dev 

// DarkSky display Units: 
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)

$SITE['DSshowUnitsAs'] = 'ca'; // ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['DSforecasts'] = array(
 // Location|lat,long  (separated by | characters)
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
); 
// --- end of DarkSky forecast variables ---
/*
For more information on customization of the DS-forecast.php script, please see the documentation at
https://saratoga-weather.org/scripts-DSforecast.php
*/

/* add a / at the beginning of this line to enable WU/TWC forecasts
// --- WU/TWC  forecast variables ---
$SITE['fcstscript'] = 'WC-forecast.php';    // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg']    = 'WU/TWC';    // set to 'WU/TWC' for WeatherUnderground

$SITE['WCAPIkey'] = 'specify-your-WU-API-key-here'; // Your API key from https://www.wunderground.com/member/api-keys 

// Wunderground display Units (uncomment one of the following): 
//$SITE['WCunits']  = 'e';  // 'e'= US units F,mph,inHg,in,in
$SITE['$WCunits']   = 'm';  // 'm'= metric   C,km/h,hPa,mm,cm
//$SITE['$WCunits']  = 'h';  // 'h'= UK units C,mph,mb,mm,cm
//$SITE['$WCunits']  = 's';  // 's'= SI units C,m/s,hPa,mm,cm

$SITE['fcsturlWC'] = 'Saratoga, CA, USA|37.27465,-122.02295'; // default forecast, should match first line in $SITE['WCforecasts']

$SITE['WCforecasts'] = array(
 // Location name to display|lat,long  (separated by | character)
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Cheyenne, WY, USA|41.144259,-104.83497',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
'Omaha, NE, USA|41.19043,-96.13114',
'Johanngeorgenstadt, DE|50.439339,12.706085',
'Athens, GR|37.97830,23.715363',
'Haifa, IL|32.7996029,34.9467358',
'Tahoe Vista, CA, USA|39.2403,-120.0528',
'Auburn, CA, USA|38.8962,-121.0789',
); 
// --- end of WU/TWC forecast variables ---

//*/
// Uncomment the two lines below to use WXSIM as the ONLY forecast script to use
// $SITE['fcstscript']	= 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
// $SITE['fcstorg']		= 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

// 
// For Europe only, use the meteoalarm.eu site for your area's watches/warnings on the wxadvisory page
$SITE['EUwarningURL']	= 'http://www.meteoalarm.eu/index3.php?area=DK004&day=0&lang=en_UK';
// EUwarningURL is used by get-meteoalarm-warning-inc.php for EU countries


##########################################################################
# end of configurable settings
##########################################################################
#
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"); 
}
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Forecast setup for Base-World template

Post by PaulMy »

Hi Martial,
And best wishes and Happy New Year to you too.

You still need to FTP to your website the contents of the CU-plugin zip that you should have downloaded from the SaratogaWX site (everything except the WXtags-template-file folder and content). This includes the Settings-weather.php file where you would do the station settings, including the path to realtime.txt and the images.

In that WXtags-template-files folder is CUtags.txt file which is the template file for CumulusMX to process and update to your website with the current data. This CUtags.txt template file is to be copied and paste in your CumulusMX\web folder and then added in Extra web files settings for Process and FTP as CUtags.php

Get that working first and then see what else needs to be looked at.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: Forecast setup for Base-World template

Post by martialTh »

Bonjour Paul

J'espere que ça ira. je n'ai pas trouvé le fichier txt mais le fichier php.
Je l'ai mis en place comme demandé, j'éspére que ça ira.
à+
Martial

good-morning Paul

I hope it'll be OK. I did not find the txt file but the php file.
I set it up as requested, hope it will be okay.
to +
Martial
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Forecast setup for Base-World template

Post by PaulMy »

Hi Martial,
One step at a time...
The CUtags.php is being processed and FTP to your https://vieuxboucau.info/ root. This can work ok but you need to do the settings to that location path
in Settings-weather.php. However the content of WXtags-template-files, which includes Settings-weather.php, has still not yet been uploaded so it will show "weather station not yet specified." until you upload them.

The Cumulus settings in the download CU-plugin zip file Settings-weather.php are lines 37 to 59:

Code: Select all

#---------------------------------------------------------------------------
#  required settings for Cumulus software
#---------------------------------------------------------------------------
$SITE['WXtags']		= 'CUtags.php';    // for weather variables
$SITE['ajaxScript']     = 'ajaxCUwx.js';   // for AJAX enabled display
$SITE['realtimefile']   = './realtime.txt';  // directory and name of Cumulus realtime.txt file
$SITE['graphImageDir']  = './images/';     // directory location for graph images with trailing /
#---------------------------------------------------------------------------
# For NOAA reports
$SITE['NOAAdir']        = './Reports/';   // relative location of the NOAA report files
# Weather Station sensors and options for dashboard
$SITE['conditionsMETAR'] = 'KSJC';  // set to nearby METAR for current conditions icon/text
#  comment out conditionsMETAR if no nearby METAR.. conditions icon/text will not be displayed
#
$SITE['overrideRain']   = true; // =true then rain rate will set rain words instead of METAR rain words
#                               // =false - no change to METAR rain words (station rain rate not used)
$SITE['feelslike']      = 0;     // =0 use HeatIndex, =1 use Humidex, =2 use Apparent Temperature
$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
#
##########################################################################
# end of configurable settings
Line 40 $SITE['WXtags'] = 'CUtags.php'; // for weather variables
should likely be changed to $SITE['WXtags'] = '../CUtags.php'; // for weather variables
as it is in the root, one level above your /sa folder.

Line 42 $SITE['realtimefile'] = './realtime.txt'; // directory and name of Cumulus realtime.txt file
should likely be changed to $SITE['realtimefile'] = '../realtime.txt'; // directory and name of Cumulus realtime.txt file
as it is also in your root and one level above your /sa folder, however that realtime.txt is from 31/12/21 and not being updated so you will need to check your Internet settings > Interval Configuration > Realtime Interval Settings > and make sure you have [ticked] realtime.txt to Generate and FTP transfer at realtime.

Line 43 $SITE['graphImageDir'] = './images/'; // directory location for graph images with trailing /
should likely be changed to $SITE['graphImageDir'] = '../'; // directory location for graph images with trailing /
but not 100% sure and that can be relooked at once you have the rest of your site working.

Line 46 $SITE['NOAAdir'] = './Reports/'; // relative location of the NOAA report files
should likely be changed to $SITE['NOAAdir'] = '../Reports/'; // relative location of the NOAA report files
as it is also in your root and one level above your /sa folder.

Line 48 $SITE['conditionsMETAR'] = 'KSJC'; // set to nearby METAR for current conditions icon/text
should change the METAR station 'KSJC' to the METAR station near you.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
jacot04
Posts: 4
Joined: Fri 23 Dec 2011 1:26 pm
Weather Station: WMR200
Operating System: Raspberry4
Location: FRANCE

Re: Forecast setup for Base-World template

Post by jacot04 »

Salut, T'ai envoyé un msg en MP
http://www.monsitemeteo.fr/wxindex.php
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Forecast setup for Base-World template

Post by saratogaWX »

Looking at view-source:https://vieuxboucau.info/sa/wxforecast.php shows
<!-- RC=401, bytes=870 -->
<!-- bad return from https://api.aerisapi.com/forecasts/?p=4 ... F1972c1973&
HTTP/2 401
content-type: application/json; charset=utf-8
date: Mon, 03 Jan 2022 20:30:09 GMT
server: nginx/1.17.10
pragma: public
x-cacheaction-hit: action__error_error_08c2b2d49bbb9ccd889e992c3f807c1e
expires: Mon, 03 Jan 2022 20:49:59 GMT
cache-control: public,max-age=1190,s-maxage=1190
access-control-allow-origin: *
access-control-allow-methods: GET, POST, OPTIONS
access-control-allow-headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
access-control-expose-headers: Content-Length,Content-Range
x-cache: Error from cloudfront
via: 1.1 fdd677a35b242f0199586a71e2f6859f.cloudfront.net (CloudFront)
x-amz-cf-pop: FRA56-C1
x-amz-cf-id: 3KT62sX_Gg4zb8BpDkU3PfHdJKKCb-x2oPM7w5rsZV6gr7pvA57LzQ==

{"success":false,"error":{"code":"invalid_client","description":"The client provided is invalid."},"response":[]}
-->
Make sure that the Settings.php entries for

$SITE['AWAPIkey'] and
$SITE['AWAPIsecret']

have the correct values.
martialTh
Posts: 80
Joined: Thu 25 Nov 2021 3:09 pm
Weather Station: https://www.vieuxboucau.info/wxi
Operating System: windows 10
Location: Vieux Boucau France
Contact:

Re: Forecast setup for Base-World template

Post by martialTh »

Bonjour
J'ai mis la clé qui manquait mais voila le résultat.

J'ai mis cutags dans web

Je suis pas tout à fait désespéré mais presque.
Merci
Martial

Hello
I put the key that was missing but here is the result.

I put cutags in web

I'm not quite desperate but almost.
Thank you
Martial
You do not have the required permissions to view the files attached to this post.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Forecast setup for Base-World template

Post by saratogaWX »

In your Settings.php you have

Code: Select all

$SITE['fcstscript'] = '077185bce9d856';
change that to

Code: Select all

$SITE['fcstscript'] = 'AW-forecast.php';
Also, the CU-tags.php is the 'starter' file that comes with the Cumulus plugin and contains data from my station in 2011.

You need to configure CumulusMX to process and upload CU-tags.php to your site.
See: https://saratoga-weather.org/wxtemplate ... ulusMX.php for directions
Post Reply