| 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 | ||||
|---|---|---|---|---|
| ||||
{
"usersgrids" : [
{
"owner_user": {}
nb_tiles_in_width" },
"grids" : [60,
{
"nb_tiles_in_widthheight" : 60120,
"nbseparation_tilesgrid_inelement_height" min" : 1203,
"separation_grid_element_max" : 10,
"separation_grid_element_minpercent" : 30.5,
"separation_grid_element_percent": 0.5,
type" "type" : "grid",
"grid_elements" : [
{
"position_x": 0,
"position_y": 0,
"width" : "all",
"height" : 23,
"content" : {
"type" : "title_widget",
"titlelayout": "MON TITRE"
{
}
"information_to_display": {
}, {
"positiontitle_xarea": 0,{
"position_y": 2,
"label" "width" : "allMON TITRE",
"height" : 2,
"text_color" : "content" : {black",
"type" "text_align" : "separator_widget"default",
"title" "font_zoom_percent": "default"
: "MON SEPARATEUR",
}
"text_color" : "black",
}
"start_zone_text_percent": "20",
}
"end_zone_text_percent" : "20",
}
},
"text_align" : "center"{
}
}, {"position_x": 0,
"position_xy": 03,
"position_y": 4width" : "all",
"widthheight" : 152,
"heightcontent" : 5,{
"contenttype" : {"separator_widget",
"itemlayout": {
"iteminformation_to_namedisplay": "Le{
nom de mon hote",
"itemleft_typearea" : "host"{
},
"displayed" "type": "weather_widget"true,
}
}, {"width_percent": 20
"position_x": 15,
},
"position_y": 4,
"widthtitle_area": {
: 15,
"height" : 5, "content": {
"label" : "MON SEPARATEUR",
"item" : {
"itemfont_zoom_typepercent": "clusterdefault",
"item_uuid": "00000000000000000000000000000001"
"text_color" : "black",
}, "type": "weather_widget"
}
"text_align" }: "center"
],
"layouts" },
: {
"weatherright_widget_layoutarea" : {
"content": {
"displayed" "property_used_as_name": "visualization_name"true,
"state_icon" : "statuswidth_then_contextpercent",: 20
"background" }
: "context_and_status",
"display_sla"}
: true}
}
},
"title_widget_layout" : {
"contentposition_x": {0,
"textposition_colory": "black"5,
}
"width" : 15,
},
"height" "separator_widget_layout": {5,
"content" : {
"text_colortype": "blackweather_widget",
}
"item": {
}
}
"item_uuid": "10000000000000100000000000000001",
}
],
"external_links": {
"item_name": "Le nom de mon hote",
"item_type": "host"
}
}
},
{
"position_x": 15,
"position_y": 5,
"width" : 15,
"height" : 5,
"content" : {
"type": "weather_widget",
"item": {
"item_uuid": "10000000000000100000000000000002",
"item_name": "Le nom de mon cluster",
"item_type": "cluster"
}
}
}
]
}
],
"external_links": {
"links": [
{
"link_name" : "Lien 01",
"link_uuid" "links__default_external_part_url" : "external_default_json49872e4e-ffee-7084-fb91-b52346c3dcca",
"links__default_authentication_needed": true,
"links__default_info_barlink_protocol" : "default",
: {
"refreshlink_base_url" : {"default",
"chrono_displayed" : truelink_external_part_url": "default",
"generationauthentication_time_displayedneeded" : true
"default",
},
"info_bar" "position": {
: "top",
"background_color": "#343434default",
"logo_displayed" : true
"logo_displayed" : }"default",
"links" "position" : "default",
: [
"refresh" {
: {
"authentication_needed" : true,
"linkchrono_namedisplayed" : "default",
: "Lien 1",
"linkgeneration_time_uuiddisplayed": "default"
: "e214ce6ac1580cef86ddf7479ba9bf1d",
}
"link_external_part_url": "external_link_json",
},
"info_bar" "notifications" : {
"refreshsound" : {
: {
"enabled": "default"
"chrono_displayed" : true,
},
"generation_time_displayedvisual": false{
}, "blink": {
"position" "enabled": "topdefault",
"background_color": "#343434",
}
"logo_displayed" : true}
}
}
]
}
} |
Le Json JSON d'exemple comporte :
- 4 widgets :
- Un 1 widget Titre "MON TITRE"
( pour plus d'information vous référez à 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 à 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'information 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 1 01, qui nécessite d'être authentifier authentifié pour y accéder
( p our plus d'information vous référez à voir la pageEdition Édition des liens externes - Edition Édition JSON - Météo )
- Lien 1 01, qui nécessite d'être authentifier authentifié pour y accéder
| Panel |
|---|
