| Scroll Ignore | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
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 | ||||
|---|---|---|---|---|
| ||||
{
"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" : {
"layout": {
"information_to_display" : {
"title_area" : {
"label" : "Test",
"text_color" : "black",
"font_zoom_percent" : "default"
}
}
}
}
"title_area": {
},
{
"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"
}
}
}
}
},
{
"label" : "MON TITRE",
"text_color" : "black",
"text_align" : "default",
"font_zoom_percent": "default"
}
"position_x": 0, }
"position_y": 5, }
"width"}
: 15,
},
"height" : 5,{
"content" : {
"type": "weather_widget"position_x": 0,
"item": {
"position_y": 3,
"item_namewidth": "Le nom de mon: hote"all",
"height" : 2,
"item_type": "host" "content" : {
},
"layout" : {
"background""type" : "default",
separator_widget",
"layout": {
"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"
}
}
}
}
"displayed" : true,
"width_percent": 20
},
{
},
"position_x": 15,
"positiontitle_yarea": 5,{
"width" : 15,
"label" "height" : 5,
"content": {
"type": "weather_widget",
"item" : {
"MON SEPARATEUR",
"font_zoom_percent": "default",
"item_type": "cluster",
"itemtext_uuid"color" : "00000000000000000000000000000001black",
}
"text_align" : },
"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"
}
}
}
"center"
},
"right_area": {
"displayed" : true,
"width_percent": 20
}
}
]
}
]
}
| ||||
| Code Block | ||||
| ||||
{ "grids" : [} { "nb_tiles_in_width" } : 60, } "nb_tiles_in_height" : 120}, "separation_grid_element_max" { : 10, "separation_grid_element_min" position_x": 0, : 3, "separation_grid_element_percentposition_y": 0.5, "type" "width" : 15, : "grid", "height" : "grid_elements"5, : [ "content" : { { "position_x": 0"type": "weather_widget", "position_y "item": 0,{ "width" "item_uuid": "all10000000000000100000000000000001", "height" : 3, "item_name": "Le nom de mon hote", "content" "item_type": {"host" "type"} : "title_widget", "layout" : { "information_to_display" : { "title_area" : { "label" : "Test", "text_color" : "black", "font_zoom_percent" : "default" } } } } } }, }, { "position_x" : 0, "position_yx" : 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" } } } } }, 15, "position_y": 5, "width" : 15, "height" : 5, "content" : { "position_x "type": 0"weather_widget", "position_y "item": 5, { "item_uuid": "10000000000000100000000000000002", "width" : 15, "heightitem_name": "Le nom de :mon 5cluster", "content" : { ""item_type": "weather_widgetcluster", "item": { } } "item_name": "Le nom de mon hote",} ] } ], "itemexternal_typelinks": "host"{ "links": [ { }, "layout" : { "background" : "default", "informationlink_to_displayname" : { "left_area" : { "icon_type" : "default" }, Lien 01", "toplink_right_areauuid" : { "displayed" : "default", "icon_type" : "default" }, "sla_area" : { "displayed" : "default", "show_icon" : "default" }, "name_area" : { "property_used_as_name"49872e4e-ffee-7084-fb91-b52346c3dcca", "link_protocol" : "default", "nblink_linesbase_maxurl" : "default", "vertical_align" "link_external_part_url": "default", "font_zoom_percent "authentication_needed" : "default" } } } } , "info_bar" }, : { "positionbackground_xcolor": 15"default", "positionlogo_ydisplayed" : 5"default", "widthposition" : 15"default", "height""refresh" : { : 5, "content": { "type": "weather_widget", "item"chrono_displayed" : { : "default", "itemgeneration_time_typedisplayed": "clusterdefault", } "item_uuid": "00000000000000000000000000000001" }, }, "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 d'exemple comporte :
- 4 widgets :
- Un 1 widget Titre "MON TITRE"
( pour plus d'informations vous référez à voir la page Widget Titre - Edition Édition JSON - Météo )
Un - 1 widget Séparateur "MON SEPARATEUR"
( pour plus d'informations vous référez à
( voir la page Widget 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 = "00000000000000000000000000000001qui se nomme "Le nom de mon cluster"
( p our plus d'informations vous référez à voir la page Widget Météo - Edition Édition JSON - Météo )
- Un 1 widget Titre "MON TITRE"
- 1 lien :
- Lien 101, qui nécessite d'être authentifié pour y accéder
( p our plus d'informations vous référez à la page L'Edition voir la page Édition des liens externes - Édition JSON - Météo )
- Lien 101, qui nécessite d'être authentifié pour y accéder
| Panel |
|---|
