Concept

Le format et l'apparence des widgets peuvent être prédéfinis pour l'ensemble de vos météos ( voir la page Configurer la grille - Édition JSON - Météo ) .

Cette partie permet de définir les valeurs utilisées quand un champ de configuration n'est pas défini ( voir le chapitre Configurer un widget - Édition JSON - Météo  ).

Configuration

La configuration de la disposition par défaut des widgets se trouve par défaut dans le fichier :

  • /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg

Il y a aussi un exemple de configuration dans :

  • /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg

Exemple de fichier de configuration

    # ─────────────────────────────────────────────────────────────────────────────────────────────────────── #
    # This comment is used by Shinken to recognize this file, please do not edit or remove it.
    # If done so, several parts of Shinken, like sanitize, may not work properly.
    # __OVERRIDE_TYPE__ webui_module_service_weather__default_widgets_layout
    # ─────────────────────────────────────────────────────────────────────────────────────────────────────── #

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ───────────────────────────────    DEFAULT WEATHER WIDGET LAYOUT    ─────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─── NOTE: Change these parameters to customize the default weather widget layout                      ───

    # ─────────────────────  NAME AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option selects what name will be used in weather widget layout.                              ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : item_name ( Will use the field "host_name" for host and cluster )                 ───
    #           Default : visualisation_name ( Will use the field "visualisation_name" )                    ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__property_used_as_name visualisation_name

    # ─── This option allows you to choose the number of lines maximum on which the name can be displayed.  ───
    # ─── In any case if the name is too long, it will be cut. Three small dots will be added.              ───
    #                                                                                                       ───
    #           Default : 2                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__nb_lines_max 2

    # ─── This option allows you to choose the vertical alignment preference for the name area.             ───
    #                                                                                                       ───
    #           ...     : bottom ( Name will be align on the bottom )                                       ───
    #           Default : middle ( Name will be align on the middle )                                       ───
    #           ...     : top ( Name will be align on the top )                                             ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__vertical_align middle

    # ─── This option allows you to zoom the font ( in or out ) the name area.                              ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__font_zoom_percent 100

    # ─────────────────────  LEFT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the information that will be in the left area.                   ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : context_then_status       ( context on big icon, status on small icon. )          ───
    #           Default : status_context_from_webui ( Use the WebUI configuration. )                        ───
    #           ...     : only_status               ( status on big icon, context is not display. )         ───
    #           ...     : quality_service_icon      ( The quality of service indicator. )                   ───
    #           ...     : sla_tendency              ( SLA trend arrow. )                                    ───
    #           ...     : status_then_context       ( status on big icon, context on small icon. )          ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__left_area__icon_type status_context_from_webui

    # ───────────────────  TOP RIGHT AREA  ────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the information that will be shown in the top right area.       ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           Default : 0                                                                                 ───
    #           ...     : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__displayed 0

    # ─── This option allows you to choose the information that will be in the top right area.              ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : context_then_status        ( context on big icon, status on small icon. )         ───
    #           ...     : status_context_from_webui  ( Use the WebUI configuration. )                       ───
    #           ...     : only_status                ( status on big icon, context is not display. )        ───
    #           Default : quality_service_icon       ( The quality of service indicator. )                  ───
    #           ...     : status_then_context        ( status on big icon, context on small icon. )         ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__icon_type quality_service_icon

    # ──────────────────────  SLA AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the information that will be shown in the sla area.             ───
    # ─── Not displaying SLA information will free MongoDB resources.                                       ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__displayed 1

    # ─── This option allows you to choose the display of the SLA icons.                                    ───
    #                                                                                                       ───
    #           Default : 0                                                                                 ───
    #           ...     : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__show_icon 0

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to select how the background color is set.                                 ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           Default : status_context_from_webui  ( Use the WebUI configuration. )                       ───
    #           ...     : context_then_status        ( Use the context (if present) else the status. )      ───
    #           ...     : context_and_status         ( Use the context  color and the status. )             ───
    #           ...     : only_status                ( Use the only status. )                               ───
    #           ...     : no_background              ( The background will be blank. )                      ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__background status_context_from_webui

    # ─── This option allows you to choose the default size the weather widget.                             ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : 15,4 ( width:15 height:4 )                                                        ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__size 15,4

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ──────────────────────────────    DEFAULT SEPARATOR WIDGET LAYOUT    ────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─────────────────────  LEFT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the left area of the separator widget.                          ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__displayed 1

    # ─── This option allows you to choose the width percent of left area.                                  ───
    # ─── Format is in percent of the width of the widget.                                                  ───
    #                                                                                                       ───
    #           Default : 10 ( The width of the left area is 10 percent of the widget width. )              ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__width_percent 10

    # ─────────────────────  TEXT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the text position in the zone text.                              ───
    #                                                                                                       ───
    #           Default : center ( text will be centred )                                                   ───
    #           ...     : left ( text will be align on the left )                                           ───
    #           ...     : right ( text will be align on the right )                                         ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_align center

    # ─── This option allows you to choose the default color of the text in title area.                     ───
    # ─── The value format is a web colors ( css color ) see https://en.wikipedia.org/wiki/Web_colors       ───
    #                                                                                                       ───
    #           Default : #000000 ( black )                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_color #000000

    # ─── This option allows you to zoom the font ( in or out ) of the label.                               ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__font_zoom_percent 100

    # ─────────────────────  RIGHT AREA  ──────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the right area of the separator widget.                         ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__displayed 1

    # ─── This option allows you to choose the width percent of right area.                                 ───
    # ─── Format is in percent of the width of the widget.                                                  ───
    #                                                                                                       ───
    #           Default : 10 ( The width of the right area is 10 percent of the widget width. )             ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__width_percent 10

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default size the separator widget.                           ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : all,2 ( width:all height:2 )                                                      ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__size all,2

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ────────────────────────────────    DEFAULT TITLE WIDGET LAYOUT    ──────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─────────────────────  TEXT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default color of the text in title widget.                   ───
    # ─── The value format is a web colors ( css color ) see https://en.wikipedia.org/wiki/Web_colors       ───
    #                                                                                                       ───
    #           Default : #000000 ( black )                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_color #000000

    # ─── This option allows you to zoom the font ( in or out ) of the label.                               ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__font_zoom_percent 100

    # ─── This option allows you to choose the text position in the zone text.                              ───
    #                                                                                                       ───
    #           Default : left ( text will be align on the left )                                           ───
    #           ...     : center ( text will be centred )                                                   ───
    #           ...     : right ( text will be align on the right )                                         ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_align left

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default size the title widget.                               ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : all,3 ( width:all height:3 )                                                      ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__size all,5



