diff --git a/bundles/org.openhab.binding.meteoalerte/README.md b/bundles/org.openhab.binding.meteoalerte/README.md index 160820015b2b2..7af859b6fd8ce 100644 --- a/bundles/org.openhab.binding.meteoalerte/README.md +++ b/bundles/org.openhab.binding.meteoalerte/README.md @@ -1,6 +1,7 @@ # Meteo Alerte Binding The Meteo Alerte binding gives alert level regarding major weather related risk factors. +This binding provides its own icon set and provides appropriate static and dynamic SVG icons (see items examples below). ## Supported Things @@ -58,6 +59,24 @@ The Météo Alerte information that are retrieved is available as these channels | 2 | Orange | Be "very vigilant" in the concerned areas | | 3 | Red | Absolute vigilance required | +## Provided icon set + +This binding has its own IconProvider and makes available the following list of icons + +| Icon Name | Dynamic | Illustration | +|---------------------------------|---------|--------------| +| oh:meteoalerte:vent | Yes | ![](src/main/resources/icon/vent.svg) | +| oh:meteoalerte:pluie-inondation | Yes | ![](src/main/resources/icon/pluie-inondation.svg) | +| oh:meteoalerte:orage | Yes | ![](src/main/resources/icon/orage.svg) | +| oh:meteoalerte:inondation | Yes | ![](src/main/resources/icon/inondation.svg) | +| oh:meteoalerte:neige | Yes | ![](src/main/resources/icon/neige.svg) | +| oh:meteoalerte:canicule | Yes | ![](src/main/resources/icon/canicule.svg) | +| oh:meteoalerte:grand-froid | Yes | ![](src/main/resources/icon/grand-froid.svg) | +| oh:meteoalerte:avalanches | Yes | ![](src/main/resources/icon/avalanches.svg) | +| oh:meteoalerte:vague-submersion | Yes | ![](src/main/resources/icon/vague-submersion.svg) | +| oh:meteoalerte:meteo_france | No | ![](src/main/resources/icon/meteo_france.svg) | + + ## Full Example meteoalert.things: @@ -69,26 +88,26 @@ Thing meteoalerte:department:yvelines @ "MyCity" [department="YVELINES", refresh meteoalert.items: ```java -Group gMeteoAlert "Alertes Météo" - String MA_Dept78 "Département 78 [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:comment"} - Number MA_etat_canicule "Canicule [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:canicule"} - Number MA_etat_grand_froid "Grand Froid [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:grand-froid"} - Number MA_etat_pluie_inondation "Pluie-Inondation [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:pluie-inondation"} - Number MA_etat_neige "Neige [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:neige"} - Number MA_etat_vent "Vent [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:vent"} - Number MA_etat_inondation "Inondation [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:inondation"} - Number MA_etat_orage "Orage [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:orage"} - Number MA_etat_avalanche "Avalanches [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:avalanches"} +Group gMeteoAlert "Alertes Météo" +String MA_Dept78 "Département 78 [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:comment"} +Number MA_etat_canicule "Canicule [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:canicule"} +Number MA_etat_grand_froid "Grand Froid [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:grand-froid"} +Number MA_etat_pluie_inondation "Pluie-Inondation [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:pluie-inondation"} +Number MA_etat_neige "Neige [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:neige"} +Number MA_etat_vent "Vent [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:vent"} +Number MA_etat_inondation "Inondation [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:inondation"} +Number MA_etat_orage "Orage [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:orage"} +Number MA_etat_avalanche "Avalanches [%s]" (gMeteoAlert) {channel="meteoalerte:department:yvelines:avalanches"} - Image MA_icon_canicule "Canicule" (gMeteoAlert) {channel="meteoalerte:department:yvelines:canicule-icon"} - Image MA_icon_grand_froid "Grand Froid" (gMeteoAlert) {channel="meteoalerte:department:yvelines:grand-froid-icon"} - Image MA_icon_pluie_inondation "Pluie-Inondation" (gMeteoAlert) {channel="meteoalerte:department:yvelines:pluie-inondation-icon"} - Image MA_icon_neige "Neige" (gMeteoAlert) {channel="meteoalerte:department:yvelines:neige-icon"} - Image MA_icon_vent "Vent" (gMeteoAlert) {channel="meteoalerte:department:yvelines:vent-icon"} - Image MA_icon_inondation "Inondation" (gMeteoAlert) {channel="meteoalerte:department:yvelines:inondation-icon"} - Image MA_icon_orage "Orage" (gMeteoAlert) {channel="meteoalerte:department:yvelines:orage-icon"} - Image MA_icon_avalanche "Avalanche" (gMeteoAlert) {channel="meteoalerte:department:yvelines:avalanches-icon"} +Image MA_icon_canicule "Canicule" (gMeteoAlert) {channel="meteoalerte:department:yvelines:canicule-icon"} +Image MA_icon_grand_froid "Grand Froid" (gMeteoAlert) {channel="meteoalerte:department:yvelines:grand-froid-icon"} +Image MA_icon_pluie_inondation "Pluie-Inondation" (gMeteoAlert) {channel="meteoalerte:department:yvelines:pluie-inondation-icon"} +Image MA_icon_neige "Neige" (gMeteoAlert) {channel="meteoalerte:department:yvelines:neige-icon"} +Image MA_icon_vent "Vent" (gMeteoAlert) {channel="meteoalerte:department:yvelines:vent-icon"} +Image MA_icon_inondation "Inondation" (gMeteoAlert) {channel="meteoalerte:department:yvelines:inondation-icon"} +Image MA_icon_orage "Orage" (gMeteoAlert) {channel="meteoalerte:department:yvelines:orage-icon"} +Image MA_icon_avalanche "Avalanche" (gMeteoAlert) {channel="meteoalerte:department:yvelines:avalanches-icon"} - DateTime MA_ObservationTS "Timestamp [%1$tH:%1$tM]"