Skip to content

Meteo France Binding ​

This binding provides information made available by Meteo France:

  • Alert level regarding major weather related risk factors (vigilance Thing)
  • Rain intensity forecasts (rain-forecastThing)

This binding provides its own icon set and provides appropriate static and dynamic SVG icons (see items examples below).

Discovery ​

Once a bridge with the API key has been created, appropriate departments can be auto discovered based on system location.

Binding Configuration ​

The binding has no configuration options, all configuration is done at Bridge and Thing level.

Bridge Configuration ​

The api bridge has only one configuration parameter :

ParameterDescription
apikeyData-platform token to access the service. Mandatory.

To obtain an API key, you must create an account on https://portail-api.meteofrance.fr/web/fr/ Inside the API Portal, create an application on "Bulletin Vigilance" and generate they API key (set duration to 0).

Thing Configuration ​

The vigilance Thing has these configuration parameters:

ParameterDescription
departmentCode of the department (two digits).
refreshRefresh interval in minutes. Optional, the default value is 60 minutes.

The rain-forecast Thing has this configuration parameters:

ParameterDescription
locationGeo coordinates to be considered by the service.

Channels for vigilance ​

The information that are retrieved is available as these channels:

Channel IDItem TypeDescription
observation-timeDateTimeDate and time of report validity start
end-timeDateTimeDate and time of report validity end
commentStringGeneral comments on alerts for the department
ventNumberWind alert level (*)
pluie-inondationNumberRain alert level (*)
orageNumberStorm alert level (*)
inondationNumberFlood alert level (*)
neigeNumberSnow alert level (*)
caniculeNumberHeat alert level (*)
grand-froidNumberCold alert level (*)
avalanchesNumberAvalanche alert level (*)
vague-submersionNumberWave submersion alert level (*)
pluie-inondation-iconImagePictogram of the Rain alert level
vent-iconImagePictogram of the Wind alert level
orage-iconImagePictogram of Storm alert level
inondation-iconImagePictogram of Flood alert level
neige-iconImagePictogram of Snow alert level
canicule-iconImagePictogram of Heat alert level
grand-froid-iconImagePictogram of Cold alert level
avalanches-iconImagePictogram of Avalanche alert level
vague-submersion-iconImagePictogram of Wave Submersion alert level

(*) Each alert level has an associated color and description:

CodeColorDescription
0GreenNo particular vigilance
1YellowBe attentive to the weather situation
2OrangeBe "very vigilant" in the concerned areas
3RedAbsolute vigilance required

Channels for rain-forecast ​

The information that are retrieved is available as these channels:

Channel IDItem TypeDescription
update-timeDateTimeObservation Timestamp
intensityNumberRain intensity level (*)

(*) Rain intensity values and associated descriptions:

CodeDescription
0Dry Weather
1Light Rain
2Moderate Rain
3Heavy Rain

Provided icon set ​

This binding has its own IconProvider and makes available the following list of icons

Icon NameDynamicIllustration
oh:meteofrance:ventYesVent
oh:meteofrance:pluie-inondationYesPluie Inondation
oh:meteofrance:orageYesOrage
oh:meteofrance:inondationYesInondation
oh:meteofrance:neigeYesNeige
oh:meteofrance:caniculeYesCanicule
oh:meteofrance:grand-froidYesGrand Froid
oh:meteofrance:avalanchesYesAvalanches
oh:meteofrance:vague-submersionYesVague Submersion
oh:meteofrance:meteo_franceNoMeteo France
oh:meteofrance:intensityYesIntensity

Full Example ​

meteoalert.things:

dsl
Bridge meteofrance:api:local "Portail Météo-France" [ apikey="ey......FIjG1MIC9lmG5t6HygPAPg=="] {
    vigilance yvelines "Vigilance Météo" [ department="78" ]
    rain-forecast yvelines [ location="48.764207,2.05948" ]
}

meteoalert.items:

dsl
Group gMeteoAlert "Alertes Météo" <oh:meteofrance:meteo_france> 
String     MA_Dept78                  "Département 78 [%s]"       <text>                              (gMeteoAlert)   {channel="meteofrance:department:yvelines:comment"}
Number     MA_etat_canicule           "Canicule [%s]"             <oh:meteofrance:canicule>           (gMeteoAlert)   {channel="meteofrance:department:yvelines:canicule"}
Number     MA_etat_grand_froid        "Grand Froid [%s]"          <oh:meteofrance:grand-froid>        (gMeteoAlert)   {channel="meteofrance:department:yvelines:grand-froid"}
Number     MA_etat_pluie_inondation   "Pluie-Inondation [%s]"     <oh:meteofrance:pluie-inondation>   (gMeteoAlert)   {channel="meteofrance:department:yvelines:pluie-inondation"}
Number     MA_etat_neige              "Neige [%s]"                <oh:meteofrance:neige>              (gMeteoAlert)   {channel="meteofrance:department:yvelines:neige"}
Number     MA_etat_vent               "Vent [%s]"                 <oh:meteofrance:vent>               (gMeteoAlert)   {channel="meteofrance:department:yvelines:vent"}
Number     MA_etat_inondation         "Inondation [%s]"           <oh:meteofrance:inondation>         (gMeteoAlert)   {channel="meteofrance:department:yvelines:inondation"}
Number     MA_etat_orage              "Orage [%s]"                <oh:meteofrance:orage>              (gMeteoAlert)   {channel="meteofrance:department:yvelines:orage"}
Number     MA_etat_avalanche          "Avalanches [%s]"           <oh:meteofrance:avalanches>         (gMeteoAlert)   {channel="meteofrance:department:yvelines:avalanches"}
    
Image      MA_icon_canicule           "Canicule"                  <oh:meteofrance:canicule>           (gMeteoAlert)   {channel="meteofrance:department:yvelines:canicule-icon"}
Image      MA_icon_grand_froid        "Grand Froid"               <oh:meteofrance:grand-froid>        (gMeteoAlert)   {channel="meteofrance:department:yvelines:grand-froid-icon"}
Image      MA_icon_pluie_inondation   "Pluie-Inondation"          <oh:meteofrance:pluie-inondation>   (gMeteoAlert)   {channel="meteofrance:department:yvelines:pluie-inondation-icon"}
Image      MA_icon_neige              "Neige"                     <oh:meteofrance:neige>              (gMeteoAlert)   {channel="meteofrance:department:yvelines:neige-icon"}
Image      MA_icon_vent               "Vent"                      <oh:meteofrance:vent>               (gMeteoAlert)   {channel="meteofrance:department:yvelines:vent-icon"}
Image      MA_icon_inondation         "Inondation"                <oh:meteofrance:inondation>         (gMeteoAlert)   {channel="meteofrance:department:yvelines:inondation-icon"}
Image      MA_icon_orage              "Orage"                     <oh:meteofrance:orage>              (gMeteoAlert)   {channel="meteofrance:department:yvelines:orage-icon"}
Image      MA_icon_avalanche          "Avalanche"                 <oh:meteofrance:avalanches>         (gMeteoAlert)   {channel="meteofrance:department:yvelines:avalanches-icon"}
    
DateTime   MA_ObservationTS           "Timestamp [%1$tH:%1$tM]"   <time>                              (gMeteoAlert)   {channel="meteofrance:department:yvelines:observation-time"}

Number     Intensite_Pluie          "Intensité Pluie"            <oh:meteofrance:intensity>           (gMeteoAlert)  {channel="meteofrance:rain-forecast:yvelines:intensity" }

jdbc.persist:

java

Items {
   * : strategy = everyChange
   Intensite_Pluie : strategy = forecast
}