Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue


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 navigateur, on vous conseille d'utiliser le "Copier en texte brut" de votre navigateur => raccourci = Ctrl+Maj+V



Code Block
languageyml
{
    "usersgrids"         : [
        {
            "owner_user": {}
        },
nb_tiles_in_width"       "grids"         : [
        {60,
            "nb_tiles_in_widthheight"              : 60120,
            "nbseparation_tilesgrid_inelement_heightmax"             : 120,
            "separation_grid_element_max"    : : 10,
            "separation_grid_element_min"    : 3,
            "separation_grid_element_percent": 0.5,
            "type"                           : "grid",
            "grid_elements"                  : [
                {
                    "position_x": 0,
                    "position_y": 0,
                    "width"     : "all",
                    "height"    : 23,
                    "content"   : {
                        "type" : "title_widget", 
						"layout"                        "title": "MON TITRE"
                    }
                }, {: {
							"information_to_display" : {
								"title_area" : {
									"label" : "Test",
									"text_color" : "black",
	   							    "font_zoom_percent" : "default"
								}
							}
						}
                     }
                    "}, 
				{
					"position_x" : 0,
                    					"position_y" : 23,
					"width"                    "width"     : "all",
                    "height"    : 2,
                    "content"   : {
                        "type"                   : "separator_widget",
                        "title"                  : "MON SEPARATEUR",
                        "text_color"             : "black",
                        "start_zone_text_percent": "20",
: "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"
								}
							}
						}
					}
				}, 
				{
                    "position_x": 0,
   "end_zone_text_percent"  : "20",
              "position_y": 5,
         "text_align"             : "centerwidth"
     : 15,
              }
      "height"    : 5,
     }, {
              "content"   :   "position_x": 0{
						"type": "weather_widget",
                        "item": {
       "position_y": 4,
                    "widthitem_name": "Le nom de mon : 15hote",
                    "height"    : 5,
                    "content"   : {"item_type": "host"
                        "item": {
                            "item_name": "Le nom de mon hote",
                            "item_type": "host"
                        },
                        "type": "weather_widget"
                    }
                }, {
   },
						"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"
								}
							}
						}
					}
                 "position_x": 15,}, 
				{
                    "position_yx": 415,
                    "width"     position_y": 155,
                    "heightwidth"     : 515,
 "content": {
                  "height"    : 5, "item"   
					"content": {
					"type": "weather_widget",                          
					"item"   : {
                            "item_type": "cluster",
                            "item_uuid": "00000000000000000000000000000001"
                        }, "type": "weather_widget"
                    },
				 	"layout" : {
						"background" : "default",
					 	"information_to_display" : {
							"left_area"        }
            ],
            "layouts"                        : {
                "weather_widget_layout"  : {
                    "content": {
                        "property_used_as_name": "visualization_name",
                        "state_icon"           : "status_then_context", 
                        "background"           : "context_and_status",
                        "display_sla"          : true
                    }
                },
                "title_widget_layout"    : {
                    "content": {
                        "text_color": "black"
                    }
                },
                "separator_widget_layout": {
                    "content": {
                        "text_color": "black"
                    }
                }
            }
        }
    ],
    "external_links": {
        "links__default_external_part_url"    : "external_default_json",
        "links__default_authentication_needed": true,
        "links__default_info_bar"             : {
            "refresh"         : {
                "chrono_displayed"         : true,
                "generation_time_displayed": true
            },
            "position"        : "top",
            "background_color": "#343434",
            "logo_displayed"  : true
        },
        "links"                               : [
            {
                "authentication_needed" : true,
                "link_name"             : "Lien 1",
                "link_uuid"             : "e214ce6ac1580cef86ddf7479ba9bf1d",
                "link_external_part_url": "external_link_json",
                "info_bar"              : {
                    "refresh"         : {
                        "chrono_displayed"         : true,
                        "generation_time_displayed": false
                    },
                    "position"        : "top",
                    "background_color": "#343434",
                    "logo_displayed"  : true: {
								"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"
							}
						}
					}
                }
            }]
        ]}
    ]
}
}


Le Json d'exemple comporte :



Panel

Image Modified