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-docbookhtmltruefalse
scroll-eclipsehelpdocbooktrue
scroll-epubeclipsehelptrue
scroll-htmlepubtrue
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 de votre du navigateur, on vous conseille il est conseillé d'utiliser le "Copier en texte brut" de votre du navigateur => ( raccourci = Ctrl+Maj+V)

Code Block
languagebash
themeRDarkyml
{
    "grids"         : [
        {
            "nb_tiles_in_width"              : 60,
            "nb_tiles_in_height"             : 120,
            "separation_grid_element_maxmin"    : 103,
            "separation_grid_element_minmax"    : 310,
            "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" : "Test",
									"text_color" : "black",
	   							    "font_zoom_percent" : "default"
								}
							}
						}
                     }                                    "label"            : "MON TITRE",
                }, 
				{
					"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" : {
									"text_color" : "black",
									"text_align" : "center",
									"label" : "MON SEPARATEUR",
							 		"font_zoom_percent" : "default"
								},
								"right_area" : {
									"displayed" : "true",
									"width_percent" : "20"
								}
							}
						}
					}
				}, 
				{
                    "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": "10000000000000100000000000000001",
                            "item_name": "Le nom de mon hote",
                            "item_type": "host"
                        }
                    }
                },
                {
                    "position_x": 15,
                    "position_y": 5,
                    "width"     : 15,
                    "height"    : 5,
                    "position_x"content"   : 0,{
                        "position_ytype": 5"weather_widget",
                    "width"     "item": 15,{
                    "height"    : 5,
   "item_uuid": "10000000000000100000000000000002",
                "content"   : {
						"type": "weather_widget",
                        "item_name": { "Le nom de mon cluster",
                            "item_nametype": "Le nom de mon hote",
 cluster"
                        }
                    }
       "item_type": "host"
        }
            ]
    },
						"layout" : {
							"background" : "default",
						 	"information_to_display" : {
								"left_area" : {
									"icon_type" : "default"
								},
							}
    ],
    "external_links": {
        "top_right_area" : {
									"displayed" : "default",
								links": [
            {
                "iconlink_type"name"             : "default"
								},
							 	"sla_area" : {
									"displayed" : "default",
								 	"show_icon" : "default"
								},
							 	"name_area" : {
									"property_used_as_name"Lien 01",
                "link_uuid"             : "49872e4e-ffee-7084-fb91-b52346c3dcca",
                "link_protocol"         : "default",
								                "nblink_linesbase_maxurl"         : "default",
								 	"vertical_align" : "default",
								 	"font_zoom_percent" : "default"
								}
							}
						}
					}
                "link_external_part_url": "default",
                 }, 
				{
  "authentication_needed" : "default",
                  "positioninfo_xbar": 15,
                    "position_y": 5,{
                    "widthbackground_color"     : 15: "default",
                    "heightlogo_displayed"  : "default",
 : 5, 
					"content": {
					"type": "weather_widget",                          
					"item"  "position"        : {"default",
                    "refresh"         "item_type": "cluster",{
                        "chrono_displayed"       "item_uuid"  : "00000000000000000000000000000001default",
                         } "generation_time_displayed": "default"
                    },
				 	"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"
							}
						}
					}

                },
                "notifications"         : {
                    "sound" : {
                        "enabled": "default"
                    },
                    "visual": {
                        "blink": {
                            "enabled": "default"
                        }
                    }
            ]
    }
            }
        ]
    }
}

Le Json JSON d'exemple comporte :

  • 4 widgets :
    • Un 1 widget Titre "MON TITRE" 
      ( p our plus d'information vous référez à la page FOR-MERGE - TODEL - 002.5 - SEF-8970 -   voir la page Widget Titre - Edition Édition JSON - Météo )
      Un
    • 1 widget Séparateur "MON SEPARATEUR" 
      ( p our plus d'information vous référez à la page FOR-MERGE - TO_DEL - 002.5 - SEF-8970 - voir la pageWidget Séparateur - Edition Édition JSON - Météo )

    • Deux 2 widgets Météos qui ont bien sûr un problème, car vous il n'avez existe pas d'hôte qui se nomme "Le nom de mon hotehôte" ou un cluster avec un identifiant = "00000000000000000000000000000001"
      ( p our plus d'information vous référez à la page FOR-MERGE - TO_DEL - 002.5 - SEF-8970 - Widget Météo - Edition qui se nomme "Le nom de mon cluster"
      ( voir la page Widget Météo - Édition JSON - Météo )

  • 1 lien :


Panel
Image Removed

Image Added