﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tag Forecast - Constellation</title>
	<atom:link href="https://developer.myconstellation.io/tag/forecast/feed/" rel="self" type="application/rss+xml" />
	<link>https://developer.myconstellation.io/tag/forecast/</link>
	<description>Votre plateforme d&#039;interconnexion</description>
	<lastBuildDate>Thu, 13 Jun 2019 14:35:58 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.11</generator>

<image>
	<url>https://developer.myconstellation.io/wp-content/uploads/2016/02/256x256-e1457476015859.png</url>
	<title>Tag Forecast - Constellation</title>
	<link>https://developer.myconstellation.io/tag/forecast/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ForecastIO : les prévisions météo dans Constellation</title>
		<link>https://developer.myconstellation.io/package-library/forecastio/</link>
					<comments>https://developer.myconstellation.io/package-library/forecastio/#comments</comments>
		
		<dc:creator><![CDATA[Constellation Documentation Agent]]></dc:creator>
		<pubDate>Fri, 21 Oct 2016 10:37:04 +0000</pubDate>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[Meteo]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[Forecast]]></category>
		<category><![CDATA[ForecastIO]]></category>
		<guid isPermaLink="false">https://developer.myconstellation.io/?p=3279</guid>

					<description><![CDATA[<p>Le package ForecastIO vous permet de connaitre les conditions météorologique actuelles et prévisions jusqu’à 8 jours. Le code source de ce package est disponible sur : https://github.com/myconstellation/constellation-packages/tree/master/ForecastIO Installation Prérequis : créer un compte développeur sur Dark Sky Pour pouvoir utiliser le</p>
<p>The post <a rel="nofollow" href="https://developer.myconstellation.io/package-library/forecastio/">ForecastIO : les prévisions météo dans Constellation</a> appeared first on <a rel="nofollow" href="https://developer.myconstellation.io">Constellation</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Le package ForecastIO vous permet de connaitre les conditions météorologique actuelles et prévisions jusqu’à 8 jours.</p>
<p align="center"><a href="http://www.forecast.io"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-84.png" alt="image" width="350" height="98" border="0" /></a></p>
<p style="text-align: left;" align="center">Le code source de ce package est disponible sur : <a href="https://github.com/myconstellation/constellation-packages/tree/master/ForecastIO">https://github.com/myconstellation/constellation-packages/tree/master/ForecastIO</a></p>
<h3>Installation</h3>
<h4>Prérequis : créer un compte développeur sur Dark Sky</h4>
<p>Pour pouvoir utiliser le service Forecast.io vous devez créer un compte développeur Dark Sky sur : <a title="https://darksky.net/dev/" href="https://darksky.net/dev/">https://darksky.net/dev/</a></p>
<p>Vous disposez de 1.000 appels au service par jour gratuitement.</p>
<p align="center"><a href="https://darksky.net/dev/"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-67.png" alt="image" width="350" height="244" border="0" /></a></p>
<p>Une fois inscrit, copiez la clé API que vous devrez rentrer dans la configuration du package Constellation.</p>
<p align="center"><a href="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-68.png"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image_thumb-64.png" alt="image" width="350" height="244" border="0" /></a></p>
<h4>Installation du package Constellation</h4>
<p>Depuis le “Online Package Repository” de votre Console Constellation, déployez le package ForecastIO :</p>
<p align="center"><a href="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-63.png"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image_thumb-60.png" alt="image" width="350" height="213" border="0" /></a></p>
<p>Une fois le package télécharger votre repository local, sélectionnez la sentinelle sur laquelle déployer le package.</p>
<p>Pour finir, sur la page de Settings, vous devez obligatoirement définir la configuration au format XML :</p>
<p align="center"><a href="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-64.png"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image_thumb-61.png" alt="image" width="350" height="286" border="0" /></a></p>
<p align="left">Le XML de configuration du package a la structure suivante :</p>
<p></p><pre class="crayon-plain-tag">&lt;forecastIOConfigurationSection xmlns="urn:ForecastIO" apiKey="xxxxxxxxxxxxxxxxx" refreshInterval="00:30:00" language="en"&gt;
  &lt;stations&gt;
    &lt;station name="Paris" longitude="2.35" latitude="48.853" /&gt;
  &lt;/stations&gt;
&lt;/forecastIOConfigurationSection&gt;</pre><p></p>
<p>Sur la balise racine, vous devez obligatoirement spécifier dans l’attribut “apiKey” votre clé d’API obtenue sur le portail développeur Dark Sky. Vous pouvez également modifier l’intervalle de rafraichissement des prévisions (par défaut 30 minutes), la langue des commentaires (par défaut en anglais) ainsi que les unités (en rajoutant l&rsquo;attribut « unit »).</p>
<p>Dans la listes “&lt;stations&gt;” vous pouvez configurer autant de stations que vous souhaitez. Chaque station est définie par un nom et une position GPS (Latitude et Longitude).</p>
<p>Par exemple, pour maintenir à jour dans vos StateObjects Constellation, la météo (en Francais),  pour Paris, Lille et Londres toutes les 10 minutes:</p>
<p></p><pre class="crayon-plain-tag">&lt;forecastIOConfigurationSection xmlns="urn:ForecastIO" apiKey="xxxxxxxxxxxxxxxxx" refreshInterval="00:10:00" language="fr"&gt;
  &lt;stations&gt;
    &lt;station name="Paris" longitude="2.35" latitude="48.853" /&gt;
    &lt;station name="Lille" longitude="3.05" latitude="50.629" /&gt;
    &lt;station name="Londre" longitude="-0.14" latitude="51.557" /&gt;
  &lt;/stations&gt;
&lt;/forecastIOConfigurationSection&gt;</pre><p></p>
<p>Bien entendu vos  pouvez également déployer ce package manuellement dans la configuration de votre Constellation :</p>
<p></p><pre class="crayon-plain-tag">&lt;package name="ForecastIO"&gt;
  &lt;settings&gt;
    &lt;setting key="forecastIOConfigurationSection"&gt;
        &lt;content&gt;
        &lt;forecastIOConfigurationSection xmlns="urn:ForecastIO" apiKey="xxxxxxxxxxxxxxxxx" refreshInterval="00:30:00" language="fr"&gt;
          &lt;stations&gt;
            &lt;station name="Paris" longitude="2.35" latitude="48.853" /&gt;
            &lt;station name="Lille" longitude="3.05" latitude="50.629" /&gt;
            &lt;station name="Londre" longitude="-0.14" latitude="51.557" /&gt;
          &lt;/stations&gt;
        &lt;/forecastIOConfigurationSection&gt;
        &lt;/content&gt;
    &lt;/setting&gt;
  &lt;/settings&gt;
&lt;/package&gt;</pre><p></p>
<h3>Détails du package</h3>
<h4>Les Settings</h4>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="10"><u>Nom</u></td>
<td valign="top" width="10"><u>Type</u></td>
<td valign="top" width="10"><u>Détail</u></td>
<td valign="top" width="456"><u>Description</u></td>
</tr>
<tr>
<td valign="top" width="10"><strong>forecastIOConfigurationSection</strong></td>
<td valign="top" width="10">ConfigurationSection</td>
<td valign="top" width="10">Obligatoire</td>
<td valign="top" width="456">XML de configuration du package</td>
</tr>
</tbody>
</table>
<h4>Les StateObjects</h4>
<p>Vous retrouverez autant de StateObjects que de stations spécifiées dans la configuration du package. Ces StateObjects sont mis à jour pour l’intervalle défini dans la configuration (toutes les 30 minutes par défaut).</p>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="10"><u>Nom</u></td>
<td valign="top" width="10"><u>Type</u></td>
<td valign="top" width="446"><u>Description</u></td>
</tr>
<tr>
<td valign="top" width="10"><strong>&lt;&lt; nom de la station &gt;&gt;</strong></td>
<td valign="top" width="10">ForecastIO.ForecastIOResponse</td>
<td valign="top" width="446">StateObject dont le nom est le nom de la station que vous avez défini dans la configuration, et la valeur contient les conditions actuelles et prévisions météorologique pour la station.</td>
</tr>
</tbody>
</table>
<p align="center"><a href="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-65.png"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image_thumb-62.png" alt="image" width="350" height="112" border="0" /></a></p>
<h4 align="left">Les MessageCallbacks</h4>
<p>Le package expose 2 MessageCallbacks :</p>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="10"><u>Nom</u></td>
<td valign="top" width="141"><u>Réponse (saga)</u></td>
<td valign="top" width="407"><u>Description</u></td>
</tr>
<tr>
<td valign="top" width="10"><strong>GetWeatherForecast</strong></td>
<td valign="top" width="141">ForecastIO.ForecastIOResponse</td>
<td valign="top" width="407">Récupère les conditions actuelles et prévisions météorologique pour une position GPS donnée</td>
</tr>
</tbody>
</table>
<h3 align="center"><a href="https://developer.myconstellation.io/wp-content/uploads/2016/10/image-66.png"><img class="colorbox-3279"  loading="lazy" style="background-image: none; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-width: 0px;" title="image" src="https://developer.myconstellation.io/wp-content/uploads/2016/10/image_thumb-63.png" alt="image" width="350" height="115" border="0" /></a></h3>
<h3 align="left">Quelques exemples</h3>
<ul>
<li>Afficher la météo dans un Dashboard HTML</li>
<li>Envoyer une notification depuis un package C# en cas de pluie dans l’heure</li>
</ul>
<p>The post <a rel="nofollow" href="https://developer.myconstellation.io/package-library/forecastio/">ForecastIO : les prévisions météo dans Constellation</a> appeared first on <a rel="nofollow" href="https://developer.myconstellation.io">Constellation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://developer.myconstellation.io/package-library/forecastio/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Mise en cache de page à l’aide de Disk: Enhanced 

Served from: developer.myconstellation.io @ 2026-01-23 02:02:45 by W3 Total Cache
-->