| 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_maxmin" : 103,
"separation_grid_element_minmax" : 310,
"separation_grid_element_percent" : 0.5,
"type" : "grid",
"grid_elements" : [
{
"position_x": 0,
"position_xy" : 0,
"width": "all",
"position_yheight" : 03,
"content": {
"widthtype" : "alltitle_widget",
"layout": {
"height" : 3,
"information_to_display": {
"contenttitle_area" : {
"typelabel" : "title_widgetMON TITRE",
"text_color": "black",
"layout" : {
"text_align": "default",
"informationfont_tozoom_displaypercent" : {"default"
}
"title_area" : {}
}
}
},
"label" : "MON TITRE", {
"position_x": 0,
"position_y": 3,
"text_color" "width": "blackall",
"height": 2,
"content": {
"text_aligntype" : "defaultseparator_widget",
"layout": {
"font_zoom_percent" : "default""information_to_display": {
"left_area": {
}
"displayed": true,
}
"width_percent": 20
},
"title_area": {
}
"label": "MON }SEPARATEUR",
{
"font_zoom_percent": "default",
"positiontext_xcolor" : 0"black",
"positiontext_yalign" : 3,"center"
},
"width" : "all",
"right_area": {
"heightdisplayed" : 2true,
"contentwidth_percent" : {20
}
"type" : "separator_widget",
}
}
"layout" : {}
},
{
"informationposition_to_displayx" : {0,
"position_y": 5,
"width": 15,
"left_areaheight" : {5,
"content": {
"type": "weather_widget",
"displayeditem" : true,{
"item_uuid": "00000000000000000000000000000001",
"widthitem_percentname" : 20
"Le nom de mon hote",
"item_type": "host"
},
"layout": {
"background": "default",
"titleinformation_to_areadisplay" : {
"left_area": {
"labelicon_type" : "MON SEPARATEURdefault",
},
"fonttop_zoomright_percentarea" : "default",{
"displayed": "default",
"texticon_colortype" : "blackdefault",
},
"textsla_alignarea" : "center"{
"displayed": "default",
}, "show_icon": "default"
},
"rightname_area" : {
"property_used_as_name": "default",
"displayednb_lines_max" : true"default",
"vertical_align": "default",
"widthfont_zoom_percent" : 20"default"
}
}
}
}
},
{
}
"position_x": 15,
"position_y": 5,
}
"width": 15,
"height": }5,
"content": {
{
"type": "weather_widget",
"position_xitem" : 0,{
"positionitem_yuuid" : 5"00000000000000000000000000000002",
"item_name": "Le nom de mon "width" : 15cluster",
"item_type": "cluster"
"height" : 5,
},
"contentlayout" : {
"type" "background": "weather_widgetdefault",
"information_to_display": {
"item" : {
"left_area": {
"itemicon_uuidtype" : "00000000000000000000000000000001default",
},
"itemtop_right_namearea" : "Le nom de mon hote",{
"displayed": "default",
"item_type" : "host"
"icon_type": "default"
},
"layout" "sla_area": {
"background" "displayed": "default",
"information_to_display" : {"show_icon": "default"
},
"leftname_area" : {
"property_used_as_name": "default",
"iconnb_lines_typemax" : "default",
"vertical_align": "default",
},
"font_zoom_percent": "default"
}
"top_right_area" : {
}
}
}
}
"displayed" : "default"],
"layouts": {
"weather_widget_layout": {
"width": "default",
"icon_typeheight" : "default",
"content": {
},"layout": {
"background": "default",
"slainformation_to_areadisplay" : {
"left_area": {
"displayedicon_type" : "default",
},
"showtop_right_iconarea" : "default"
{
"displayed": "default",
},"icon_type": "default"
},
"namesla_area" : {
"displayed": "default",
"property_used_as_name" show_icon": "default",
},
"nbname_lines_maxarea" : "default",{
"property_used_as_name": "default",
"verticalnb_lines_alignmax" : "default",
"vertical_align": "default",
"font_zoom_percent" : "default"
}
}
}
}
},
"separator_widget_layout": {
"width": "default",
}
"height": "default",
}"content": {
},"layout": {
"information_to_display": {
"positionleft_xarea" : 15,{
"position_ydisplayed" : 5"default",
"width_percent" : 15,"default"
"height" : 5},
"contenttitle_area" : {
"type" "font_zoom_percent": "weather_widgetdefault",
"itemtext_color" : {"default",
"item_uuid" "text_align": "00000000000000000000000000000002default",
},
"itemright_namearea": :{
"Le nom de mon cluster",
"displayed": "default",
"item_type" "width_percent": "clusterdefault"
}
},
}
}
"layout" : {},
"title_widget_layout": {
"width": "default",
"backgroundheight" : "default",
"content": {
"layout": {
"information_to_display" : {
"title_area": {
"lefttext_areacolor" : {"default",
"text_align": "default",
"iconfont_zoom_typepercent" : "default"
}
}
}, }
}
}
}
}
],
"topexternal_right_arealinks" : {
"default_link": {
"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",
"font_zoom_percent" : "default"
}
}
}
}
}
}
}
],
"external_links" : {
"links__default_link_protocol" "link_protocol": "default",
"linkslink__default_base_url" : "default",
"linkslink__default_external_part_url" : "default",
"links__default_authentication_needed" : "default",
"links__default_info_bar" : {
"background_color" : "default",
"logo_displayed" : "default",
"position" : "default",
"refresh" : {
"chrono_displayed" : "default",
"generation_time_displayed" : "default"
}
},
},
"links" : [
{ [
{
"link_name" : "Lien 01",
"link_uuid" : "default",
"link_protocol" : "default",
"link_base_url" : "default",
"link_external_part_url" : "default",
"authentication_needed" : "true",
"info_bar" : {
"background_color" : "default",
"logo_displayed" : "default",
"position" : "default",
"refresh" : {
"chrono_displayed" : "default",
"generation_time_displayed" : "default"
}
}
}
]
},
"users": {
}"owner_user": {
"user_name": "Le ]
nom du propriétaire }actuel",
"usersuser_uuid" : {""
},
"previous_owner_user" : {
"user_name" : "Le nom du précédent propriétaire actuel",
"user_uuid" : "default"
},
"previouscreator_owner_user" : {
"user_name" : "Le nom du précédent propriétaire",
nom du créateur de la météo",
"user_uuid" : "default"
}
},
"notifications": {
"creator_usersound" : {
"enabled": "default"
},
"user_namevisual" : "Le{
nom du créateur de la météo",
"blink": {
"user_uuidenabled" : "default"
}
}
}
} |
Le JSON d'exemple comporte :
- 4 widgets :
- Un widget Titre "MON TITRE"
( p our plus d'informations vous référez à la page Widget Titre - Edition - Météo ) - Un widget Séparateur "MON SEPARATEUR"
( p our 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 hôte" ou un cluster qui se nomme "Le nom de mon cluster"
( p our 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 101, qui nécessite d'être authentifié pour y accéder
( p our plus d'informations, vous référez à la page Edition des liens externes - Edition - Météo )
- Lien 101, qui nécessite d'être authentifié pour y accéder
| Panel |
|---|
|