{
    "type":"tabs",
    "i18n": true,
    "items":{
        "mainTab":{
            "type": "panel",
            "label": "mainSettings",
            "items": {
                "connectionHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "connectionInformations",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "conectionInformation":{
                    "newLine":true,
                    "type": "staticText",
                    "label": "justWithRunningAdapter",
                    "hidden":"_alive === true",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "connectionState":{
                    "newLine":true,
                    "type": "textSendTo",
                    "jsonData": "{\"address\":\"${data.address}\",\"port\":\"${data.port}\",\"projectname\":\"${data.projectname}\"}",
                    "command": "getConnectionState",
                    "alsoDependsOn":[
                        "address",
                        "port",
                        "projectname"
                    ],
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "communicationHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "communicationSettings",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "address": {
                    "newLine":true,
                    "type": "text",
                    "label": "address",
                    "default":"192.168.2.50",
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "port": {
                    "type": "number",
                    "label": "port",
                    "default": 8080,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "projectname":{
                    "type": "selectSendTo",
                    "label": "projectname",
                    "default": "No project selected",
                    "jsonData": "{\"address\":\"${data.address}\",\"port\":\"${data.port}\"}",
                    "command": "getProjects",
                    "alsoDependsOn":[
                        "address",
                        "port"
                    ],
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "timeout": {
                    "newLine": true,
                    "type": "number",
                    "label": "timeout",
                    "min": 500,
                    "max": 5000,
                    "default": 2000,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "reconnectCount": {
                    "type": "number",
                    "label": "number of reconnects before warning",
                    "min": 0,
                    "max": 10,
                    "default": 4,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                }
            }
        },
        "onlinevalueTab":{
            "type": "panel",
            "label": "onlinevalues",
            "items": {
                "connectionHeaderOnlineTab": {
                    "newLine": true,
                    "type": "header",
                    "text": "connectionInformations",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "conectionInformationOnlineTab":{
                    "newLine":true,
                    "type": "staticText",
                    "label": "justWithRunningAdapter",
                    "hidden":"_alive === true",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "connectionStateOnlineTab":{
                    "newLine":true,
                    "type": "textSendTo",
                    "jsonData": "{\"address\":\"${data.address}\",\"port\":\"${data.port}\",\"projectname\":\"${data.projectname}\"}",
                    "command": "getConnectionState",
                    "alsoDependsOn":[
                        "address",
                        "port",
                        "projectname"
                    ],
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "onlinevalueConfigurationHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "onlinevalueConfiguration",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "refreshOnlineCronJob": {
                    "newLine": true,
                    "type": "cron",
                    "complex": true,
                    "label": "refreshCycle",
                    "tooltip": "refreshCycleTooltipOnline",
                    "default": "*/2 * * * * *",
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                  },
                "onlineDeviceTable":{
                    "newLine": true,
                    "type":"table",
                    "allowAddByFilter": true,
                    "items":[
                        {
                            "type": "selectSendTo",
                            "attr": "onlineDevices",
                            "title": "devices",
                            "filter": true,
                            "sort": false,
                            "jsonData": "{\"address\":\"${globalData.address}\",\"port\":\"${globalData.port}\",\"projectname\":\"${globalData.projectname}\"}",
                            "command": "getDevices"
                        },
                        {
                            "type": "selectSendTo",
                            "attr": "onlineValues",
                            "title": "online values",
                            "filter": true,
                            "sort": false,
                            "jsonData": "{\"connection\":{\"address\":\"${globalData.address}\",\"port\":\"${globalData.port}\",\"projectname\":\"${globalData.projectname}\"},\"device\":\"${data.onlineDevices}\"}",
                            "command": "getOnlineValues",
                            "alsoDependsOn":[
                                "onlineDevices"
                            ]
                        }
                    ],
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                }
            }
        },
        "historicvalueTab":{
            "type": "panel",
            "label": "historicvalues",
            "items": {
                "connectionHeaderHistoricTab": {
                    "newLine": true,
                    "type": "header",
                    "text": "connectionInformations",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "conectionInformationHirstoricTab":{
                    "newLine":true,
                    "type": "staticText",
                    "label": "justWithRunningAdapter",
                    "hidden":"_alive === true",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "connectionStateHistoricTab":{
                    "newLine":true,
                    "type": "textSendTo",
                    "jsonData": "{\"address\":\"${data.address}\",\"port\":\"${data.port}\",\"projectname\":\"${data.projectname}\"}",
                    "command": "getConnectionState",
                    "alsoDependsOn":[
                        "address",
                        "port",
                        "projectname"
                    ],
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "timeBaseHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "timeBaseForHistoricValues",
                    "tooltip":"timeBaseHeaderTooltip",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "historicTimeBase.today": {
                    "newLine":true,
                    "type": "checkbox",
                    "label": "historicToday",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.yesterday": {
                    "type": "checkbox",
                    "label": "historicYesterday",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisWeek": {
                    "type": "checkbox",
                    "label": "historicThisWeek",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastWeek": {
                    "type": "checkbox",
                    "label": "historicLastWeek",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisMonth": {
                    "type": "checkbox",
                    "label": "historicThisMonth",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastMonth": {
                    "type": "checkbox",
                    "label": "historicLastMonth",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisQuarter": {
                    "type": "checkbox",
                    "label": "historicThisQuarter",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastQuarter": {
                    "type": "checkbox",
                    "label": "historicLastQuarter",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisYear": {
                    "type": "checkbox",
                    "label": "historicThisYear",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastYear": {
                    "type": "checkbox",
                    "label": "historicLastYear",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "timeBase-1YearHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "timeBaseForHistoricValues-1Year",
                    "tooltip":"timeBaseHeaderMinus1YearTooltip",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "historicTimeBase.todayMinus1Year": {
                    "newLine":true,
                    "type": "checkbox",
                    "label": "historicTodayMinus1Year",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.yesterdayMinus1Year": {
                    "type": "checkbox",
                    "label": "historicYesterdayMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisWeekMinus1Year": {
                    "type": "checkbox",
                    "label": "historicThisWeekMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastWeekMinus1Year": {
                    "type": "checkbox",
                    "label": "historicLastWeekMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisMonthMinus1Year": {
                    "type": "checkbox",
                    "label": "historicThisMonthMinus1Year",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastMonthMinus1Year": {
                    "type": "checkbox",
                    "label": "historicLastMonthMinus1Year",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisQuarterMinus1Year": {
                    "type": "checkbox",
                    "label": "historicThisQuarterMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastQuarterMinus1Year": {
                    "type": "checkbox",
                    "label": "historicLastQuarterMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.thisYearMinus1Year": {
                    "type": "checkbox",
                    "label": "historicThisYearMinus1Year",
                    "default": true,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.lastYearMinus1Year": {
                    "type": "checkbox",
                    "label": "historicLastYearMinus1Year",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "timeBase-HoursHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "timeBaseForHistoricValues-Hours",
                    "tooltip":"timeBaseHeaderHoursTooltip",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "historicTimeBase.hour1": {
                    "newLine": true,
                    "type": "checkbox",
                    "label": "historicHour1",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hour2": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHour2",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hour3": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHour3",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hour4": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHour4",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hour5": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHour5",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hour6": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHour6",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "historicTimeBase.hourX": {
                    "newLine": false,
                    "type": "checkbox",
                    "label": "historicHourX",
                    "default": false,
                    "xs": 12,
                    "sm": 1,
                    "md": 1,
                    "lg": 1,
                    "xl": 1
                },
                "timeBase-FlexibleHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "timeBaseForHistoricValues-Flexible",
                    "tooltip":"timeBaseHeaderFlexibleTooltip",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "historicTimeBase.flexibleTime1": {
                    "newLine":true,
                    "type": "checkbox",
                    "label": "historicFlexibleTime1",
                    "default": true,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "historicTimeBase.flexibleTime2": {
                    "type": "checkbox",
                    "label": "historicFlexibleTime2",
                    "default": true,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "historicTimeBase.flexibleTime3": {
                    "type": "checkbox",
                    "label": "historicFlexibleTime3",
                    "default": false,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "historicTimeBase.flexibleTime4": {
                    "type": "checkbox",
                    "label": "historicFlexibleTime4",
                    "default": false,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "historicTimeBase.flexibleTime5": {
                    "type": "checkbox",
                    "label": "historicFlexibleTime5",
                    "default": false,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },
                "historicTimeBase.flexibleTime6": {
                    "type": "checkbox",
                    "label": "historicFlexibleTime6",
                    "default": false,
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                },

                "historicvalueConfigurationHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "historicvalueConfiguration",
                    "size": 3,
                    "xs": 12,
                    "sm": 3,
                    "md": 3,
                    "lg": 3,
                    "xl": 3
                },
                "refreshHistoricCronJob": {
                    "newLine": true,
                    "type": "cron",
                    "complex": true,
                    "label": "refreshCycle",
                    "tooltip": "refreshCycleTooltipHistoric",
                    "default": "5 */15 * * * *",
                    "xs": 12,
                    "sm": 2,
                    "md": 2,
                    "lg": 2,
                    "xl": 2
                  },
                "historicDeviceTable":{
                    "newLine": true,
                    "type":"table",
                    "allowAddByFilter": true,
                    "items":[
                        {
                            "type": "selectSendTo",
                            "attr": "historicDevices",
                            "title": "devices",
                            "filter": true,
                            "sort": false,
                            "jsonData": "{\"address\":\"${globalData.address}\",\"port\":\"${globalData.port}\",\"projectname\":\"${globalData.projectname}\"}",
                            "command": "getDevices"
                        },
                        {
                            "type": "selectSendTo",
                            "attr": "historicValues",
                            "title": "historic values",
                            "filter": true,
                            "sort": false,
                            "jsonData": "{\"connection\":{\"address\":\"${globalData.address}\",\"port\":\"${globalData.port}\",\"projectname\":\"${globalData.projectname}\"},\"device\":\"${data.historicDevices}\"}",
                            "command": "getHistoricValues",
                            "alsoDependsOn":[
                                "historicDevices"
                            ]
                        }
                    ],
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                }
            }
        }
    }
 }