- Home
- Deutsch
- Praktische Anwendungen (Showcase)
- [Vorstellung] Meine dritte VIS
[Vorstellung] Meine dritte VIS
-
Hallo @Kuddel,
würdest Du mir deine neue View von der Weckzeit zur Verfügung stellen?
Gruß -
View Export: 1010_Home_Weckzeit
{ "settings": { "style": { "background-color": "#000000", "background_class": "" }, "theme": "redmond", "sizex": "", "sizey": "", "gridSize": "", "useBackground": false, "snapType": null }, "widgets": { "e00001": { "tpl": "tplShapes", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": false, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "svgType": "square", "strokeColor": "", "fill": "#212121", "strokeWidth": "5", "scaleWidth": "1", "scaleHeight": "1", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "rotate": "45", "name": "!_Hintergrund" }, "style": { "left": "0px", "top": "0px", "background": "#212121", "background-color": "#212121", "z-index": "0", "width": "240px", "height": "260px", "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "font-family": "Arial, Helvetica, sans-serif" }, "widgetSet": "basic" }, "e00002": { "tpl": "tplHqButton", "data": { "oid": "javascript.0.wecklicht.daniel.wecklicht_we", "min": "0", "max": "1", "timeAsInterval": "true", "infoLeftFontSize": "12", "infoFontRightSize": "12", "gestures-offsetX": 0, "gestures-offsetY": 0, "signals-cond-0": "==", "signals-val-0": "0", "signals-icon-0": "/icons-mfd-png/info_error.png", "signals-icon-size-0": "60", "signals-blink-0": false, "signals-horz-0": "-25", "signals-vert-0": "-25", "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": "1", "signals-icon-1": "/icons-mfd-png/time_alarm_clock.png", "signals-icon-size-1": "60", "signals-blink-1": true, "signals-horz-1": "-25", "signals-vert-1": "-25", "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis.0/VIS_v3/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "pushButton": false, "usejQueryStyle": false, "g_visibility": false, "styleActive": "hq-button-no-background", "name": "Wochenende_Icon", "infoLeftPaddingLeft": "15", "infoLeftPaddingRight": "50", "infoRightPaddingRight": "15", "gestures-swipeLeft-limit": "-1", "gestures-rotateLeft-limit": "2", "styleNormal": "hq-button-no-background", "testActive": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "descriptionLeft": "Side brush lifetime reset", "descriptionLeftDisabled": true, "signals-oid-0": "javascript.0.wecklicht.daniel.wecklicht_we", "signals-oid-1": "javascript.0.wecklicht.daniel.wecklicht_we", "g_center": true, "iconName": "", "btIconWidth": "56", "offsetAuto": "true", "leftOffset": "15", "topOffset": "55", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide" }, "style": { "left": "171px", "top": "150px", "width": "40px", "height": "40px", "border-width": "2px", "border-style": "hidden", "border-color": "#212121", "border-radius": "10px", "z-index": "20", "text-align": "center", "font-size": "small", "box-shadow": "", "background": "#303030", "background-color": "#212121" }, "widgetSet": "hqwidgets" }, "e00003": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": false, "g_gestures": false, "g_signals": false, "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "html": "Wochenende", "class": "", "src": "http://192.168.2.2:8082/flot/index.html?l%5B0%5D%5Bid%5D=hm-rpc.1.JEQ0703647.1.BRIGHTNESS&l%5B0%5D%5Binstance%5D=history.0&l%5B0%5D%5Boffset%5D=0&l%5B0%5D%5Baggregate%5D=minmax&l%5B0%5D%5Bcolor%5D=%23CDDC39&l%5B0%5D%5Bmin%5D=0&l%5B0%5D%5Bmax%5D=255&l%5B0%5D%5Bthickness%5D=2&l%5B0%5D%5Bshadowsize%5D=0&l%5B0%5D%5Bunit%5D=Lux&l%5B0%5D%5Bname%5D=Helligkeit+T%C3%BCr&l%5B0%5D%5Byaxe%5D=rightColor&l%5B0%5D%5Bxaxe%5D=bottom&l%5B0%5D%5BignoreNull%5D=&l%5B0%5D%5BafterComma%5D=1&l%5B0%5D%5Bxticks%5D=5&l%5B0%5D%5Bpoints%5D=false&l%5B1%5D%5Bid%5D=hm-rpc.1.JEQ0703741.1.BRIGHTNESS&l%5B1%5D%5Binstance%5D=history.0&l%5B1%5D%5Boffset%5D=0&l%5B1%5D%5Baggregate%5D=minmax&l%5B1%5D%5Bcolor%5D=%2300FF00&l%5B1%5D%5Bmin%5D=0&l%5B1%5D%5Bmax%5D=255&l%5B1%5D%5Bthickness%5D=2&l%5B1%5D%5Bshadowsize%5D=0&l%5B1%5D%5Bunit%5D=Lux&l%5B1%5D%5Bname%5D=Helligkeit+Einfahrt&l%5B1%5D%5Bxaxe%5D=off&l%5B1%5D%5Byaxe%5D=off&l%5B1%5D%5BafterComma%5D=2&l%5B1%5D%5Bpoints%5D=false&l%5B1%5D%5BchartType%5D=line&l%5B2%5D%5Bid%5D=hm-rpc.1.JEQ0703647.1.MOTION&l%5B2%5D%5Binstance%5D=history.0&l%5B2%5D%5Boffset%5D=0&l%5B2%5D%5Baggregate%5D=minmax&l%5B2%5D%5Bcolor%5D=%23ff0000&l%5B2%5D%5Bmin%5D=0&l%5B2%5D%5Bmax%5D=10&l%5B2%5D%5Bthickness%5D=3&l%5B2%5D%5Bshadowsize%5D=3&l%5B2%5D%5Bname%5D=Bew.+T%C3%BCr&l%5B2%5D%5BchartType%5D=steps&l%5B2%5D%5BcommonYAxis%5D=3&l%5B2%5D%5BignoreNull%5D=false&l%5B2%5D%5BafterComma%5D=2&l%5B2%5D%5Byaxe%5D=off&l%5B2%5D%5Bxaxe%5D=off&l%5B2%5D%5Bpoints%5D=false&l%5B2%5D%5ByOffset%5D=4&l%5B3%5D%5Bid%5D=hm-rpc.1.JEQ0703741.1.MOTION&l%5B3%5D%5Binstance%5D=history.0&l%5B3%5D%5Boffset%5D=0&l%5B3%5D%5Baggregate%5D=onchange&l%5B3%5D%5Bcolor%5D=%230000ff&l%5B3%5D%5Bmin%5D=0&l%5B3%5D%5Bmax%5D=10&l%5B3%5D%5Bthickness%5D=3&l%5B3%5D%5Bshadowsize%5D=3&l%5B3%5D%5Bname%5D=Bew.+Einfahrt&l%5B3%5D%5BchartType%5D=steps&l%5B3%5D%5Bxaxe%5D=off&l%5B3%5D%5Byaxe%5D=off&l%5B3%5D%5Bpoints%5D=false&l%5B3%5D%5BcommonYAxis%5D=3&l%5B3%5D%5BignoreNull%5D=&l%5B3%5D%5BafterComma%5D=2&l%5B3%5D%5ByOffset%5D=2&timeType=relative&relativeEnd=now&range=1440&aggregateType=count&aggregateSpan=100&width=720&height=360&noBorder=noborder&window_bg=%23212121&bg=%23212121&x_labels_color=%23e0e0e0&y_labels_color=%23e0e0e0&border_color=%23808080&grid_color=%23606060&barColor=%23f0f0f0&barLabels=topover&barFontColor=%23f0f0f0&title=Bewegungsmelder&titlePos=top%3A35%3Bleft%3A65&titleColor=%23a0a0a0&titleSize=16&legend=sw&hoverDetail=true&useComma=false&zoom=false&noedit=true&animation=0&legColumns=2&legBgOpacity=1&legBg=rgba(255%2C255%2C255%2C0.5)&timeFormat=%25H%3A%25M+%25d.%25m", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Wochenende", "comment": "", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide" }, "style": { "left": "10px", "top": "160px", "height": "25px", "width": "130px", "z-index": "10", "font-family": "Arial, Helvetica, sans-serif", "font-size": "20px", "background": "", "margin-left": "", "text-align": "center", "padding-top": "", "padding": "", "color": "White", "opacity": "", "font-variant": "normal", "font-weight": "bolder" }, "widgetSet": "basic" }, "e00004": { "tpl": "tplJquiSelectList", "data": { "oid": "javascript.0.echo.weckradio_sender_daniel", "g_fixed": true, "g_visibility": false, "g_css_font_text": false, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "values": "Radio Hamburg; FFN", "texts": "Radio HH;FFN", "height": "150", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "no_style": true, "class": "mdui-select", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "open": false, "name": "Radiosender_Daniel", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide" }, "style": { "left": "10px", "top": "110px", "height": "25px", "width": "100px", "background": "#303030", "box-shadow": "", "border-radius": "5px", "padding-left": "", "padding-right": "", "margin-right": "" }, "widgetSet": "jqui" }, "e00005": { "tpl": "tplJquiSelectList", "data": { "oid": "javascript.0.echo.weckradio_sender_jenny", "g_fixed": true, "g_visibility": false, "g_css_font_text": false, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "values": "Radio Hamburg; FFN", "texts": "Radio HH;FFN", "height": "150", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "no_style": true, "class": "mdui-select", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "open": false, "name": "Radiosender_Daniel", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide" }, "style": { "left": "130px", "top": "110px", "height": "25px", "width": "100px", "background": "#303030", "box-shadow": "", "border-radius": "5px", "padding-left": "", "padding-right": "", "margin-right": "" }, "widgetSet": "jqui" }, "e00006": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Jenny", "html": "Jenny" }, "style": { "left": "120px", "top": "40px", "width": "120px", "height": "20px", "color": "white", "text-align": "center", "font-weight": "bolder" }, "widgetSet": "basic" }, "e00007": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Daniel", "html": "Daniel" }, "style": { "left": "0px", "top": "40px", "width": "120px", "height": "20px", "color": "white", "text-align": "center", "font-weight": "bolder" }, "widgetSet": "basic" }, "e00008": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html": "Weckzeit", "name": "!_Überschrift" }, "style": { "left": "0px", "top": "0px", "height": "30px", "width": "240px", "z-index": "10", "color": "white", "text-align": "center", "text-shadow": "", "font-family": "Arial, Helvetica, sans-serif", "font-style": "", "font-variant": "", "font-weight": "bolder", "font-size": "20px", "line-height": "30px", "background": "grey" }, "widgetSet": "basic" }, "e00009": { "tpl": "tplJquiInputDatetime", "data": { "oid": "javascript.0.wecklicht.daniel.weckzeit", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Uhrzeit_Daniel", "class": "mdui-input", "filterkey": "", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "timeOnly": true, "hideSeconds": true, "size": "10", "stepMinute": "5", "showGrid": false }, "style": { "left": "12px", "top": "62px", "width": "90px", "height": "30px", "color": "white", "text-align": "center", "font-size": "medium", "font-weight": "bolder", "line-height": "30px", "font-family": "Arial, Helvetica, sans-serif", "border-radius": "5px" }, "widgetSet": "jqui" }, "e00010": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": false, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html": "Uhr", "name": "Daniel_Uhr" }, "style": { "left": "67px", "top": "65px", "color": "white", "font-family": "Arial, Helvetica, sans-serif", "font-weight": "bolder", "font-size": "large", "line-height": "25px", "height": "25px", "z-index": "10", "width": "50px" }, "widgetSet": "basic" }, "e00011": { "tpl": "tplJquiInputDatetime", "data": { "oid": "javascript.0.wecklicht.jenny.weckzeit", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Uhrzeit_Daniel", "class": "mdui-input", "filterkey": "", "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "timeOnly": true, "hideSeconds": true, "size": "10", "stepMinute": "5", "showGrid": false }, "style": { "left": "130px", "top": "62px", "width": "90px", "height": "30px", "color": "white", "text-align": "center", "font-size": "medium", "font-weight": "bolder", "line-height": "30px", "font-family": "Arial, Helvetica, sans-serif", "border-radius": "5px" }, "widgetSet": "jqui" }, "e00012": { "tpl": "tplHtml", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": false, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "refreshInterval": "0", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html": "Uhr", "name": "Jenny_Uhr" }, "style": { "left": "185px", "top": "65px", "color": "white", "font-family": "Arial, Helvetica, sans-serif", "font-weight": "bolder", "font-size": "large", "line-height": "25px", "height": "25px", "z-index": "10", "width": "50px" }, "widgetSet": "basic" } }, "name": "1010_Home_Weckzeit", "filterList": [] }
-
@Kuddel
vielen vielen Dank. Sieht doch besser aus als die Vorherige.
Gruß -
Hallo @Kuddel,
könnte ich das geänderte Script "Weckzeit" auch noch bekommen.
Denn Stunde und Minute wird ja nicht mehr benötigt. -
Blockly Export
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="cron" id="Wecklicht_Daniel">Wecklicht_Daniel</variable> </variables> <block type="comment" id="-c)[#MFP9p;fa*.zCm9:" x="-312" y="-162"> <field name="COMMENT">Cron Restart</field> <next> <block type="update" id="Z|G(lkOVhj1O467p~(%Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.wecklicht.weckzeit_cron_restart</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="time_get" id="YEc@`GZ$/=;kZ-eC]Nu%"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation> <field name="OPTION">custom</field> <field name="FORMAT">TT.MM.JJJJ SS:mm</field> </block> </value> <next> <block type="comment" id="O#Q1_Ela_+Mr;!O;Z=f}"> <field name="COMMENT">Weckzeit Daniel</field> <next> <block type="on_ext" id="`naW5ol;4hGCGrtd-k@X"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="HDUsrjtBjbo4Ajl%TF.b"> <field name="oid">javascript.0.wecklicht.daniel.weckzeit</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="XYXzIGcB$6wbcLBlv^VD"> <field name="oid">javascript.0.wecklicht.weckzeit_cron_restart</field> </shadow> </value> <statement name="STATEMENT"> <block type="schedule_clear" id="t#O!h9zZ3V/@hn@bSiQk"> <field name="NAME">Wecklicht_Daniel</field> <next> <block type="schedule_create" id="8K~gctx^YtpHl:]@Y47+"> <field name="NAME">Wecklicht_Daniel</field> <value name="SCHEDULE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="c0]4[b/)BfLxIM[_D4J?"> <field name="CRON">* * * * *</field> </shadow> <block type="cron_builder" id="C`(+:liW#9W(#xc)mEg/"> <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id="K@u6,n+x!GvmZmT5*AF4"> <field name="TEXT">*</field> </shadow> </value> <value name="MONTHS"> <shadow type="text" id="./q}[72rzJG[}fKabV@h"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id=":e.|M#BI`c+`|Esj(yMy"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="Fv4;rbdTd_RVt(!HOV~1"> <field name="TEXT">*</field> </shadow> <block type="text_getSubstring" id="w@|7BFvYtoVjNue+tIXO"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="get_value" id="@-JweVPP`)=~[+@7[ZjH"> <field name="ATTR">val</field> <field name="OID">javascript.0.wecklicht.daniel.weckzeit</field> </block> </value> <value name="AT2"> <block type="math_number" id="6*$wfg#FCfAVbJz)Fp`Z"> <field name="NUM">2</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="9l6T6FkfTzbV%V~YR8yg"> <field name="TEXT">*</field> </shadow> <block type="text_getSubstring" id="m)`Ugg[9F=AWaVP4p6S3"> <mutation at1="true" at2="false"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">LAST</field> <value name="STRING"> <block type="get_value" id="jd3{3gjHRjm(V3vKVV0*"> <field name="ATTR">val</field> <field name="OID">javascript.0.wecklicht.daniel.weckzeit</field> </block> </value> <value name="AT1"> <block type="math_number" id="z51@{mors+6c8^##rsfG"> <field name="NUM">4</field> </block> </value> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="comment" id="3l{X|AfIp$]T^Y8`xkFm"> <field name="COMMENT">Werktags</field> <next> <block type="controls_if" id="m=i+7#wV]oNOuYOO$VK4"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="l$M?1_BKdfzhO?v)98@y" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="$^R.L)w/!CMEg:Mz3V78"> <field name="OP">NEQ</field> <value name="A"> <block type="time_get" id="YF:l4ee9WV4P}=T81ho_"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field> </block> </value> <value name="B"> <block type="text" id="U`swyZV.*TJL9irCj6}x"> <field name="TEXT">Samstag</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="RquU@!}?c!$HTMT(UHC*"> <field name="OP">NEQ</field> <value name="A"> <block type="time_get" id=",{[i6FF@-u0)e:qhHh.."> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field> </block> </value> <value name="B"> <block type="text" id="?30EGBs$-k*6=@_1AH2V"> <field name="TEXT">Sonntag</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="=oW7|a:_JXWDx^(%!67m"> <value name="IF0"> <block type="logic_operation" id="qA1S+)7Nq]-XvrlJz2kB" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="nOEUVr^fmyamNUD(@Fej" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="OfQ@Ko|_c+MFdIb|U~Xc"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2o+sk[?Z^8N|bdd;i9*,"> <field name="ATTR">val</field> <field name="OID">feiertage.0.heute.boolean</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N=)}U3G5-4X$J)s{(_UW"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="*V+%v#7?rw4]qT@G.e;5"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=",F_KAqq2VXl3u28^wZ(y"> <field name="ATTR">val</field> <field name="OID">javascript.0.Anwesenheit.Daniel</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Tu^ZdPS6;|p4^OzR}rpU"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ew*eL`i{bi7VZetiI.Y)" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="({,0TBVgh=]=So7Ukj3Y" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="RaB4)oBZFr_Ko%3:0#BM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="QQ?4BnZ:={K^MswDnY9p"> <field name="ATTR">val</field> <field name="OID">javascript.0.sonstige.arbeitsstatus</field> </block> </value> <value name="B"> <block type="math_number" id="7{#-VU+F,zV#wrL4-/3?"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="oRR2$m)Gb?a1YDF}o|*`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="p7)QFzEz=VE:P;EK*LtP"> <field name="ATTR">val</field> <field name="OID">javascript.0.sonstige.arbeitsstatus</field> </block> </value> <value name="B"> <block type="math_number" id="wJ}35sn!rz_m@f[emxth"> <field name="NUM">4</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="):DH4h,JgZYGv,^@yQY#"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UB:)tDdM?DEX)p1nIgv{"> <field name="ATTR">val</field> <field name="OID">javascript.0.sonstige.arbeitsstatus</field> </block> </value> <value name="B"> <block type="math_number" id="d0=?n:1SMz|+0gSvLKcw"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="]LuR;nP7T|JX$[]+pTQ1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.wecklicht.daniel.wecklicht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=";QtoD%ru`DwQ|1+]JT%B"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="ugDi{R}7AU9+~1U3^lb5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.wecklicht.daniel.wecklicht</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">15</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="R/qWKDfh6oxn8~#})|.o"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_operation" id="T_K?9ep!``,)o(7u3-fa" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="?oyg84|8q9k%|O%CdX#K"> <field name="OP">EQ</field> <value name="A"> <block type="time_get" id="XxDJ([Q/krzl)8bC[73R"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field> </block> </value> <value name="B"> <block type="text" id="[diw~YlKbN*QZ.^x~1g9"> <field name="TEXT">Samstag</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="%jM+lj|QFkV%3YJ|3W3y"> <field name="OP">EQ</field> <value name="A"> <block type="time_get" id="j^in7`l(Z=Yd3[wyYW)w"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field> </block> </value> <value name="B"> <block type="text" id="XacY]dNg2rv%K+[hl$J5"> <field name="TEXT">Sonntag</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="pqT{._OGO4w~MyDfX0PK"> <value name="IF0"> <block type="logic_compare" id="JobPVbc@UlsqE3CkUFVp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="OVO|jrL-WT30Jry2OZ(e"> <field name="ATTR">val</field> <field name="OID">javascript.0.wecklicht.daniel.wecklicht_we</field> </block> </value> <value name="B"> <block type="text" id="TwtR*YRvRHno7v[?BC{y"> <field name="TEXT">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="u-9CIbd[zCSSHU.g#p=`"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.wecklicht.daniel.wecklicht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w7eIGh@d(,`QJhL]6C)B"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="X{K:=U%hgz2W~}JQ}6wN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.wecklicht.daniel.wecklicht</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">15</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Vpp:;aE*:=r$NGFhtMQ-"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </xml>
-
Hallo @Kuddel,
was ist das wecklicht.weckzeit_cron_restart für ein DB? -
@hofmannha bei jeder Änderung oder Neustart des Skripts wird darüber der Cron-Job neugestartet
-
Hallo,
erstmal Respekt...Super Visualisierung und tolle, praktische Skripts! Ich habe dadurch eine Menge gelernt.
Mein Tablet hat Probleme die Visualisierung darzustellen bzw. es dauert ewig Am Seite zur Seite zu wechseln.
Am PC funktioniert es eigentlich relativ flüssig.Ich benutze dafür ein Lenovo Tab 2 A10-70F.
Meint Ihr liegt es am Tablet oder könnte mit der Visualisierung zu tun haben?
Welches Tablet würdet Ihr mir vorschlagen? Reichen die 2GB RAM?
-
@Kuddel
vielen Dank für deine View. Nun eine Frage: benutze dein Menü. Ich habe es soweit verstanden, wie ich meine Views einbinden kann. Aber an den submenüs scheitere ich. Die Hauptviews werden angezeigt, aber nicht die Subviews...
-
@jannis ich benutzte ein Samsung Galaxy TAB A 9.7
Ist mitlerweile auch schon ein paar Jahre alt und braucht auch so 5 Sekunden und mehr um eine andere Seite darzustellen
-
@jwerlsdf kannst du mal posten, was du so eingetragen hast?
Dann kann ich das mit meinen Einstellungen vergleichen
-
@Kuddel
Moin, derzeit verwende ich bei uns zuhause den MagicMirror, wenn ich aber das hier sehe haut es mich von den Socken.
Habe mir nun eunen neuen pi 4 mit 4GB bestellt und eine sandisk ultra mit 128 GB (sollte dafür doch ausreichen)
Sollte ich Fragen bei der Einrichtung haben, darf ich da auf dich oder die Community zukommen?Habe für die Visualisierung noch ein älteres Tablet in der Schublade, welches ich dafür verwenden möchte.
Welche App zur Darstellung ist am Besten geeignet? KioskBrowser?Freue mich von euch zu hören
BG
SARCux -
@SARCux du kannst natürlich gerne Fragen stellen. Entweder hier oder auch gern per PN.
Ich nutze auf meinem schon etw. älteren Galaxy Tab A 9.7 den Fully Kiosk Browser.
Gerade mit einer Lizenz ist der Brwoser Top, da man das Tablet auslesen kann (Akkustand z.B.).
-
@Kuddel
Hatte mir vor zwei Jahren mal so ein China Tablet zugelegt.
Hoffe das ich den Fully da noch raufbekomme.
Werde es vorher mal testen und sobal der pi angekommen ist, geht es los. Bin gespannt ob ich meine Shellys einbinden kann und auch steuern.
Klappt das auch mit Sonos und Alexa?Ein Fire Tab habe ich auch noch rumfliegen....
-
@SARCux was genau meinst du mit "Klappt das auch mit Sonos und Alexa"?
Ich habe keine Sonos Geräte, nutze aber verschiedene Echode Devices zur Steuerung.
-
@Kuddel
ich stelle mir eine Vis für die Küche vor (dort hängt der Sonos) und beim antippen eines Sender (wenn drei zur auswahl als Icon) das es dann über den Sonos in der Küche wiedergegeben wird -
@SARCux wenn man den Sonos in ioBroker integrieren kann, geht das bestimmt.
Mit Sonos kenne ich mich allerdings nicht aus.
-
Vorab schonmal danke für die schnellen Antworten.
Ich warte jetzt mal auf die Lieferung des pi und gehen dann Schritt für Schritt an den io broker ran.
Es werden dann sicherlich Fragen auftauchen, die ich ier bestimmt beantwortet bekomme.
BG
SARCux -
Hallo Kuddel,
ich bin ja von deiner Vis begeistert und baue sie fleissig nach ich bin gerade bei den iobroker Adaptern und dem Javascript (adapter_infos.). Leider bekomme ich folgende Meldungen bei dem Script kannst du mir da helfen was der Fehler dort ist ?
12:58:07.905 error javascript.0 (1355) at script.js.java.abfragen.adapter_infos:14:39 12:58:07.905 error javascript.0 (1355) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) 12:58:22.813 warn javascript.0 (1355) at script.js.java.abfragen.adapter_infos:35:18 12:58:22.814 warn javascript.0 (1355) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) 12:58:22.815 warn javascript.0 (1355) at script.js.java.abfragen.adapter_infos:47:19 12:58:22.816 warn javascript.0 (1355) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19)
wäre super wenn mir da jemand helfen kann
gruß
Marhal -
@marhal das ist meine aktuelle Version:
// Liest die ioBroker Adapter aus und legt verschiedenen State's an. //on({id:"system.adapter.admin.0.uptime",change:'any'}, function (obj) { on({id:"system.adapter.admin.0.uptime",change:'any'}, function (obj) { createState('Adapter.Anzahl', 0, { name: 'Anzahl', desc: 'Anzahl der Adapter', type: 'number', unit: '', min: '0', max: '255', role: '',read: true, write: true }); createState('Adapter.AdapterNummer', 0, { name: 'Adapter zum schalten', desc: 'Adapter zum schalten', type: 'number', unit: '', min: '0', max: '255', role: '',read: true, write: true }); //var counterAlt = getState("javascript.0.Adapter.Anzahl").val; var counter =0; var on = 0 var manuell=0 var cacheSelector = $('[id=system.adapter.*.alive]'); cacheSelector.each(function(id, i) { var devicename = getObject(id).common.name; //Instanzen ausklammern instanz0 = devicename.indexOf('daswetter'); instanz1 = devicename.indexOf('dwd'); instanz2 = devicename.indexOf('ical'); instanz3 = devicename.indexOf('feiertage'); instanz4 = devicename.indexOf('snmp.1'); instanz5 = devicename.indexOf('vis.0'); instanz6 = devicename.indexOf('yamaha.0'); if(instanz0 !=0 && instanz1 != 0 && instanz2 !=0 && instanz3 != 0 && instanz4 != 0 && instanz5 !=0 && instanz6 !=0){ var devicenameName=devicename; var instanzname=getObject(id).common.name; var test = devicenameName; var devicename_array = devicenameName.split(' '); devicenameName = devicename_array[0]; counter = counter+1; var strStatePath = "system.adapter." + devicenameName + ".alive"; if (isState(strStatePath, true)) { var uptime = getState("system.adapter." + devicenameName + ".uptime").val; var tage = Math.floor(uptime / (24*3600)); var stunden = Math.floor((uptime % (24*3600))/3600); var minuten = Math.floor((uptime % (3600))/60); //var sekunden = Math.floor(uptime % 60); if (stunden < 10) {stunden = "0"+stunden}; if (minuten < 10) {minuten = "0"+minuten}; if (tage == 1) {uptime = tage.toString()+" Tag, "+stunden.toString()+" Std, "+minuten.toString()+" Min ";}; if (tage != 1) {uptime = tage.toString()+" Tage, "+stunden.toString()+" Std, "+minuten.toString()+" Min ";} //var total = getState("system.adapter." + devicenameName + ".memHeapTotal").val; //var used = getState("system.adapter." + devicenameName + ".memHeapUsed").val; //var rss = getState("system.adapter." + devicenameName + ".memRss").val; var connect = getState("system.adapter." + devicenameName + ".alive").val; if(connect == false){var con = 0;} else { var con = 1; var strStatePath = devicenameName + ".info.connection"; if (isState(strStatePath, true)) { var connectS = getState(devicenameName + ".info.connection").val; if (connectS == false) { con = 2; } } } if(con==1) {on = on + 1} } devicename="Adapter.Adapter"+counter.toString()+".KompletterNameAdapter"; createState(devicename, 'empty', { name: 'Kompletter Name des Adapters', desc: '', type: 'string', role: '',read: true, write: true }); setStateDelayed(devicename, devicenameName, 800); var contentstring = devicenameName; var suchstring = /(ical)/g; var suchergebnis = suchstring.test( contentstring ); if (suchergebnis != true) { var devicename_array = devicenameName.split('.'); devicenameName = devicename_array[0]; } if (devicenameName == "daswetter") { var bild = "/" + devicenameName + ".admin/" + devicenameName + "com.png"; } else if (suchergebnis != false) { var devicename_array = devicenameName.split('.'); var icalName = devicename_array[0]; var bild = "/" + icalName + ".admin/" + icalName + ".png"; } else { var bild = "/" + devicenameName + ".admin/" + devicenameName + ".png"; } //Alexa2 if (devicenameName == 'alexa2') {var bild = "/" + devicenameName + ".admin/" + "alexa.png";} //FritzDECT if (devicenameName == 'fritzdect') {var bild = "/" + devicenameName + ".admin/" + "fritzdect_logo.png";} //FullyBrowser if (devicenameName == 'fullybrowser') {var bild = "/" + devicenameName + ".admin/" + "fully.png";} //HM-Rega //if (devicenameName == 'hm-rega') {var bild = "/" + devicenameName + ".admin/" + "homematic.png";} if (devicenameName == 'hm-rega') {var bild = "/vis.0/VIS/Meine_Icons/Adapter_Icons/homematic.gif";} //HomeMatic //if (instanzname == 'hm-rpc.0 alive') {var bild = "/" + devicenameName + ".admin/" + "homematic.png";} if (instanzname == 'hm-rpc.0 alive') {var bild = "/vis.0/VIS/Meine_Icons/Adapter_Icons/homematic.gif";} //HomeMatic-IP //if (instanzname == 'hm-rpc.1 alive') {var bild = "/" + devicenameName + ".admin/" + "homematic.png";} if (instanzname == 'hm-rpc.1 alive') {var bild = "/vis.0/VIS/Meine_Icons/Adapter_Icons/homematic_ip.jpg";} //UPNP if (devicenameName == 'upnp') {var bild = "/" + devicenameName + ".admin/" + "upnp-discovery.png";} //Pushover.1 if (instanzname == 'pushover.1 alive') {var bild = "/mihome-vacuum.admin/mihome-vacuum.png";} //Pushover.2 if (instanzname == 'pushover.2 alive') {var bild = "/daswetter.admin/daswettercom.png";} /////////////////////// //AdapterName anpassen //////////////////////// //DasWetter if (instanzname == 'daswetter.0 alive') {devicenameName='DasWetter'; manuell=1} //DWD if (instanzname == 'dwd.0 alive') {devicenameName='DWD'; manuell=1} //HM-REGA if (instanzname == 'hm-rega.0 alive') {devicenameName='HM-Rega'; manuell=1} //HM-RPC.0 if (instanzname == 'hm-rpc.0 alive') {devicenameName='HomeMatic'; manuell=1} //HM-RPC.1 if (instanzname == 'hm-rpc.1 alive') {devicenameName='HM-IP'; manuell=1} //MiHome-Vacuum if (instanzname == 'mihome-vacuum.0 alive') {devicenameName='Nono'; manuell=1} //Pushover if (instanzname == 'pushover.0 alive') {devicenameName='Pushover.0'; manuell=1} if (instanzname == 'pushover.1 alive') {devicenameName='Pushover.1'; manuell=1} if (instanzname == 'pushover.2 alive') {devicenameName='Pushover.2'; manuell=1} //Simple-API if (instanzname == 'simple-api.0 alive') {devicenameName='Simple-API'; manuell=1} //SNMP.0 if (instanzname == 'snmp.0 alive') {devicenameName='SNMP.0'; manuell=1} //SNMP.1 if (instanzname == 'snmp.1 alive') {devicenameName='SNMP.1'; manuell=1} //Spotify if (instanzname == 'spotify-premium.0 alive') {devicenameName='Spotify'; manuell=1} //TR-064.0 if (instanzname == 'tr-064.0 alive') {devicenameName='TR-064.0'; manuell=1} //TR-064.1 if (instanzname == 'tr-064.1 alive') {devicenameName='TR-064.1'; manuell=1} //XPEnology if (instanzname == 'synology.1 alive') {devicenameName='XPEnology'; manuell=1} //Instanz-Namen setzen if(manuell!=1) {devicenameName = devicenameName.substring(0, 1).toUpperCase() + devicenameName.substring(1).toLowerCase();} //devicenameName = devicenameName.substring(0, 1).toUpperCase() + devicenameName.substring(1).toLowerCase(); devicename="Adapter.Adapter"+counter.toString()+".NameInstanz"; createState(devicename, 'empty', { name: 'Name des Geräts', desc: '', type: 'string', role: '',read: true, write: true }); setStateDelayed(devicename, devicenameName, 800); //Bild Pfad setzen devicename="Adapter.Adapter"+counter.toString()+".Bild"; createState(devicename, 'empty', { name: 'Speicherort Bild', desc: '', type: 'string', role: '',read: true, write: true }); setStateDelayed(devicename, bild, 800); //Uptime setzen devicename="Adapter.Adapter"+counter.toString()+".Uptime"; createState(devicename, 'empty', { name: 'Uptime', desc: '', type: 'string', role: '',read: true, write: true }); setStateDelayed(devicename, uptime, 800); //MemUsed setzen //devicename="Adapter.Adapter"+counter.toString()+".MemUsed"; //createState(devicename, 0, { name: 'Link MemUsed', desc: '', type: 'number', role: '',read: true, write: true }); //setStateDelayed(devicename, used, 800); //MemToal setzen //devicename="Adapter.Adapter"+counter.toString()+".MemTotal"; //createState(devicename, 0, { name: 'Link MemTotal', desc: '', type: 'number', role: '',read: true, write: true }); //setStateDelayed(devicename, total, 800); //MemRSS setzen //devicename="Adapter.Adapter"+counter.toString()+".MemRSS"; //createState(devicename, 0, { name: 'Link MemRSS', desc: '', type: 'number', role: '',read: true, write: true }); //setStateDelayed(devicename, rss, 800); //Connected setzen devicename="Adapter.Adapter"+counter.toString()+".Connected"; createState(devicename, 0, { name: 'Status Adapter', desc: '', type: 'number', role: '',read: true, write: true }); setStateDelayed(devicename, con, 800); //Wert zurücksetzen var manuell=0 } }); //Adaptet Icon Übersicht visstatus="javascript.0.VIS-Status.alle_adapter_gestartet"; if(on == counter){setState(visstatus, true);} if(on == counter -1){setState(visstatus, true);} if(on < counter -1){setState(visstatus, false);} setStateDelayed('Adapter.Anzahl', counter, 800); function isState(strStatePath, strict) { let mSelector; if (strict) { mSelector = $('state[id=' + strStatePath + '$]'); } else { mSelector = $('state[id=' + strStatePath + ']'); } if (mSelector.length > 0) { return true; } else { return false; } } }); on({id:"javascript.0.Adapter.AdapterNummer", change: 'any'}, function (dpobj) { if (getState("javascript.0.Adapter.AdapterNummer").val != 0) { const instanz = "javascript." + instance; var adapterNummer = getState(instanz + ".Adapter.AdapterNummer").val; var adapter = getState(instanz + ".Adapter.Adapter" + adapterNummer + ".KompletterNameAdapter").val; // Name und Instanz des Adapters var idAdapter = "system.adapter." + adapter; var obj = getObject(idAdapter); if (dpobj.state.val == false) { obj.common.enabled = true; // Adapter einschalten } else if (dpobj.state.val == true) { obj.common.enabled = false; // Adapter ausschalten } setObject(idAdapter, obj); setStateDelayed('javascript.0.Adapter.AdapterNummer', 0, 800); } });