La configuration décrite ci-dessous n'est que la configuration par défaut, il est tout à fait possible de modifier la disposition des widgets pour chaque météo.

Détails des sections composant le fichier de configuration


Disposition par défaut des widgets titre

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ────────────────────────────────    DEFAULT TITLE WIDGET LAYOUT    ──────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─────────────────────  TEXT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default color of the text in title widget.                   ───
    # ─── The value format is a web colors ( css color ) see https://en.wikipedia.org/wiki/Web_colors       ───
    #                                                                                                       ───
    #           Default : #000000 ( black )                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_color #000000

    # ─── This option allows you to zoom the font ( in or out ) of the label.                               ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__font_zoom_percent 100

    # ─── This option allows you to choose the text position in the zone text.                              ───
    #                                                                                                       ───
    #           Default : left ( text will be align on the left )                                           ───
    #           ...     : center ( text will be centred )                                                   ───
    #           ...     : right ( text will be align on the right )                                         ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_align left

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default size the title widget.                               ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : all,3 ( width:all height:3 )                                                      ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_title_widget_layout__size all,5

Nom

Type

Unité

Défaut

Commentaire

broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_color

Texte

---

#000000

Cette option permet de choisir la couleur par défaut du texte dans le widget titre.

Le format de la valeur est une couleur web ( Voir :  https://en.wikipedia.org/wiki/Web_colors  )

broker__module_webui__module_service_weather__default_title_widget_layout__title_area__font_zoom_percent
Entier positif% 100

Zoom en pourcentage de la taille de la police.

Doit être supérieur à  0

Une valeur de 200 affiche un texte deux fois plus gros

Une valeur de 50 affiche un texte deux fois plus petit

 broker__module_webui__module_service_weather__default_title_widget_layout__title_area__text_align 
Texte---left

Cette option permet de choisir l'alignement du texte.
Valeurs possibles :

  • left ( alignement à gauche );
  • center ( alignement au centre );
  • right ( alignement à droite );
broker__module_webui__module_service_weather__default_title_widget_layout__size
Taille--- all,3

Cette option permet de choisir la taille par défaut du widget titre. 
Le format est LARGEUR,HAUTEUR.

La taille est en nombre de cases.
La valeur "all" en largeur fait que le widget prend toute la largeur.  

Disposition par défaut des widgets séparateur

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ──────────────────────────────    DEFAULT SEPARATOR WIDGET LAYOUT    ────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─────────────────────  LEFT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the left area of the separator widget.                          ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__displayed 1

    # ─── This option allows you to choose the width percent of left area.                                  ───
    # ─── Format is in percent of the width of the widget.                                                  ───
    #                                                                                                       ───
    #           Default : 10 ( The width of the left area is 10 percent of the widget width. )              ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__width_percent 10

    # ─────────────────────  TEXT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the text position in the zone text.                              ───
    #                                                                                                       ───
    #           Default : center ( text will be centred )                                                   ───
    #           ...     : left ( text will be align on the left )                                           ───
    #           ...     : right ( text will be align on the right )                                         ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_align center

    # ─── This option allows you to choose the default color of the text in title area.                     ───
    # ─── The value format is a web colors ( css color ) see https://en.wikipedia.org/wiki/Web_colors       ───
    #                                                                                                       ───
    #           Default : #000000 ( black )                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_color #000000

    # ─── This option allows you to zoom the font ( in or out ) of the label.                               ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__font_zoom_percent 100

    # ─────────────────────  RIGHT AREA  ──────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the right area of the separator widget.                         ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__displayed 1

    # ─── This option allows you to choose the width percent of right area.                                 ───
    # ─── Format is in percent of the width of the widget.                                                  ───
    #                                                                                                       ───
    #           Default : 10 ( The width of the right area is 10 percent of the widget width. )             ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__width_percent 10

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the default size the separator widget.                           ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : all,2 ( width:all height:2 )                                                      ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_separator_widget_layout__size all,2
 

Nom

Type

Unité

Défaut

Commentaire

broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__displayed
Entier positif--- 1

Affichage ou non de la zone de gauche : 

  • 1 = Affiché
  • 0 = Caché
broker__module_webui__module_service_weather__default_separator_widget_layout__left_area__width_percent
Entier positif% 10

Taille en pourcentage de la largeur de la zone de gauche.

Doit être compris entre 0 et 100

broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_align
Texte--- center

Cette option permet de choisir la position du texte dans la zone texte définie. ( zone restant entre start_zone_text_percent et end_zone_text_percent )

Valeurs possibles : 

  • center : affiché au milieu
  • left : affiché vers la gauche
  • right : affiché vers la droite
broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__text_color

Texte

---

#000000

Cette option permet de choisir la couleur par défaut du texte dans le widget séparateur.

Le format de la valeur est une couleur web ( Voir :  https://en.wikipedia.org/wiki/Web_colors  )


broker__module_webui__module_service_weather__default_separator_widget_layout__title_area__font_zoom_percent
Entier positif% 100

Zoom en pourcentage de la taille de la police.

Doit être supérieur à  0

Une valeur de 200 affiche un texte deux fois plus gros

Une valeur de 50 affiche un texte deux fois plus petit

broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__displayed
Entier positif--- 1

Affichage ou non de la zone de droite :

  • 1 = Affiché
  • 0 = Caché
broker__module_webui__module_service_weather__default_separator_widget_layout__right_area__width_percent
Entier positif% 10

Taille en pourcentage de la largeur de la zone de gauche.

Doit être compris entre 0 et 100

broker__module_webui__module_service_weather__default_separator_widget_layout__size
Taille--- all,2

Cette option permet de choisir la taille par défaut du widget séparateur. 
Le format est LARGEUR,HAUTEUR.

La taille est en nombre de cases.
La valeur "all" en largeur fait que le widget prend toute la largeur.


Disposition par défaut des widgets météo

    # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
    # │ ───────────────────────────────    DEFAULT WEATHER WIDGET LAYOUT    ─────────────────────────────── │ #
    # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #

    # ─── NOTE: Change these parameters to customize the default weather widget layout                      ───

    # ─────────────────────  NAME AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option selects what name will be used in weather widget layout.                              ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : item_name ( Will use the field "host_name" for host and cluster )                 ───
    #           Default : visualisation_name ( Will use the field "visualisation_name" )                    ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__property_used_as_name visualisation_name

    # ─── This option allows you to choose the number of lines maximum on which the name can be displayed.  ───
    # ─── In any case if the name is too long, it will be cut. Three small dots will be added.              ───
    #                                                                                                       ───
    #           Default : 2                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__nb_lines_max 2

    # ─── This option allows you to choose the vertical alignment preference for the name area.             ───
    #                                                                                                       ───
    #           ...     : bottom ( Name will be align on the bottom )                                       ───
    #           Default : middle ( Name will be align on the middle )                                       ───
    #           ...     : top ( Name will be align on the top )                                             ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__vertical_align middle

    # ─── This option allows you to zoom the font ( in or out ) the name area.                              ───
    # ─── Format is in percent.                                                                             ───
    #                                                                                                       ───
    #           Default : 100 ( no zoom )                                                                   ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__font_zoom_percent 100

    # ─────────────────────  LEFT AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to choose the information that will be in the left area.                   ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : context_then_status       ( context on big icon, status on small icon. )          ───
    #           Default : status_context_from_webui ( Use the WebUI configuration. )                        ───
    #           ...     : only_status               ( status on big icon, context is not display. )         ───
    #           ...     : quality_service_icon      ( The quality of service indicator. )                   ───
    #           ...     : sla_tendency              ( SLA trend arrow. )                                    ───
    #           ...     : status_then_context       ( status on big icon, context on small icon. )          ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__left_area__icon_type status_context_from_webui

    # ───────────────────  TOP RIGHT AREA  ────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the information that will be shown in the top right area.       ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           Default : 0                                                                                 ───
    #           ...     : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__displayed 0

    # ─── This option allows you to choose the information that will be in the top right area.              ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : context_then_status        ( context on big icon, status on small icon. )         ───
    #           ...     : status_context_from_webui  ( Use the WebUI configuration. )                       ───
    #           ...     : only_status                ( status on big icon, context is not display. )        ───
    #           Default : quality_service_icon       ( The quality of service indicator. )                  ───
    #           ...     : status_then_context        ( status on big icon, context on small icon. )         ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__icon_type quality_service_icon

    # ──────────────────────  SLA AREA  ───────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to display the information that will be shown in the sla area.             ───
    # ─── Not displaying SLA information will free MongoDB resources.                                       ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           ...     : 0                                                                                 ───
    #           Default : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__displayed 1

    # ─── This option allows you to choose the display of the SLA icons.                                    ───
    #                                                                                                       ───
    #           Default : 0                                                                                 ───
    #           ...     : 1                                                                                 ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__show_icon 0

    # ──────────────────────  GENERAL  ────────────────────────────────────────────────────────────────────── #

    # ─── This option allows you to select how the background color is set.                                 ───
    # ─── Possible values are :                                                                             ───
    #                                                                                                       ───
    #           Default : status_context_from_webui  ( Use the WebUI configuration. )                       ───
    #           ...     : context_then_status        ( Use the context (if present) else the status. )      ───
    #           ...     : context_and_status         ( Use the context  color and the status. )             ───
    #           ...     : only_status                ( Use the only status. )                               ───
    #           ...     : no_background              ( The background will be blank. )                      ───
    # ───                                                                                                   ───
    # ─── The status_context_from_webui value will use the value "tiles_background" from WebUI              ───
    # ─── Mapping of the tiles_background values will be :                                                  ───
    # ───            -> context            : context_then_status                                            ───
    # ───            -> context_and_status : context_and_status                                             ───
    # ───            -> status             : only_status                                                    ───
    #                                                                                                       ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__background status_context_from_webui

    # ─── This option allows you to choose the default size the weather widget.                             ───
    # ─── Format is WIDTH,HEIGHT. Size is in number of cell.                                                ───
    # ─── Value "all" in width makes the widget take all the width.                                         ───
    #                                                                                                       ───
    #           Default : 15,4 ( width:15 height:4 )                                                        ───
    # ───                                                                                                   ───
    # broker__module_webui__module_service_weather__default_weather_widget_layout__size 15,4
 

Nom

Type

Unité

Défaut

Commentaire

broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__property_used_as_name

Texte

---

visualisation_name

Propriété des éléments utilisés pour afficher le nom sur le widget météo.

2 valeurs possibles :

NomCommentaire
item_name
Va utiliser la propriété  host_name pour les hôtes et les clusters (définie dans la configuration)
visualisation_name
Va utiliser la propriété visualisation_name (définie dans la configuration)
broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__nb_lines_max
Entier positif

---

2 Définit le nombre de lignes attendu pour l'affichage du nom avant de mettre une ellipsis
broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__vertical_align
Texte--- middle

Définit l'alignement du texte.

3 valeurs possibles :

NomCommentaire
top
Permets un affichage en haut de la zone dédiée au texte.
middle
Permets un affichage centré par rapport à la zone dédiée au texte.
bottom
Permets un affichage en bas de la zone dédiée au texte.
broker__module_webui__module_service_weather__default_weather_widget_layout__name_area__font_zoom_percent
Entier positif% 100

Zoom en pourcentage de la taille de la police.

Doit être supérieur à  0

Une valeur de 200 affiche un texte deux fois plus gros

Une valeur de 50 affiche un texte deux fois plus petit

broker__module_webui__module_service_weather__default_weather_widget_layout__left_area__icon_type
Texte--- status_context_from_webui

Cette option permet de choisir quel type d'icône sera affiché.

6 options sont disponibles :

NomCommentaire
status_context_from_webui
Utilise la configuration de la WebUI
context_then_status
L'icône du contexte sera mise en avant par rapport à celui du statut.
status_then_context
L'icône du statut sera mise en avant par rapport à celle du contexte.
only_status
Seule l'icône du statut sera affichée.
quality_service_icon
Affiche l'indicateur de qualité de service.  ( Fonctionnement: Widget Météo - Détail - Météo )
sla_tendency
Affiche la tendance SLA.

Pour la valeur status_context_from_webui on prendra la valeur du paramètre : tiles_background

Avec la correspondance suivante : 

  • context → context_then_status

  • context_and_status → context_then_status

  • status → status_then_context 


broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__displayed
Entier positif--- 0

Définit si la zone en haut à droite est affichée :

  • 1 = Affiché
  • 0 = Caché
broker__module_webui__module_service_weather__default_weather_widget_layout__top_right_area__icon_type
Texte--- quality_service_icon

Cette option permet de choisir quel type d'icône sera affiché.

5 options sont disponibles : 

NomCommentaire
status_context_from_webui
Utilise la configuration de la WebUI
context_then_status
L'icône du contexte sera mise en avant par rapport à celui du statut.
status_then_context
L'icône du statut sera mise en avant par rapport à celle du contexte.
only_status
Seule l'icône du statut sera affichée.
quality_service_icon
Affiche l'indicateur de qualité de service. ( Fonctionnement: Widget Météo - Détail - Météo )

Pour la valeur status_context_from_webui on prendra la valeur du paramètre : tiles_background

Avec la correspondance suivante : 

  • context → context_then_status

  • context_and_status → context_then_status

  • status → status_then_context 


broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__displayed
Entier positif--- 1

Définit si la zone SLA est affichée :

  • 1 = Affiché
  • 0 = Caché
broker__module_webui__module_service_weather__default_weather_widget_layout__sla_area__show_icon
Entier positif--- 0

Définit si l'icône SLA est affiché dans la zone SLA :

  • 1 = Affiché
  • 0 = Caché
broker__module_webui__module_service_weather__default_weather_widget_layout__background
Texte--- status_context_from_webui

Cette option permet de choisir le type d'affichage de la couleur de fond d'un widget météo.

5 options sont disponibles :

NomCommentaire
status_context_from_webui
Utilise la configuration de la WebUI
context_then_status
Utilise la couleur du contexte. S’il n'y a pas de contexte, la couleur du statut sera utilisée.
context_and_status
Utilise la couleur du contexte et du statut. S’il n'y a pas de contexte, la couleur du statut sera utilisée.
only_status
Utilise la couleur du statut seulement
no_background
Aucune couleur de fond ne sera affichée
broker__module_webui__module_service_weather__default_weather_widget_layout__size
Taille--- 15,4

Cette option permet de choisir la taille par défaut du widget météo. 
Le format est LARGEUR,HAUTEUR.

La taille se définit en nombre de cases.
La valeur "all" en largeur permet à un widget prend toute la largeur de la grille.