Configuration du logiciel de la station météo

Pour que les données de votre station météo puissent être utilisées par Réseau Météo Ontario (COWN), vous devez configurer votre logiciel météo pour télécharger les données dans un format que notre serveur puisse lire. Présentement, nous pouvons lire les données de WeatherLink, Weather Display, Virtual Weather Station, Weather Underground HeavyWeather Uploader (WUHU) and Cumulus.

Les configurations des divers logiciels sont expliquées plus bas. Une fois la configuration complétée, remplissez le formulaire devenir membre pour devenir COWN membre et votre station sera ajoutée au réseau. Si vous avez des difficultés, n'hésitez pas à nous contacter.


Logiciels:


Configuration de WeatherLink


Configuration de Weather Display

Note: L'information pour générer et télécharger le fichier "clientraw.txt" est disponible sur (site anglophone) Weather-Watch Forums.


Configuration de Virtual Weather Station


Configuration de Weather Underground HeavyWeather Uploader (WUHU)

NOTE! WUHU 216 Beta 40 ou plus récent est nécessaire !!

Vous devriez pouvoir voir l'action du fichier sur www.yourweatherwebsite.com/WU_stickertags.txt


Configuration de Cumulus Software


Needs translation to French

How to install COWN Meso-map

You can download a starter set of the code and all required files (COWN-mesomap.zip). Just unpack the zip file and upload the contents to your website. Place the control files and PHP script in the root directory of your webserver, along with the graphic file and the arrows/other graphics in the ./COWN-images directory. Be sure to customize the mesomap-update-utility.php script in the package so you can use it in the future to keep your control file, graphic and mesomap PHP file up to date.

Second, create a new PHP webpage using your website template. (I called mine COWN.php, but the filename is not important). Edit the webpage to have a page title of "Ontario Weather Network", and insert two PHP include statements. In the <head> section, insert:

<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />


<?php
$doPrintCOWN = false;
include("COWN-mesomap.php");
print $COWN_CSS; ?>

and in the <body> section where you'd like the COWN meso-map to appear, insert:

<?php print $COWN_MAP; print $COWN_TABLE; ?>

if you'd like XHTML 1.0-Strict code generated, then use in the <head> section:

<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />


<?php
$doPrintCOWN = false;
$_REQUEST['gen'] = 'xhtml';
include("COWN-mesomap.php");
print $COWN_CSS; ?>

Save the file and upload it to your weather website.

If you'd like to center the map in your page, don't use the <center> tag .. it will move only the upper graphic and not the background graphic, so the legends will be displaced. Instead, use a <table> like this:

<table width="99%">
<tr><td align="center">
<table width="620">
<tr><td style="text-align:left">
<?php print $COWN_MAP; ?>
</td></tr>
<tr><td>
<?php print $COWN_TABLE; ?>
</td></tr>
</table>
</td></tr>
</table>

When it comes time to update the mesomap in the future, you'll only have to use the mesomap-update-utility.php on your website to keep the files current with the master set.

Cacheing of current conditions has been enabled with a default life of 10 minutes. This should speed up subsequent views.
Please make sure that COWN-conditions.txt file in the same directory as the COWN-mesomap.php is writable by PHP (permissions of 666 or 777) -- it's used to store the local cache of conditions reports for display.
Also, a config file option has been implemented which allows you to store your settings in COWN-mesomap-config.txt in the same directory. That way, you only have to change your settings once for the COWN-mesomap.php program, and new program updates won't alter your settings. The sample COWN-mesomap-config.txt file is in the COWN-mesomap.zip or viewable here.


How to install COWN Meso-map (HTML process)

NOTE: please use this method ONLY if you don't have PHP available on your web hoster. This method will cause load on our Ontario Weather Network home site (which we can handle for a few sites), and may not provide search engines with the links to index as does the PHP method (so your site won't get the 'publicity' on the search engines as the sites using the PHP map will).

First, create a new COWN meso-map webpage using your website template.
Edit the webpage to have a page title of "Ontario Weather Network", and put this HTML in the <body> section of the page where you'd like the mesomap to appear.:

<div style="width: 620px">
<iframe src="http://www.ontario-weather.net/COWN.php" width="620" height="680"
frameborder="0" scrolling="auto">
</iframe>
<br clear="all">
</div>

Now upload your COWN meso-map page to your website.


Update your HomePage

Now edit your weather station homepage to have a link to your COWN meso-map. If you use a text link, then please make sure the words "Ontario Weather Network" appear in the link and title= like this:

<a href="COWN.php" title="Ontario Weather Network">Ontario Weather Network</a>

If you use a graphical link, then make sure the <img> link has both alt= and title= attributes that say "Ontario Weather Network" in them. Search engines will read the alt= and title= tags for keywords, and we want to make sure they pick up our full name.

<a href="COWN.php">
<img src="COWN_logo_100.png"
alt="Ontario Weather Network"
title="Ontario Weather Network"
width="100" height="100" style="border: none;" />
</a>

Save the edited homepage and upload to your website (which may mean editing a .htx or .txt file with the html for upload by your weather station program). Now you're finished (until the COWN gets a new member) and you can relax and enjoy the snappy reparte on the COWN forum.