| 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 | ||
|---|---|---|
| ||
{
"users" :
{
"owner_user": {}
},
"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" : 2,
"content" : {
"type" : "title_widget",
"title": "MON TITRE"
}
}, {
"position_x": 0,
"position_y": 2,
"width" : "all",
"height" : 2,
"content" : {
"type" : "separator_widget",
"title" : "MON SEPARATEUR",
"text_color" : "black",
"start_zone_text_percent": "20",
"end_zone_text_percent" : "20",
"text_align" : "center"
}
}, {
"position_x": 0,
"position_y": 4,
"width" : 15,
"height" : 5,
"content" : {
"item": {
"item_name": "Le nom de mon hote",
"item_type": "host"
},
"type": "weather_widget"
}
}, {
"position_x": 15,
"position_y": 4,
"width" : 15,
"height" : 5, "content": {
"item" : {
"item_type": "cluster",
"item_uuid": "00000000000000000000000000000001"
}, "type": "weather_widget"
}
}
],
"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
}
}
]
}
} |
Le Json d'exemple comporte :
- 4 widgets :
- Un widget Titre "MON TITRE"
( pour plus d'information vous référez à la page HIDDEN - V02.08.02 - Widget Titre - Edition - Météo ) - Un widget Séparateur "MON SEPARATEUR"
( pour plus d'information vous référez à la page HIDDEN - V02.08.02 - 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 = "00000000000000000000000000000001"
( pour plus d'information vous référez à la page HIDDEN - V02.08.02 - Widget Météo - Edition - Météo )
- Un widget Titre "MON TITRE"
- 1 lien :
- Lien 1 , qui nécessite d'être authentifier pour y accéder
( pour plus d'information vous référez à la page HIDDEN - V02.08.02 - Edition des liens externes - Edition -Météo )
- Lien 1 , qui nécessite d'être authentifier pour y accéder
| Panel |
|---|