Changeset 5 for tags


Ignore:
Timestamp:
2012-02-15 00:28:36 (13 years ago)
Author:
utz
Message:

Modified version of JSON file for UI5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/0.1-UI5/D_GCal.json

    r1 r5  
    77    "imgIconMax": "", 
    88    "halloIconsDir": "pics\/hallo", 
     9    "inScene": "1", 
    910    "DisplayStatus": { 
    1011        "Service": "urn:micasaverde-com:serviceId:SecuritySensor1", 
    1112        "Variable": "Tripped", 
    1213        "MinValue": "0", 
    13         "MaxValue": "1"  
     14        "MaxValue": "1" 
    1415    }, 
    1516    "doc_url": { 
     
    1819        "doc_version": 1, 
    1920        "doc_platform": 0, 
    20         "doc_page": "devices"  
     21        "doc_page": "devices" 
    2122    }, 
    2223    "ToggleButton": 1, 
    2324    "Tabs": [ 
    24     { 
    25     "Label": { 
     25        { 
     26            "Label": { 
    2627                "lang_tag": "tabname_control", 
    27                 "text": "Control"  
     28                "text": "Control" 
    2829            }, 
    2930            "Position": "0", 
    3031            "TabType": "flash", 
    31         "ControlGroup":[ 
    32         { 
    33             "id":"1", 
    34             "isSingle":"1" 
    35         }, 
    36         { 
    37             "id":"2", 
    38             "isSingle":"1" 
    39         } 
     32            "SceneGroup":[ 
     33                { 
     34                    "id": "1", 
     35                    "top": "2", 
     36                    "left": "0", 
     37                    "x": "2", 
     38                    "y": "1" 
     39                } 
     40            ], 
     41            "ControlGroup":[ 
     42                { 
     43                    "id": "1", 
     44                    "isSingle": "1", 
     45                    "scenegroup": "1" 
     46                }, 
     47                { 
     48                    "id": "2", 
     49                    "isSingle": "1", 
     50                    "scenegroup": "1" 
     51                } 
    4052            ], 
    4153            "Control": [ 
    4254                { 
    43             "ControlGroup":"1", 
     55                    "ControlGroup":"1", 
    4456                    "ControlType": "button", 
    4557                    "Label": { 
    4658                        "lang_tag": "cmd_arm", 
    47                         "text": "Arm"  
    48                     }, 
     59                        "text": "Arm" 
     60                    }, 
     61                    "left": 0, 
    4962                    "Display": { 
    5063                        "Service": "urn:micasaverde-com:serviceId:SecuritySensor1", 
     
    5467                        "Left": 50, 
    5568                        "Width": 75, 
    56                         "Height": 20  
     69                        "Height": 20 
    5770                    }, 
    5871                    "Command": { 
     
    6275                            { 
    6376                                "Name": "newArmedValue", 
    64                                 "Value": "1"  
    65                             }  
    66                         ]  
    67                     }  
    68                 }, 
    69                 { 
    70             "ControlGroup":"2", 
     77                                "Value": "1" 
     78                            } 
     79                        ] 
     80                    } 
     81                }, 
     82                { 
     83                    "ControlGroup":"2", 
    7184                    "ControlType": "button", 
    7285                    "Label": { 
    7386                        "lang_tag": "cmd_bypass", 
    74                         "text": "Bypass"  
    75                     }, 
     87                        "text": "Bypass" 
     88                    }, 
     89                    "left": 1, 
    7690                    "Display": { 
    7791                        "Service": "urn:micasaverde-com:serviceId:SecuritySensor1", 
     
    8195                        "Left": 150, 
    8296                        "Width": 75, 
    83                         "Height": 20  
     97                        "Height": 20 
    8498                    }, 
    8599                    "Command": { 
     
    89103                            { 
    90104                                "Name": "newArmedValue", 
    91                                 "Value": "0"  
    92                             }  
    93                         ]  
    94                     }  
    95                 }, 
    96         { 
     105                                "Value": "0" 
     106                            } 
     107                        ] 
     108                    } 
     109                }, 
     110                { 
    97111                    "ControlType": "button", 
    98112                    "Label": { 
    99113                        "lang_tag": "GCalCheck", 
    100                         "text": "Check"  
     114                        "text": "Check" 
    101115                    }, 
    102116                    "Display": { 
     
    108122                    "Command": { 
    109123                        "Service": "urn:utz-com:serviceId:GCal1", 
    110                         "Action": "GCalCheck", 
    111                     }  
    112                 }, 
    113         { 
    114             "ControlType": "label", 
    115             "Label": { 
    116                 "lang_tag": "gcallink", 
    117                 "text": "Link" 
    118             }, 
    119             "Display": { 
    120                 "Top": 100, 
    121                 "Left": 50, 
    122                 "Width": 75, 
    123                 "Height": 20 
    124             } 
    125         }, 
    126         { 
    127             "ControlType":"input", 
    128             "ID": "NewGCalLink", 
    129             "Display":{ 
    130                 "Top": 100, 
    131                 "Left":150, 
    132                 "Width": 300, 
    133                 "Height": 20 
    134             } 
    135         }, 
    136         { 
    137             "ControlType": "button", 
    138             "Label": { 
    139                 "lang_tag": "setgcallink", 
    140                 "text": "Set" 
    141             }, 
    142             "Display": { 
    143                 "Top": 100, 
    144                 "Left": 500, 
    145                 "Width": 75, 
    146                 "Height": 20 
    147             }, 
    148             "Command": { 
    149                 "Service": "urn:utz-com:serviceId:GCal1", 
    150                 "Action":  "SetGCalLink", 
    151                 "Parameters": [ 
    152                     { 
    153                         "Name": "NewGCalLink", 
    154                         "ID": "NewGCalLink" 
    155                     } 
    156                 ] 
    157             } 
    158         }, 
    159         { 
    160             "ControlType": "label", 
    161             "Label": { 
    162                 "lang_tag": "gcalon", 
    163                 "text": "Keyword" 
    164             }, 
    165             "Display": { 
    166                 "Top": 150, 
    167                 "Left": 50, 
    168                 "Width": 75, 
    169                 "Height": 20 
    170             } 
    171         }, 
    172         { 
    173             "ControlType":"input", 
    174             "ID": "NewGCalOn", 
    175             "Display":{ 
    176                 "Top": 150, 
    177                 "Left":150, 
    178                 "Width": 300, 
    179                 "Height": 20 
    180             } 
    181         }, 
    182         { 
    183             "ControlType": "button", 
    184             "Label": { 
    185                 "lang_tag": "setgcalon", 
    186                 "text": "Set" 
    187             }, 
    188             "Display": { 
    189                 "Top": 150, 
    190                 "Left": 500, 
    191                 "Width": 75, 
    192                 "Height": 20 
    193             }, 
    194             "Command": { 
    195                 "Service": "urn:utz-com:serviceId:GCal1", 
    196                 "Action":  "SetGCalOn", 
    197                 "Parameters": [ 
    198                     { 
    199                         "Name": "NewGCalOn", 
    200                         "ID": "NewGCalOn" 
    201                     } 
    202                 ] 
    203             } 
    204         } 
    205             ]  
     124                        "Action": "GCalCheck" 
     125                    } 
     126                }, 
     127                { 
     128                    "ControlType": "label", 
     129                    "Label": { 
     130                        "lang_tag": "gcallink", 
     131                        "text": "Link" 
     132                    }, 
     133                    "Display": { 
     134                        "Top": 100, 
     135                        "Left": 50, 
     136                        "Width": 75, 
     137                        "Height": 20 
     138                    } 
     139                }, 
     140                { 
     141                    "ControlType":"input", 
     142                    "ID": "NewGCalLink", 
     143                    "Display":{ 
     144                        "Top": 100, 
     145                        "Left":150, 
     146                        "Width": 300, 
     147                        "Height": 20 
     148                    } 
     149                }, 
     150                { 
     151                    "ControlType": "button", 
     152                    "Label": { 
     153                        "lang_tag": "setgcallink", 
     154                        "text": "Set" 
     155                    }, 
     156                    "Display": { 
     157                        "Top": 100, 
     158                        "Left": 500, 
     159                        "Width": 75, 
     160                        "Height": 20 
     161                    }, 
     162                    "Command": { 
     163                        "Service": "urn:utz-com:serviceId:GCal1", 
     164                        "Action":  "SetGCalLink", 
     165                        "Parameters": [ 
     166                            { 
     167                                "Name": "NewGCalLink", 
     168                                "ID": "NewGCalLink" 
     169                            } 
     170                        ] 
     171                    } 
     172                }, 
     173                { 
     174                    "ControlType": "label", 
     175                    "Label": { 
     176                        "lang_tag": "gcalon", 
     177                        "text": "Keyword" 
     178                    }, 
     179                    "Display": { 
     180                        "Top": 150, 
     181                        "Left": 50, 
     182                        "Width": 75, 
     183                        "Height": 20 
     184                    } 
     185                }, 
     186                { 
     187                    "ControlType":"input", 
     188                    "ID": "NewGCalOn", 
     189                    "Display":{ 
     190                        "Top": 150, 
     191                        "Left":150, 
     192                        "Width": 300, 
     193                        "Height": 20 
     194                    } 
     195                }, 
     196                { 
     197                    "ControlType": "button", 
     198                    "Label": { 
     199                        "lang_tag": "setgcalon", 
     200                        "text": "Set" 
     201                    }, 
     202                    "Display": { 
     203                        "Top": 150, 
     204                        "Left": 500, 
     205                        "Width": 75, 
     206                        "Height": 20 
     207                    }, 
     208                    "Command": { 
     209                        "Service": "urn:utz-com:serviceId:GCal1", 
     210                        "Action":  "SetGCalOn", 
     211                        "Parameters": [ 
     212                            { 
     213                                "Name": "NewGCalOn", 
     214                                "ID": "NewGCalOn" 
     215                            } 
     216                        ] 
     217                    } 
     218                } 
     219            ] 
    206220        }, 
    207     { 
    208         "Label": { 
    209                 "lang_tag": "calendar", 
    210                 "text": "Calendar" 
     221        { 
     222            "Label": { 
     223                "lang_tag": "calendar", 
     224                "text": "Calendar" 
    211225            }, 
    212226           "Position": "2", 
     
    214228           "ScriptName": "J_GCal.js", 
    215229           "Function": "calendarTab" 
    216         }, 
     230        }, 
    217231        { 
    218232            "Label": { 
    219233                "lang_tag": "advanced", 
    220                 "text": "Advanced"  
     234                "text": "Advanced" 
    221235            }, 
    222236            "Position": "3", 
    223237            "TabType": "javascript", 
    224238            "ScriptName": "shared.js", 
    225             "Function": "advanced_device"  
     239            "Function": "advanced_device" 
    226240        }, 
    227     { 
     241        { 
    228242            "Label": { 
    229                 "lang_tag": "notifications", 
    230                 "text": "Notifications"  
     243                "lang_tag": "notifications", 
     244                "text": "Notifications" 
    231245            }, 
    232246            "Position": "4", 
    233247            "TabType": "javascript", 
    234248            "ScriptName": "shared.js", 
    235             "Function": "device_notifications"  
     249            "Function": "device_notifications" 
    236250        } 
    237251    ], 
     
    243257                "action": "SetArmed", 
    244258                "arguments": { 
    245                     "newArmedValue": "1"  
     259                    "newArmedValue": "1" 
    246260                }, 
    247261                "display": { 
     
    249263                    "variable": "Armed", 
    250264                    "value": "1" 
    251                 }  
     265                } 
    252266            }, 
    253267            "cmd_2": { 
     
    256270                "action": "SetArmed", 
    257271                "arguments": { 
    258                     "newArmedValue": "0"  
     272                    "newArmedValue": "0" 
    259273                }, 
    260274                "display": { 
     
    262276                    "variable": "Armed", 
    263277                    "value": "0" 
    264                 }  
    265             }  
    266         }  
     278                } 
     279            } 
     280        } 
    267281    }, 
    268     "eventList": { 
    269         "event_1": { 
    270             "label": "A calendar event is active", 
     282    "eventList2": [ 
     283        { 
     284            "id": 1, 
     285            "label": { 
     286                "lang_tag": "calendar_event_active", 
     287                "text": "A calendar event is active" 
     288            }, 
    271289            "serviceId": "urn:micasaverde-com:serviceId:SecuritySensor1", 
    272             "argumentList": { 
    273                 "argument_1": { 
     290            "argumentList": [ 
     291                { 
     292                    "id": 1, 
    274293                    "dataType": "boolean", 
    275294                    "defaultValue": "", 
    276                     "allowedValueList": { 
    277                         "On": "1", 
    278                         "Off": "0"  
    279                     }, 
     295                    "allowedValueList": [ 
     296                        { 
     297                            "On": "1", 
     298                            "HumanFriendlyText": { 
     299                                "lang_tag": "hft_calendar_event_active", 
     300                                "text": "_DEVICE_NAME_: Calendar event is Active" 
     301                            } 
     302                        }, 
     303                        { 
     304                            "Off": "0", 
     305                            "HumanFriendlyText": { 
     306                                "lang_tag": "hft_calendar_event_not_active", 
     307                                "text": "_DEVICE_NAME_: Calendar event is Not Active" 
     308                            } 
     309                        } 
     310                    ], 
    280311                    "name": "Tripped", 
    281312                    "comparisson": "=", 
    282                     "prefix": "Status?", 
    283                     "suffix": " "  
    284                 }  
    285             }  
     313                    "prefix": { 
     314                        "lang_tag": "status", 
     315                        "text": "Status?" 
     316                    }, 
     317                    "suffix": {} 
     318                } 
     319            ] 
    286320        }, 
    287         "event_2": { 
    288             "label": "An armed calendar event is active", 
     321        { 
     322            "id": 2, 
     323            "label": { 
     324                "lang_tag": "armed_calendar_event_active", 
     325                "text": "An armed calendar event is active" 
     326            }, 
    289327            "serviceId": "urn:micasaverde-com:serviceId:SecuritySensor1", 
    290328            "serviceStateTable": { 
    291329                "Armed": { 
    292330                    "value": "1", 
    293                     "comparisson": "="  
    294                 }  
    295             }, 
    296             "argumentList": { 
    297                 "argument_1": { 
     331                    "comparisson": "=" 
     332                } 
     333            }, 
     334            "argumentList": [ 
     335                { 
     336                    "id": 1, 
    298337                    "dataType": "boolean", 
    299                     "allowedValueList": { 
    300                         "On": "1", 
    301                         "Off": "0"  
    302                     }, 
    303             "name": "Tripped", 
     338                    "allowedValueList": [ 
     339                        { 
     340                            "On": "1", 
     341                            "HumanFriendlyText": { 
     342                                "lang_tag": "hft_armed_calendar_event_active", 
     343                                "text": "_DEVICE_NAME_: Armed calendar event is Active" 
     344                            } 
     345                        }, 
     346                        { 
     347                            "Off": "0", 
     348                            "HumanFriendlyText": { 
     349                                "lang_tag": "hft_armed_calendar_event_not_active", 
     350                                "text": "_DEVICE_NAME_: Armed calendar event is Not Active" 
     351                            } 
     352                        } 
     353                    ], 
     354                    "name": "Tripped", 
    304355                    "comparisson": "=", 
    305                     "prefix": "Status?", 
    306                     "suffix": " " 
    307                 }  
    308             }  
     356                    "prefix": { 
     357                        "lang_tag": "status", 
     358                        "text": "Status?" 
     359                    }, 
     360                    "suffix": {} 
     361                } 
     362            ] 
    309363        } 
    310     }, 
    311     "DeviceType": "urn:schemas-utz-com:device:GCal:1", 
    312     "device_type": "urn:schemas-utz-com:device:GCal:1"  
     364    ], 
     365    "DeviceType": "urn:schemas-utz-com:device:GCal:1" 
    313366} 
Note: See TracChangeset for help on using the changeset viewer.