Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Make by tools (01.00.01) - action=clean_macro_parameter
Scroll Ignore
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-htmlfalse
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse
Panel
titleSommaire

Table of Contents
stylenone

Présentation

Voici un exemple de la structure JSON de la configuration de la météo.


Note

Certains copier-coller peuvent ne pas fonctionner correctement ( problème de format d'origine, encodage des espaces et des retours à la ligne, etc. )

Pour coller sur le formulaire du navigateur, il est conseillé d'utiliser le "Copier en texte brut" du navigateur ( raccourci = Ctrl+Maj+V )

Code Block
languagejsbash
themeConfluenceRDark
{
    "grids"         : [
        {
            "nb_tiles_in_width"              : 60,
            "nb_tiles_in_height"             : 120,
            "separation_grid_element_min"    : 3,
            "separation_grid_element_max"    : 10,
            "separation_grid_element_percent": 0.5,
            "type"                           : "grid",
            "grid_elements"                  : [
                {
                    "position_x": 0,
                    "position_y": 0,
                    "width"     : "all",
                    "height"    : 3,
                    "content"   : {
                        "type"  : "title_widget",
                        "layout": {
                            "information_to_display": {
                                "title_area": {
                                    "label"            : "MON TITRE",
                                    "text_color"       : "black",
                                    "text_align"       : "default",
                                    "font_zoom_percent": "default"
                                }
                            }
                        }
                    }
                },
                {
                    "position_x": 0,
                    "position_y": 3,
                    "width"     : "all",
                    "height"    : 2,
                    "content"   : {
                        "type"  : "separator_widget",
                        "layout": {
                            "information_to_display": {
                                "left_area" : {
                                    "displayed"    : true,
                                    "width_percent": 20
                                },
                                "title_area": {
                                    "label"            : "MON SEPARATEUR",
                                    "font_zoom_percent": "default",
                                    "text_color"       : "black",
                                    "text_align"       : "center"
                                },
                                "right_area": {
                                    "displayed"    : true,
                                    "width_percent": 20
                                }
                            }
                        }
                    }
                },
                {
                    "position_x": 0,
                    "position_y": 5,
                    "width"     : 15,
                    "height"    : 5,
                    "content"   : {
                        "type"  : "weather_widget",
                        "item"  : {
                            "item_uuid": "0000000000000000000000000000000110000000000000100000000000000001",
                            "item_name": "Le nom de mon hote",
                            "item_type": "host"
                        },
                    }
    "layout": {
            },
                "background"{
            : "default",
       "position_x": 15,
                    "informationposition_to_displayy": {5,
                    "width"     : 15,
      "left_area"     : {
        "height"    : 5,
                    "content"   "icon_type": "default"{
                                }"type": "weather_widget",
                                "top_right_area"item": {
                                    "displayed"item_uuid": "default10000000000000100000000000000002",
                                    "icon_type"item_name": "default"
   Le nom de mon cluster",
                             },"item_type": "cluster"
                         }
       "sla_area"      : {
      }
                }
              "displayed": "default",]
        }
    ],
    "external_links": {
        "links": [
           "show_icon": "default" {
                "link_name"             : "Lien  }01",
                "link_uuid"             :   "name_area""49872e4e-ffee-7084-fb91-b52346c3dcca",
     : {
          "link_protocol"         : "default",
                "propertylink_used_as_name": "default",
                                    "nb_lines_max"         : "default",
                                    "vertical_align"       : "default",
                                    "font_zoom_percent"    : "default"
                                }
                            }
                        }
                    }
                },
                {
                    "position_x": 15,
                    "position_y": 5,
                    "width"     : 15,
                    "height"    : 5,
                    "content"   : {
                        "type"  : "weather_widget",
                        "item"  : {
                            "item_uuid": "00000000000000000000000000000002",
                            "item_name": "Le nom de mon cluster",
                            "item_type": "cluster"
                        },
                        "layout": {
                            "background"            : "default",
                            "information_to_display": {
                                "left_area"     : {
                                    "icon_type": "default"
                                },
                                "top_right_area": {
                                    "displayed": "default",
                                    "icon_type": "default"
                                },
                                "sla_area"      : {
                                    "displayed": "default",
                                    "show_icon": "default"
                                },
                                "name_area"     : {
                                    "property_used_as_name": "default",
                                    "nb_lines_max"         : "default",
                                    "vertical_align"       : "default",
                                    "font_zoom_percent"    : "default"
                                }
                            }
                        }
                    }
                }
            ],
            "layouts"                        : {
                "weather_widget_layout"  : {
                    "width"  : "default",
                    "height" : "default",
                    "content": {
                        "layout": {
                            "background"            : "default",
                            "information_to_display": {
                                "left_area"     : {
                                    "icon_type": "default"
                                },
                                "top_right_area": {
                                    "displayed": "default",
                                    "icon_type": "default"
                                },
                                "sla_area"      : {
                                    "displayed": "default",
                                    "show_icon": "default"
                                },
                                "name_area"     : {
                                    "property_used_as_name": "default",
                                    "nb_lines_max"         : "default",
                                    "vertical_align"       : "default",
                                    "font_zoom_percent"    : "default"
                                }
                            }
                        }
                    }
                },
                "separator_widget_layout": {
                    "width"  : "default",
                    "height" : "default",
                    "content": {
                        "layout": {
                            "information_to_display": {
                                "left_area" : {
                                    "displayed"    : "default",
                                    "width_percent": "default"
                                },
                                "title_area": {
                                    "font_zoom_percent": "default",
                                    "text_color"       : "default",
                                    "text_align"       : "default"
                                },
                                "right_area": {
                                    "displayed"    : "default",
                                    "width_percent": "default"
                                }
      base_url"         : "default",
            }
    "link_external_part_url": "default",
                "authentication_needed"   }: "default",
                "info_bar"    }
          : {
     },
                "titlebackground_widget_layout"    color": {"default",
                    "widthlogo_displayed"  : "default",

                    "position"       "height" : "default",
                    "contentrefresh": {
        : {
                "layout": {
       "chrono_displayed"         : "default",
           "information_to_display": {
            "generation_time_displayed": "default"
                   "title_area": { }
                },
                "notifications"    "text_color"       : "default",{
                    "sound" : {
              "text_align"          "enabled": "default",
                    },
                "font_zoom_percent    "visual": "default"{
                        "blink": {
       }
                            }"enabled": "default"
                        }
                    }
                }
            }
        }]
    ]}
}

Le JSON d'exemple comporte :


Panel

Image Removed Image Added