mit den aktuellen hqWidgets habe ich ein kleines Problem:
Ich erstelle eine leere view die nur einen hqButton On/Off enthält:
Code: Alles auswählen
{
"view1": {
"settings": {
"style": {
"background_class": ""
},
"theme": "dhive"
},
"widgets": {
"w00001": {
"tpl": "tplHqButton",
"data": {
"hm_id": 65535,
"digits": 6,
"factor": 1,
"hqoptions": "{\"x\":50,\"y\":50,\"radius\":22,\"zindex\":2,\"iconName\":\"img/mfd/fts_shutter_down.png\",\"room\":\"\",\"hm_id\":\"41226\"}"
}
}
}
}
}
Das Ergebnis ist die folgende Fehlermeldung:
- socket.io dashui.js:717
Fri Oct 04 2013 20:10:48 GMT+0200 (Mitteleuropäische Sommerzeit) socket.io connecting dashui.js:744
Fri Oct 04 2013 20:10:48 GMT+0200 (Mitteleuropäische Sommerzeit) socket.io connect dashui.js:740
index loaded dashui.js:777
objects loaded dashui.js:781
datapoints loaded dashui.js:785
loadWidgetSet(basic) dashui.js:106
loadWidgetSet(colorpicker) dashui.js:106
loadWidgetSet(fancyswitch) dashui.js:106
loadWidgetSet(knob) dashui.js:106
loadWidgetSet(hqWidgets) dashui.js:106
loadWidgetSet(jqplot) dashui.js:106
loadWidgetSet(jqui) dashui.js:106
loadWidgetSet(jqui-mfd) dashui.js:106
loadWidgetSet(swipe) dashui.js:106
loadWidgetSet(timeAndWeather) dashui.js:106
loadWidgetSet(dev) dashui.js:106
changeView(view1,undefined,undefined) dashui.js:447
renderView(view1) dashui.js:341
renderView() change Theme dhive dashui.js:351
Uncaught TypeError: Cannot read property 'Value' of undefined
jQuery.extend.hqWidgetsExt.hqButtonExt
fn tplHqButton.js:4
w.render can.jquery.min.js:71
(anonymous function) can.jquery.min.js:70
c.extend.render can.jquery.min.js:49
c.view can.jquery.min.js:46
dui.renderWidget dashui.js:431
dui.renderView dashui.js:362
dui.changeView dashui.js:469
dui.initNext dashui.js:231
(anonymous function) dashui.js:582
SocketNamespace.onPacket socket.io.js:2253
Socket.onPacket socket.io.js:1930
Transport.onPacket socket.io.js:1332
Transport.onData socket.io.js:1303
websocket.onmessage socket.io.js:2378
Habt Ihr Ideen wo der Fehler liegt?
Grüße
GinTonic