Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Revert to keep 002.9 instead 002.9.5


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue


Panel
titleSommaire

Table of Contents
stylenone



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
languageyml
{

    "grids" : [
        {
            "nb_tiles_in_width" : 60,
            "nb_tiles_in_height" : 120,
            "separation_grid_element_minmax" : 310,
            "separation_grid_element_maxmin" : 103,
            "separation_grid_element_percent" : 0.5,
            "type" : "grid",
            "grid_elements" : [
                {
          "position_x": 0,
          "position_yx" : 0,
          "width": "all",
          "heightposition_y" : 30,
          "content": {
            "typewidth" : "title_widgetall",
            "layout": {
       "height" : 3,
     "information_to_display": {
                "title_areacontent" : {
                        "labeltype" : "MON TITREtitle_widget",
                  "text_color": "black",
      "layout" :  {
           "text_align": "default",
                  "fontinformation_zoomto_percentdisplay" : "default"{
                }
                }"title_area" : {
            }
          }
        },
      "label"  {
: "MON TITRE",
           "position_x": 0,
          "position_y": 3,
              "widthtext_color" : "allblack",
            "height": 2,
          "content": {
            "typetext_align" : "separator_widgetdefault",
               "layout": {
                     "informationfont_tozoom_displaypercent" : {"default"
                "left_area": {
               }
   "displayed": true,
                        "width_percent": 20
 }
                        },
                "title_area": {
   }
               "label": "MON SEPARATEUR" },
                {
  "font_zoom_percent": "default",
                  "textposition_colorx" : "black"0,
                    "textposition_aligny" : "center"3,
                },
    "width"             "right_area": {
: "all",
                    "displayedheight" : true2,
                    "width_percentcontent" : 20{
                }
        "type" : "separator_widget",
    }
            }
        "layout" : }{
        },
          {
          "positioninformation_to_xdisplay" : 0,{
          "position_y": 5,
            "width": 15,
          "heightleft_area" : 5,{
          "content": {
            "type": "weather_widget",
            "itemdisplayed" : {true,
              "item_uuid": "00000000000000000000000000000001",
                      "itemwidth_namepercent" : 20
 "Le nom de mon hote",
              "item_type": "host"
            },
            "layout": {
              "background": "default",
              "informationtitle_to_displayarea" : {
                "left_area": {
                    "icon_typelabel" : "defaultMON SEPARATEUR",
                },
                    "topfont_rightzoom_areapercent" : {"default",
                  "displayed": "default",
                     "icontext_typecolor" : "defaultblack",
                   },
                 "slatext_areaalign" : {"center"
                  "displayed": "default",
                  "show_icon": "default"},
                },
                "nameright_area" : {
                  "property_used_as_name": "default",
                  "nb_lines_max": "default",
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"
                     "vertical_align": "default",
           },
                   "font_zoom_percent": "default"
             "top_right_area" : {
                              }
      "displayed" : "default",
       }
             }
          }
      "icon_type" : },
"default"
          {
          "position_x": 15,
          "position_y": 5 },
          "width": 15,
          "height": 5,
          "contentsla_area" : {
            "type": "weather_widget",
            "item": {
              "item_uuiddisplayed" : "00000000000000000000000000000002default",
                "item_name": "Le nom de mon cluster",
                    "itemshow_typeicon" : "clusterdefault"
            },
            "layout": {
              "background": "default"},
              "information_to_display": {
                  "leftname_area" : {
                     "icon_type": "default"
              "property_used_as_name" : }"default",
                "top_right_area": {
                    "displayednb_lines_max" : "default",
                  "icon_type": "default"
                   }"vertical_align" : "default",
                "sla_area": {
                    "displayedfont_zoom_percent" : "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",
      ],
      "layouts": {
        "weather_widget_layoutcontent" : {
             "width": "default",
          "heightlayout" : "default",
{
             "content": {
               "layoutinformation_to_display" : {
              "background": "default",
                  "informationleft_to_displayarea" : {
                "left_area": {
                    "icon_typedisplayed" : "default",
                 },
                   "topwidth_right_areapercent" : {"default"
                  "displayed": "default",
                  "icon_type": "default" },
                },
                "slatitle_area" : {
                  "displayed": "default",
                  "showfont_zoom_iconpercent" : "default",
                },
                    "nametext_areacolor" : {"default",
                  "property_used_as_name": "default",
                  "nbtext_lines_maxalign" : "default",

                               "vertical_align": "default" },
                  "font_zoom_percent": "default"
              "right_area" : }{
              }
            }
          }
"displayed" : "default",
      },
        "separator_widget_layout": {
          "width": "default",
          "heightwidth_percent" : "default",
          "content": {
            "layout": {
              "information_to_display": {
}
                 "left_area": {
          }
        "displayed": "default",
               }
   "width_percent": "default"
                },
                "title_area": {
  },
                "fonttitle_zoomwidget_percentlayout" : "default",{
                    "text_colorwidth" : "default",
                    "text_alignheight" : "default",
                },
    "content" : {
          "right_area": {
             "layout" : {
   "displayed": "default",
                  "width_percent": "default"
     "information_to_display" : {
         }
              }
         "title_area" :  }{
          }
        },
        "title_widget_layout": {
          "widthtext_color" : "default",
            "height": "default",
          "content": {
            "layouttext_align" : {"default",
              "information_to_display": {
                      "titlefont_zoom_areapercent" : {
"default"
                        "text_color": "default",
          }
                "text_align": "default",
           }
       "font_zoom_percent": "default"
                }
              }
      }
      }
          }
            }
        }
    }],
  ],
  "external_links" : {
    "default_link": {
      ""links__default_link_protocol" : "default",
      "link  "links__default_base_url" : "default",
       "link "links__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",
            "user_uuid" : ""
        },
        "previous_owner_user" : {
            "user_name" : "Le nom du précédent propriétaire",
            "user_uuid" : "default"
        },
        "creator_user" : {
            "user_name" : "Le nom du créateur de la météo",
            "user_uuid" : "default"
        }
    }
} 


Le JSON d'exemple comporte :



Panel

Image Modified