43 datatype: 'array', |
43 datatype: 'array', |
44 datafields: [{ name: 'id' }, { name: 'mno' }, { name: 'en' }] |
44 datafields: [{ name: 'id' }, { name: 'mno' }, { name: 'en' }] |
45 }, |
45 }, |
46 DeviceDirectionAdapter = new $.jqx.dataAdapter(DeviceDirectionSource), |
46 DeviceDirectionAdapter = new $.jqx.dataAdapter(DeviceDirectionSource), |
47 |
47 |
|
48 // Temp sensors droptdown list |
|
49 tempsensorSource = { |
|
50 datatype: 'json', |
|
51 datafields: [ |
|
52 { name: 'uuid', type: 'string' }, |
|
53 { name: 'name', type: 'string' } |
|
54 ], |
|
55 url: 'drop_tempsensors.php' |
|
56 }, |
|
57 tempsensorlist = new $.jqx.dataAdapter(tempsensorSource), |
|
58 |
48 // options for editors |
59 // options for editors |
49 |
60 |
50 Show0dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 0 }, |
61 Show0dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 0 }, |
|
62 Show1dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 1 }, |
51 Spin0dec = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true }, |
63 Spin0dec = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true }, |
|
64 PosInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true }, |
52 SubInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 63, decimalDigits: 0, spinButtons: true }, |
65 SubInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 63, decimalDigits: 0, spinButtons: true }, |
53 GPIOInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: -1, max:31, decimalDigits: 0, spinButtons: true }; |
66 GPIOInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: -1, max:31, decimalDigits: 0, spinButtons: true }; |
54 |
67 |
55 |
68 |
56 /* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */ |
69 /* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */ |