| 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 navigateur, on vous conseille d'utiliser le "Copier en texte brut" de votre navigateur => raccourci = Ctrl+Maj+V |
| Code Block | ||
|---|---|---|
| ||
{
"grids" : [
{
"nb_tiles_in_width" : 60,
"nb_tiles_in_height" : 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" : 3,
"content" : {
"type" : "title_widget",
"layout" : {
"information_to_display" : {
"title_area" : {
"label" : "Test",
"text_color" : "black",
"font_zoom_percent" : "default"
}
}
}
} "information_to_display" : {
},
{
"position_x" : 0,
"position_y "title_area" : 3,
"width{
"label" : "allTest",
"height" : 2,
"content" : {
"type "text_color" : "separator_widgetblack",
"layout" : {
"information_to_display" : {
"left_area" : {
"displayed" : "true",
"width "text_align" : "default",
"font_zoom_percent" : "20"
},
"title_area" : {
"text_color" : "black",
"text_align" : "center",
"label" : "MON SEPARATEUR",
"font_zoom_percent" : "default"
},
"right_area" : {
"displayed" : "true",
"width_percent" : "20"
}
}
}
}
},
{
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" : "00000000000000000000000000000001",
"item_name" : "Le nom de mon hote",
"item_type" : "host"
},
"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_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"
}
}
}
}
},
"title_widget_layout" : {
"width" : "default",
"height" : "default",
"content" : {
"layout" : {
"information_to_display" : {
"title_area" : {
"text_color" : "default",
"text_align" : "default",
"positionfont_zoom_xpercent" : 0, "default"
}
"position_y": 5,
}
}
"width" : 15,
}
"height" : 5,}
}
"content"}
: {
"type": "weather_widget",
"item": {],
"external_links" : {
"links__default_link_protocol" : "default",
"links__default_base_url" : "default",
"links__default_external_part_url" : "default",
"item_name"links__default_authentication_needed" : "Le nom de mon hotedefault",
"links__default_info_bar" : {
"itembackground_typecolor" : "hostdefault",
"logo_displayed" : "default",
},
"layout" : {
"background"position" : "default",
"information_to_display" : {
"left_area "refresh" : {
"icon_type "chrono_displayed" : "default"
},
,
"top_right_area" : {
" "generation_time_displayed" : "default",
"icon_type" : "default"
},
"sla_area" : {
"displayed" : "default",
"show_icon" : "default"
},
"name_area" : {
"property_used_as_
},
"links" : [
{
"link_name" : "default",
Le nom de mon lien externe",
"nblink_lines_maxuuid" : "default",
"vertical_align "link_protocol" : "default",
"font_zoom_percent "link_base_url" : "default"
}
}
}
},
},
{
"link_external_part_url" : "default",
"authentication_needed" : "true",
"positioninfo_xbar" : 15,{
"positionbackground_ycolor" : 5"default",
"width" logo_displayed" : 15"default",
"heightposition" : "default",
: 5,
"content": {
"type": "weather_widget",
"item" "refresh" : {
"itemchrono_typedisplayed" : "clusterdefault",
"itemgeneration_time_uuiddisplayed" : "00000000000000000000000000000001default"
},
"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"
}
}
}
}
}
]
},
"users" : {
"owner_user" : {
"user_name" : "Le nom du propriétaire actuel",
"user_uuid" : ""
},
"previous_owner_user" : {
"user_name" : "Le nom du précédent propriétaire",
"user_uuid" : ""
},
"creator_user" : {
"user_name" : "Le nom du créateur de }
}
la météo",
"user_uuid" : ]""
}
]}
}
|
Le JSON d'exemple comporte :
- 4 widgets :
- Un widget Titre "MON TITRE"
( pour plus d'informations vous référez à la page Widget Titre - Edition - Météo ) - Un widget Séparateur "MON SEPARATEUR"
( pour plus d'informations vous référez à la page Widget Séparateur - Edition - Météo ) - Deux widgets Météos qui ont bien sûr un problème, car vous n'avez pas d'hôte qui se nomme "Le nom de mon hote" ou un cluster avec un identifiant = "00000000000000000000000000000001qui se nomme "Le nom de mon cluster"
( pour plus d'informations vous référez à la page Widget Météo - Edition - Météo )
- Un widget Titre "MON TITRE"
- 1 lien :
- Lien 1, qui nécessite d'être authentifié pour y accéder
( pour plus d'informations vous référez à la page L'Edition - Météo )
- Lien 1, qui nécessite d'être authentifié pour y accéder
| Panel |
|---|