@jkvarel Ist es möglich, als Widget Form ein Hexagon integrieren bzw. auswählen zu können ?
Das wäre mal der Hammer
Soweit hatte ich im Sinn:
@jkvarel Ist es möglich, als Widget Form ein Hexagon integrieren bzw. auswählen zu können ?
Das wäre mal der Hammer
Soweit hatte ich im Sinn:
@michael-roling: Gut gemacht, gefällt mir
@liv-in-sky vielen Dank... es eilt nicht und ich bin dankbar für jede Hilfe
@skvarel: echt gut geworden, sehr geil
@liv-in-sky Ist es ohne große Mühe möglich,
alle Scripte (inkl. Unterordner) --> javascript.0.scriptEnabled. X*.X* enable ? aufzulisten,
optimal wäre noch bei "enable grüner Haken / disable--> rotes X".
Ich glaube, da hätte auch viele Leute Freude dran
@sebastian-io: Ich hab´s nochmal etwas optimiert, da doch einige Drucke im laufe des Tages kamen... daher habe ich einen seperaten DP zum drucken genommen... und mal ne schnelle Vis zusammen gebastelt...
So wird der gesprochene Text geschrieben und erst gedruckt, wenn ich (IOT) sagen, Fax an Oma Ella senden
Hintergrund ist der, das der Drucker als Fax für meine Oma gedacht ist, da die Corona Zeit doch sehr einsam macht und mit 91 Jahren Whatsapp doch zu komplex für sie ist, dachte ich mir, mit einem guten Zettel kann man sie doch glücklich stimmen..die gute Oma Ella da spreche ich kurz mit Alexa, oder schreibe per App, oder per Computer, oder nehme vordefinierte Texte per VIS...ist egal, geht ja alles... und die Frau ist happy, wenn der Drucker brummt....
Maximal komfortabel !!! Dank deine Idee... daher, nochmals vielen Dank für deine Hilfe zu meinem Projekt "Mach Oma Ella glücklich"
@mcchickents: sauber, super, nie aufgeben und immer dran bleiben...
Für mich war das auch das erste "komplizierte Project als nicht programmiererfahrerner Laborant aber nach über 2 Jahren Iobroker traut man sich irgendwann immer mehr....
@timowald Liefert dein Mqtt Adapter den die DP in der Ordnerstruktur von matt? Das script ließt diese Daten und wertet diese dann aus und schreibt diese dann unter 0_userdata !
@mcu sagte in VIS echarts Widget:
@agria4800 Läuft es jetzt auch mit rangeDP?
Ja, das manuelle verstellen der Zeitachse mit range funktioniert wunderbar, leider nicht das umschalten mit 0_userdata.0.echarts.fromRangeDP. Bei mir werden nicht die original Werte aus dem gespeicherten echart gezogen...
Er überschreibt die Werte aus dem rangeDB in die Objektdaten des echart; gepeichert sind im echart 1440, sobald ich einmal die Zeitachse mit range ändere, z.b. 10080, dann ist der neue Wert gespeichert... War so nicht geplant, oder ?
Funktioniert das bei dir ?
@mcu sagte in VIS echarts Widget:
@agria4800 Einmal Objekte -> Expertenmodus an -> echarts.0 -> komplett anzeigen.
Du hast ein Leerzeichen eingegeben. Das darf nicht!
ja.... habe schon meinen Beitrag kommentiert
@agria4800 : ist schon interessant, wie schnell man sich mit einem leerzeichen einen fehler einbaut, ohne es zu merken...
achtet beim ausfüllen auf die korrekte Schreibweise, so hatte ich es und das ist nicht gut, lasst also nach der Trennung mit dem ";" keine Leerzeichen !!!
@mcu sagte in VIS echarts Widget:
@mike2712 Du hast Recht. Es funktioniert. Muss ich noch in der Doku beschreiben.
Hab es hier einmal beschrieben:
https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/system-effektprog./echartschange/vis-definition
Danke für das update, das umschalten der verschiedenen echarts funktioniert gut.
eider komme ich mit der Zeitachse Error vom Script her... bei manchen echarts geht es, bei manchen nicht, da das script diese nicht findet... z.b.: Heizungstaktung !
(EDIT: Eigenverschulden, Leerzeichen nach ";" war das Problem! Script funktioniert prima!!!)
~~Bildschirmfoto 2022-12-01 um 20.11.18.png
0_userdata.0.echarts.fromRangeDP scheint bei mir auch nicht zu gehen.... false / true, keine Änderung... vielleicht habe ich auch auf die schnelle was falsch gemacht, gehe morgen nochmal mit etwas mehr Zeit dran. Achja, script Version ist die ChartsChange v1.0.2 .
Ansonsten mal ein großen Lob und Danke an euch @mcu, @mike2712, darauf habe ich schon lange gewartet.
Grüße Benny
@mcu sagte in VIS echarts Widget:
@mike2712 sagte in VIS echarts Widget:
"echart_oid":"0_userdata.0.echarts.echartsDP}"
Eine Klammer vergessen
"echart_oid":"{0_userdata.0.echarts.echartsDP}"
Ich versuche mich auch gerade an der echart selection, soweit meine ich es auch verstanden zu haben, nur wo genau muss ich das eintragen?
"echart_oid":"{0_userdata.0.echarts.echartsDP}"
und hier noch die VIS View dazu:
Export Vis View
{
"settings": {
"style": {
"background_class": "",
"background": "#2F303C"
},
"theme": "dark-hive",
"sizex": "1365",
"sizey": "873",
"gridSize": "10",
"snapType": 0,
"useBackground": true
},
"widgets": {
"e00001": {
"tpl": "tplHtml",
"data": {
"g_fixed": true,
"g_visibility": true,
"g_css_font_text": false,
"g_css_background": false,
"g_css_shadow_padding": false,
"g_css_border": true,
"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,
"html": "<video controls autoplay loop muted width=\"600\" height=\"335\" src=\"{0_userdata.0.RINGCAM.VIS.Vis-Videoselection}\" type=\"video/mp4\"></video>\n\n",
"visibility-oid": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection",
"comment": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection",
"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
},
"style": {
"left": "32px",
"top": "354px",
"z-index": "100",
"width": "590px",
"height": "335px",
"border-radius": "5px",
"border-color": "#333333",
"border-width": "1px",
"border-style": "solid"
},
"widgetSet": "basic"
},
"e00002": {
"tpl": "i-vis-image-new",
"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,
"iCornerRadiusUL": "0",
"iCornerRadiusUR": "0",
"iCornerRadiusLR": "0",
"iCornerRadiusLL": "0",
"iImgRotation": "0",
"iOpacityCtn": "1",
"iImgBlinkFalse": "0",
"iImgBlinkTrue": "0",
"iImgColorFalse": "",
"iImgColorTrue": "",
"iImgScaleType": "iStretch",
"iImgTileSize": "29",
"iShadowSpread": "0",
"iShadowSpreadInner": "0",
"iShadowBlur": "0",
"iShadowColor": "#111111",
"iShadowColorActive": "#111111",
"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,
"iImageFalse": "",
"iImageTrue": "/vis-icontwo/Backgrounds/101.jpg",
"iPointerEvents": true,
"views": [
"Alarm",
"Corona",
"ECharts",
"Home",
"Mutimedia",
"Netzwerk",
"Status",
"Status2",
"View_Gross",
"Wetter"
],
"name": "Frosted Quarter",
"class": "glass-panel",
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"locked": true
},
"style": {
"left": "8px",
"top": "8px",
"width": "1346px",
"height": "859px",
"z-index": "1"
},
"widgetSet": "vis-inventwo"
},
"e00003": {
"tpl": "tplHqButton",
"data": {
"oid": "0_userdata.0.RINGCAM.VIS.Play_all_Videos",
"min": "false",
"max": "true",
"iconName": "/vis.0/VIS_3/Clip play.png",
"btIconWidth": "60",
"offsetAuto": true,
"leftOffset": "0",
"topOffset": "0",
"timeAsInterval": false,
"infoLeftFontSize": "0",
"infoFontRightSize": "0",
"caption": "",
"captionOn": "",
"iconOn": "/vis.0/VIS_3/Icon/arrow_refresh_15732.png",
"pushButton": false,
"usejQueryStyle": false,
"g_visibility": false,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"styleActive": "hq-button-no-background",
"name": "play all videos",
"infoLeftPaddingLeft": "0",
"infoLeftPaddingRight": "0",
"infoRightPaddingRight": "0",
"descriptionLeft": "Find",
"readOnly": false,
"styleNormal": "hq-button-no-background",
"changeEffect": "",
"g_signals": 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,
"g_ccontrol": false,
"g_css_background": false,
"g_css_border": false,
"g_css_shadow_padding": false,
"g_gestures": false,
"g_last_change": 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
},
"style": {
"left": "49px",
"top": "53px",
"width": "56px",
"height": "36px",
"z-index": "100",
"text-align": "center",
"font-size": "small",
"color": "black"
},
"widgetSet": "hqwidgets"
},
"e00004": {
"tpl": "tplValueLastchange",
"data": {
"oid": "ring.0.cocoa_54698816.Livestream.moment",
"g_fixed": true,
"g_visibility": true,
"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": "0",
"visibility-groups-action": "hide",
"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,
"format_date": "hh:mm:ss DD.MM.YYYY ",
"html_prepend": "",
"html_append": "",
"visibility-oid": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection"
},
"style": {
"left": "123px",
"top": "698px",
"color": "white",
"width": "80px",
"height": "36px",
"z-index": "100",
"text-align": "center"
},
"widgetSet": "basic"
},
"e00005": {
"tpl": "tplHistoryEventList",
"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",
"max_lines": "50",
"format_date": "hh:mm:ss",
"time_name": "Time",
"time_width": "75",
"val_name": "Video",
"val_attr": "text-align: center;",
"from_name": "Form",
"from_hide": "true",
"class": "glass-panel",
"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,
"oid": "0_userdata.0.RINGCAM.History.Clip_Counter",
"instance": "history.0",
"time_interval_min": "24 hours",
"inverseOrder": false,
"timeAsInterval": false,
"table_attr": "",
"header_attr": "",
"val_width": "65"
},
"style": {
"left": "36px",
"top": "124px",
"width": "140px",
"height": "221px",
"z-index": "100",
"overflow-y": "auto"
},
"widgetSet": "history"
},
"e00006": {
"tpl": "tplJquiRadioList",
"data": {
"oid": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection",
"g_fixed": false,
"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",
"values": "0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20",
"texts": "last;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20",
"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
},
"style": {
"left": "155px",
"top": "49px",
"width": "1200px",
"height": "30px",
"z-index": "100",
"font-size": "18px"
},
"widgetSet": "jqui"
},
"e00007": {
"tpl": "tplImage",
"data": {
"g_fixed": true,
"g_visibility": false,
"g_css_font_text": false,
"g_css_background": false,
"g_css_shadow_padding": false,
"g_css_border": true,
"g_gestures": false,
"g_signals": false,
"g_last_change": false,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"refreshInterval": "10000",
"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,
"src": "/vis.0/RING/LAST_PIC.jpg",
"refreshOnWakeUp": true,
"refreshOnViewChange": true,
"stretch": true,
"class": ""
},
"style": {
"left": "741px",
"top": "354px",
"width": "590px",
"height": "335px",
"z-index": "200",
"border-radius": "5px",
"border-color": "#333333",
"border-style": "solid",
"border-width": "1px"
},
"widgetSet": "basic"
},
"e00008": {
"tpl": "tplValueLastchange",
"data": {
"oid": "ring.0.cocoa_54698816.Snapshot.moment",
"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,
"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,
"format_date": "hh:mm:ss DD.MM.YYYY ",
"html_prepend": "",
"html_append": "",
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide"
},
"style": {
"left": "1192px",
"top": "697px",
"color": "white",
"width": "133px",
"height": "37px",
"z-index": "100",
"text-align": "center"
},
"widgetSet": "basic"
},
"e00009": {
"tpl": "tplValueString",
"data": {
"oid": "0_userdata.0.RINGCAM.VIS.ClipID",
"g_fixed": false,
"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": true,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"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": false,
"lc-is-moment": false,
"lc-format": "DD.MM.YYYY hh:mm:ss",
"lc-position-vert": "top",
"lc-position-horz": "left",
"lc-offset-vert": "-4",
"lc-offset-horz": "200",
"lc-font-size": "small",
"lc-font-family": "",
"lc-font-style": "",
"lc-bkg-color": "transparent",
"lc-color": "#00aed6",
"lc-border-width": "0",
"lc-border-style": "",
"lc-border-color": "",
"lc-border-radius": 10,
"lc-zindex": 0,
"html_prepend": "Last Clip: ",
"lc-oid": "0_userdata.0.RINGCAM.VIS.ClipID"
},
"style": {
"left": "45px",
"top": "819px",
"width": "212px",
"height": "35px",
"text-align": "left",
"letter-spacing": "",
"word-spacing": "",
"z-index": "100",
"font-size": "small",
"overflow-x": "",
"color": "white"
},
"widgetSet": "basic"
},
"e00010": {
"tpl": "tplValueString",
"data": {
"oid": "0_userdata.0.RINGCAM.VIS.PicID",
"g_fixed": false,
"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": true,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"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": false,
"lc-is-moment": false,
"lc-format": "DD.MM.YYYY hh:mm:ss",
"lc-position-vert": "top",
"lc-position-horz": "left",
"lc-offset-vert": "-4",
"lc-offset-horz": "200",
"lc-font-size": "small",
"lc-font-family": "",
"lc-font-style": "",
"lc-bkg-color": "transparent",
"lc-color": "#00aed6",
"lc-border-width": "0",
"lc-border-style": "",
"lc-border-color": "",
"lc-border-radius": 10,
"lc-zindex": 0,
"html_prepend": "Last PIC: ",
"lc-oid": "0_userdata.0.RINGCAM.VIS.PicID"
},
"style": {
"left": "1125px",
"top": "820px",
"width": "212px",
"height": "35px",
"text-align": "left",
"letter-spacing": "",
"word-spacing": "",
"z-index": "100",
"font-size": "small",
"overflow-x": "",
"color": "white"
},
"widgetSet": "basic"
},
"e00011": {
"tpl": "tplValueString",
"data": {
"oid": "0_userdata.0.RINGCAM.VIS.Vis-Videoselection",
"g_fixed": false,
"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",
"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_prepend": "Trigger Nr: ",
"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
},
"style": {
"left": "157px",
"top": "98px",
"width": "768px",
"height": "20px",
"text-align": "left",
"letter-spacing": "",
"word-spacing": "",
"z-index": "100",
"font-size": "small",
"overflow-x": "",
"color": "white"
},
"widgetSet": "basic"
},
"e00012": {
"tpl": "tplHtml",
"data": {
"g_fixed": true,
"g_visibility": true,
"g_css_font_text": false,
"g_css_background": false,
"g_css_shadow_padding": false,
"g_css_border": true,
"g_gestures": false,
"g_signals": false,
"g_last_change": false,
"visibility-cond": "==",
"visibility-val": "0",
"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,
"html": "<video controls autoplay loop muted width=\"600\" height=\"335\" src=\"{0_userdata.0.RINGCAM.VIS.Vis-Videoselection}\" type=\"video/mp4\"></video>\n\n",
"visibility-oid": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection",
"comment": "0_userdata.0.RINGCAM.VIS.Trigger-Videoselection",
"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
},
"style": {
"left": "33px",
"top": "354px",
"z-index": "100",
"width": "590px",
"height": "335px",
"border-radius": "5px",
"border-color": "#333333",
"border-width": "1px",
"border-style": "solid"
},
"widgetSet": "basic"
},
"e00013": {
"tpl": "tplHistoryEventList",
"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",
"max_lines": "50",
"format_date": "hh:mm:ss",
"time_name": "Time",
"time_width": "75",
"val_name": "PIC",
"val_attr": "text-align: center;",
"from_name": "Form",
"from_hide": "true",
"class": "glass-panel",
"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,
"oid": "0_userdata.0.RINGCAM.ZAEHLER",
"instance": "history.0",
"time_interval_min": "24 hours",
"inverseOrder": false,
"timeAsInterval": false,
"table_attr": "",
"header_attr": "",
"val_width": "65"
},
"style": {
"left": "1187px",
"top": "124px",
"width": "140px",
"height": "221px",
"z-index": "100",
"overflow-y": "auto"
},
"widgetSet": "history"
},
"e00014": {
"tpl": "tplJquiRadioList",
"data": {
"oid": "ring.0.Location_24b5ab8a-cf52-4fc0-a298-5099ee8fda1b.locationMode",
"g_fixed": false,
"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",
"values": "home;away;disarmed",
"texts": "Zuhause; Abwesent; inaktiv..!",
"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
},
"style": {
"left": "514px",
"top": "159px",
"z-index": "200"
},
"widgetSet": "jqui"
},
"e00015": {
"tpl": "tplHqButton",
"data": {
"oid": "ring.0.cocoa_54698816.Livestream.livestream_request",
"min": "",
"max": "true",
"iconName": "",
"btIconWidth": "0",
"offsetAuto": false,
"leftOffset": "0",
"topOffset": "0",
"timeAsInterval": false,
"infoLeftFontSize": "12",
"infoFontRightSize": "12",
"caption": "",
"captionOn": "Erstelle Video...",
"iconOn": "",
"gestures-offsetX": 0,
"gestures-offsetY": 0,
"signals-cond-0": "==",
"signals-val-0": "false",
"signals-icon-0": "/vis.0/VIS_3/Clip play.png",
"signals-icon-size-0": "52",
"signals-blink-0": false,
"signals-horz-0": "24",
"signals-vert-0": "3",
"signals-hide-edit-0": false,
"signals-cond-1": "==",
"signals-val-1": "false",
"signals-icon-1": "/vis.0/VIS_3/Icon/Ring.png",
"signals-icon-size-1": "94",
"signals-blink-1": false,
"signals-horz-1": "-20",
"signals-vert-1": "12",
"signals-hide-edit-1": false,
"signals-cond-2": "==",
"signals-val-2": "true",
"signals-icon-2": "/vis.0/VIS_3/Icon/arrow_refresh_15732.png",
"signals-icon-size-2": "71",
"signals-blink-2": true,
"signals-horz-2": "11",
"signals-vert-2": "23",
"signals-hide-edit-2": false,
"pushButton": false,
"usejQueryStyle": false,
"g_visibility": false,
"styleActive": "hq-button-base-intemp",
"name": "Go Home",
"infoLeftPaddingLeft": "15",
"infoLeftPaddingRight": "50",
"infoRightPaddingRight": "15",
"gestures-swipeLeft-limit": "-1",
"gestures-rotateLeft-limit": "2",
"styleNormal": "hq-button-no-background",
"lc-type": "last-change",
"lc-is-interval": true,
"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,
"descriptionLeft": "Go home",
"lc-is-moment": false,
"lc-zindex": 0,
"descriptionLeftDisabled": true,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"signals-oid-2": "ring.0.cocoa_54698816.Livestream.livestream_request",
"signals-oid-0": "ring.0.cocoa_54698816.Livestream.livestream_request",
"signals-oid-1": "ring.0.cocoa_54698816.Livestream.livestream_request"
},
"style": {
"left": "240px",
"top": "252px",
"width": "95px",
"height": "93px",
"border-width": "",
"border-style": "",
"border-color": "",
"border-radius": "10px",
"z-index": "100",
"text-align": "center",
"font-size": "small",
"box-shadow": "2px 2px 3px rgba(255, 255, 255, 50)",
"background-color": ""
},
"widgetSet": "hqwidgets"
},
"e00016": {
"tpl": "tplHqButton",
"data": {
"oid": "ring.0.cocoa_54698816.Snapshot.snapshot_request",
"min": "",
"max": "true",
"iconName": "",
"btIconWidth": "0",
"offsetAuto": false,
"leftOffset": "0",
"topOffset": "0",
"timeAsInterval": false,
"infoLeftFontSize": "12",
"infoFontRightSize": "12",
"caption": "",
"captionOn": "Erstelle Foto...",
"iconOn": "",
"gestures-offsetX": 0,
"gestures-offsetY": 0,
"signals-cond-0": "==",
"signals-val-0": "false",
"signals-icon-0": "/vis.0/VIS_3/Icon/aperture_24123.png",
"signals-icon-size-0": "52",
"signals-blink-0": false,
"signals-horz-0": "24",
"signals-vert-0": "3",
"signals-hide-edit-0": false,
"signals-cond-1": "==",
"signals-val-1": "false",
"signals-icon-1": "/vis.0/VIS_3/Icon/Ring.png",
"signals-icon-size-1": "94",
"signals-blink-1": false,
"signals-horz-1": "-20",
"signals-vert-1": "12",
"signals-hide-edit-1": false,
"signals-cond-2": "==",
"signals-val-2": "true",
"signals-icon-2": "/vis.0/VIS_3/Icon/arrow_refresh_15732.png",
"signals-icon-size-2": "71",
"signals-blink-2": true,
"signals-horz-2": "11",
"signals-vert-2": "23",
"signals-hide-edit-2": false,
"pushButton": false,
"usejQueryStyle": false,
"g_visibility": false,
"styleActive": "hq-button-base-intemp",
"name": "Go Home",
"infoLeftPaddingLeft": "15",
"infoLeftPaddingRight": "50",
"infoRightPaddingRight": "15",
"gestures-swipeLeft-limit": "-1",
"gestures-rotateLeft-limit": "2",
"styleNormal": "hq-button-no-background",
"lc-type": "last-change",
"lc-is-interval": true,
"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,
"descriptionLeft": "Go home",
"lc-is-moment": false,
"lc-zindex": 0,
"descriptionLeftDisabled": true,
"visibility-cond": "==",
"visibility-val": 1,
"visibility-groups-action": "hide",
"signals-oid-2": "ring.0.cocoa_54698816.Snapshot.snapshot_request",
"signals-oid-0": "ring.0.cocoa_54698816.Snapshot.snapshot_request",
"signals-oid-1": "ring.0.cocoa_54698816.Snapshot.snapshot_request"
},
"style": {
"left": "1014px",
"top": "253px",
"width": "95px",
"height": "93px",
"border-width": "",
"border-style": "",
"border-color": "",
"border-radius": "10px",
"z-index": "100",
"text-align": "center",
"font-size": "small",
"box-shadow": "2px 2px 3px rgba(255, 255, 255, 50)",
"background-color": ""
},
"widgetSet": "hqwidgets"
}
},
"name": "08_Ring",
"filterList": []
}
@chrislenz Aufgrund einiger Chat anfragen hier mal meine Scripte zu dem Ring Adapter V3.XX
Für die Experten unter uns: Ich bin kein Experte und habe es mir per try & error zusammen gebaut, da ist mit Sicherheit jede Menge Potenzial zum verbessern vorhanden, was gerne getan und gepostet werden darf !
Edit: Es kann sein, das noch ein paar Datenpunkte händig angelegt werden müssen, teils habe ich es aber in den Scripten mit drin....
Blockly Export_1
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</variable>
<variable id="0iXk0G^mPW(Ge`C3Bn~5">Quelle Pic</variable>
<variable id="T*FIUM{~xbt05}L}O*5J">PicName</variable>
<variable id="E][YL|8Q)A/~rwq}TJ5i">Quelle Clip</variable>
<variable id="UfkDZiMzbP`V|TQJn}UE">ClipName</variable>
</variables>
<block type="comment" id="S,o(nT~|A0@md(~Jg*yU" x="-138" y="-638">
<field name="COMMENT">Einmal ausführen für DP anlegen!</field>
<next>
<block type="create" id="+Mnrtzh0Ur=]eFm?1KK#" collapsed="true">
<field name="NAME">0_userdata.0.RINGCAM.VIS.PicID</field>
<value name="VALUE">
<block type="text" id="SI~88vL[OA:GpT~*X`sh">
<field name="TEXT">Pic ID</field>
</block>
</value>
<value name="COMMON">
<block type="text_join" id="0Rq6Mw`_6LP)vB9qM)!n">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="v/.vhwI5qM|3j-?^`ufB">
<field name="TEXT">{</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="XyYw/26P;4ivrJ{Q:l}n">
<field name="TEXT">"name":"PIC ID",</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="S1eEK{]_!B@U2$2J`0QR">
<field name="TEXT">"type":"string",</field>
</block>
</value>
<value name="ADD3">
<block type="text" id="(+Kk6RCU+icer(Z~Kv1%">
<field name="TEXT">"read":true,</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="a=RttiDHfJeF-~riB79W">
<field name="TEXT">"write":true,</field>
</block>
</value>
<value name="ADD5">
<block type="text" id="YY%@%Z=R/!E|u~61f_,l">
<field name="TEXT">"role":"state"</field>
</block>
</value>
<value name="ADD6">
<block type="text" id="6fRb{?Xz~N%zWuysBT~n">
<field name="TEXT">}</field>
</block>
</value>
</block>
</value>
<statement name="STATEMENT">
<block type="debug" id="nmJ[P$O;Hd{LY^x65l.K">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="nTn5-LYEY-H1HTK3$J7Y">
<field name="TEXT">Der DP wurde angelegt</field>
</shadow>
</value>
</block>
</statement>
<next>
<block type="create" id="GJxU]RTgRyGS;KWI#T$2" collapsed="true">
<field name="NAME">0_userdata.0.RINGCAM.VIS.ClipID</field>
<value name="VALUE">
<block type="text" id="aAvrh0ynr(Gxln251yk-">
<field name="TEXT">Clip ID</field>
</block>
</value>
<value name="COMMON">
<block type="text_join" id="FAHbSVToA$RQMU?rXD^^">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="`i]n6NeDtO^ofxT3Rtt?">
<field name="TEXT">{</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="g-A@hy5CxRV~J`_Dd[^5">
<field name="TEXT">"name":"Clip ID",</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="o9[v2FS`W1`6Jc.`rW3k">
<field name="TEXT">"type":"string",</field>
</block>
</value>
<value name="ADD3">
<block type="text" id="/PW6Nq/7-V_5yL2[tNg^">
<field name="TEXT">"read":true,</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="F=(l}ui/+p|+4l8;*Ma7">
<field name="TEXT">"write":true,</field>
</block>
</value>
<value name="ADD5">
<block type="text" id="zQi}AD(w0.p2LuyS$#Z}">
<field name="TEXT">"role":"state"</field>
</block>
</value>
<value name="ADD6">
<block type="text" id="{VW-.yE[)(%CT)^e[:em">
<field name="TEXT">}</field>
</block>
</value>
</block>
</value>
<statement name="STATEMENT">
<block type="debug" id="Cj%v_o`muvlAj(LSpEf]">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="-^LmFO1+4%AA4A@CqPEH">
<field name="TEXT">Der DP wurde angelegt</field>
</shadow>
</value>
</block>
</statement>
<next>
<block type="on_ext" id="r|GuWbpkE/B#4Wz8(9Nz">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="n/^-}ZE/caG^T%,qC2t=">
<field name="oid">ring.0.cocoa_54698816.Snapshot.snapshot_file</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="timeouts_wait" id="!bq]]G4g!0i:Gzx@|uQG">
<field name="DELAY">100</field>
<field name="UNIT">ms</field>
<next>
<block type="variables_set" id="+(92|lTRhRo5Ef7z(iZ(">
<field name="VAR" id="0iXk0G^mPW(Ge`C3Bn~5">Quelle Pic</field>
<value name="VALUE">
<block type="get_value" id="_(cfQVt);u$Xfo#zE4U,">
<field name="ATTR">val</field>
<field name="OID">ring.0.cocoa_54698816.Snapshot.snapshot_file</field>
</block>
</value>
<next>
<block type="variables_set" id=")q6s39_P0HIzv)i]#.FD">
<field name="VAR" id="T*FIUM{~xbt05}L}O*5J">PicName</field>
<value name="VALUE">
<block type="text_getSubstring" id=":+mtb@G~3+2d)vMZ]Z~}">
<mutation at1="true" at2="false"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">LAST</field>
<value name="STRING">
<block type="variables_get" id="xt[:_3j:7%X*Y}!d{CH-">
<field name="VAR" id="0iXk0G^mPW(Ge`C3Bn~5">Quelle Pic</field>
</block>
</value>
<value name="AT1">
<block type="math_number" id="=.W-R{wU!3Q)`Xv=4Bx;">
<field name="NUM">57</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="o)2E(8JcN}3$lsOdvRhn">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.RINGCAM.VIS.PicID</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id=":,@Kqx[^@0#eDE1vmJa=">
<field name="VAR" id="T*FIUM{~xbt05}L}O*5J">PicName</field>
</block>
</value>
<next>
<block type="debug" id="w%G##xsGR*_6G-yh7x-1" disabled="true">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="t,(j%X[k]mwzA^Oh{9pw">
<field name="TEXT">ID</field>
</shadow>
<block type="text_join" id="Q~gAa|}mY~-7eXdaV|Cn">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="LX`M}wdnJ)jKB![[cnzC">
<field name="TEXT">PIC ID erzeugt:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="Nd6^}:XMBJFWFHd))I!j">
<field name="VAR" id="T*FIUM{~xbt05}L}O*5J">PicName</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on_ext" id=",u40z=7x)dS.l*f#!?pM">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=":Z2Uc{,D2q9p6|{3f$;;">
<field name="oid">ring.0.cocoa_54698816.Livestream.livestream_file</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="timeouts_wait" id="Pv)rE2bF07M)yi}=1JZR">
<field name="DELAY">100</field>
<field name="UNIT">ms</field>
<next>
<block type="variables_set" id="/1Q=Q;@=_*ruu./cU]vE">
<field name="VAR" id="E][YL|8Q)A/~rwq}TJ5i">Quelle Clip</field>
<value name="VALUE">
<block type="get_value" id="vqA@4WT;MX:^=obS|A$+">
<field name="ATTR">val</field>
<field name="OID">ring.0.cocoa_54698816.Livestream.livestream_file</field>
</block>
</value>
<next>
<block type="variables_set" id="p2,CG)o$bpv~~w-$#*_a">
<field name="VAR" id="UfkDZiMzbP`V|TQJn}UE">ClipName</field>
<value name="VALUE">
<block type="text_getSubstring" id="!RJGPJW}1%vNeHtb3:f.">
<mutation at1="true" at2="false"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">LAST</field>
<value name="STRING">
<block type="variables_get" id=",t0%KMm9vT@9XNT-2+|j">
<field name="VAR" id="E][YL|8Q)A/~rwq}TJ5i">Quelle Clip</field>
</block>
</value>
<value name="AT1">
<block type="math_number" id="l]7!PSt5?T?-C|h|+blY">
<field name="NUM">57</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="[DTnPH/A7mGFkFgXvFCW">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.RINGCAM.VIS.ClipID</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="s22_mg3t!9hcn|!7GFww">
<field name="VAR" id="UfkDZiMzbP`V|TQJn}UE">ClipName</field>
</block>
</value>
<next>
<block type="debug" id="jL(h)VG[hSo9:DE^^4u2" disabled="true">
<field name="Severity">warn</field>
<value name="TEXT">
<shadow type="text" id="JIyR][YGn1/:`l(:S{XP">
<field name="TEXT">ID</field>
</shadow>
<block type="variables_get" id="3|ysMef?W0yB_G0C39Jt">
<field name="VAR" id="UfkDZiMzbP`V|TQJn}UE">ClipName</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="text" id="zPkmaWN6_P31iQCJnZzz" x="613" y="-113">
<field name="TEXT">http://nuc1:8082/state/ring.0.cocoa_54698816.</field>
</block>
<block type="on_ext" id="zr%8z1V7,;J~?dOedQRf" x="-113" y="87">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="S0dsw6ShK{JiDtseIMiv">
<field name="oid">0_userdata.0.RINGCAM.History.Clip_Counter</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="Twr*Gr}A(u1mMmsG|0M@" disabled="true">
<field name="VAR" id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</field>
<value name="VALUE">
<block type="text_join" id="?P]8c2v^/FRsm^fqD*8r">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="text" id="[=ky}r2z)7ZjGq,FGBLz">
<field name="TEXT">http://192.168.178.52:8082/vis.0/RING/CLIP_Nr</field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="G{:Uc~-~b0?!8a]x4V]*">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.RINGCAM.History.Clip_Counter</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="7k*hg@kE:O^VF(`LUdh*">
<field name="TEXT">.mp4</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="0OjD,IYB}JL?+8~43-:E">
<field name="VAR" id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</field>
<value name="VALUE">
<block type="text_join" id="LHt?_7xH3~KUTpSHY8y~">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="$(_!h:gM-pB=2hCRf0c(">
<field name="TEXT">http://192.168.178.149:8082/vis.0/RING/</field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id=":l{YtL9s:J6ro/}5aAMv">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.RINGCAM.VIS.ClipID</field>
</block>
</value>
</block>
</value>
<next>
<block type="debug" id="9]*v8uuPb8.DWD{o2CR:">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id=":fbrS?l_rHVY,Q+{z1/E">
<field name="TEXT">ID</field>
</shadow>
<block type="variables_get" id="KY+lQ`txs)`P+l#0d2Ar">
<field name="VAR" id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</field>
</block>
</value>
<next>
<block type="update" id="8u6v{JIwPm9b!5:Ej:D!">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.RINGCAM.History.Triggerlink</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="O54{W*I)AA$:||8TO_`.">
<field name="VAR" id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</field>
</block>
</value>
<next>
<block type="update" id=":1D=5vvVuV_rxb.7C:VT" disabled="true">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.RINGCAM.History.Video-Nr_0</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="!m]bm:PM:R54UPphDgB@">
<field name="VAR" id="*Pu|q5}$^A#wAi.MnJ:i">Triggerlink</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
JS Export_2
//+++++++++++ Script Livestream Selection VIS ++++++++++++++
var Triggerlink ;
var Counter ;
schedule('{"time":{"exactTime":true,"start":"0:01"},"period":{"days":1}}', async function () { Counter = 0;});
////DP2.0 steuert als trigger neue DP mit Ergebniss
//on({id: '0_userdata.0.DP2.0', change: "ne"}, async function (obj) {
on({id: '0_userdata.0.RINGCAM.VIS.ClipID', change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Counter = (typeof Counter == 'number' ? Counter : 0) + 1;
//console.warn(Counter);
const path = '0_userdata.0.RINGCAM.History.Video-Nr_';
setState("0_userdata.0.RINGCAM.History.Clip_Counter", Counter);
const id = path + Counter ;
//const idname = DP;
const idname = "Date: " + formatDate(new Date(), "hh:mm:ss");
//erstelle neuen DP
createState(id, {type: 'string', name: idname, def: "" ,unit: '', desc: 'Script', role: 'value'});
await wait(200);
//Schreibe Daten in den neuen DP
setState(id, getState('0_userdata.0.RINGCAM.History.Triggerlink').val, true);
//+++++++++++ Script Livestream current ++++++++++++++
await wait(1000);
var request = require('request');
var fs = require('fs');
const body1 = fs.readFileSync('/opt/iobroker/node_modules/iobroker.ring/cocoa_54698816/' + getState('0_userdata.0.RINGCAM.VIS.ClipID').val);
// @ts-ignore
writeFile("vis.0", "/RING/" + (getState('0_userdata.0.RINGCAM.VIS.ClipID').val), body1);
});
//+++++++++++ Script Snapshot current++++++++++++++
on({id: '0_userdata.0.RINGCAM.VIS.PicID', change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
await wait(100);
var request = require('request');
var fs = require('fs');
var ring = getState('0_userdata.0.RINGCAM.VIS.PicID').val;
console.log("RING-Bild erzeugt:ID1 " + ring);
const body = fs.readFileSync('/opt/iobroker/node_modules/iobroker.ring/cocoa_54698816/' + getState('0_userdata.0.RINGCAM.VIS.PicID').val);
// const body = fs.readFileSync('/opt/iobroker/node_modules/iobroker.ring/snapshot/' + ring);
writeFile("vis.0", "/RING/LAST_PIC.jpg", body);
});
JS Export_3
var my_0,my_1, my_2, my_3, my_4, my_5, my_6, my_7, my_8, my_9, my_10, my_11, my_12, my_13, my_14, my_15, my_16, my_17, my_18, my_19, my_20;
//https://forum.iobroker.net/topic/52607/script-w%C3%B6chentl-l%C3%B6schen-von-videos-ring-klingelanlage/3
/*
on({id: '0_userdata.0.RINGCAM.VIS.Trigger-Videoselection', change: "ne"}, async function (obj) {
var value = obj.state.val;
if (value >= 0 && value <= 30) {
const newSelect = await getStateAsync('0_userdata.0.RINGCAM.History.Video-Nr_' + value)
SetStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection", newSelect.val, 100, false);
}
});
*/
// Renaming at 0:06 time
schedule("6 0 * * *", async function () {
setState("0_userdata.0.RINGCAM.History.Video-Nr_1"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_2"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_3"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_4"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_5"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_6"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_7"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_8"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_9"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_10"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_11"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_12"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_13"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_14"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_15"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_16"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_17"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_18"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_19"/*Date: 10:10:01*/, '0', true);
setState("0_userdata.0.RINGCAM.History.Video-Nr_20"/*Date: 10:10:01*/, '0', true);
});
on({id: '0_userdata.0.RINGCAM.VIS.Trigger-Videoselection', change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
my_0 = getState("0_userdata.0.RINGCAM.History.Video-Nr_0").val;
my_1 = getState("0_userdata.0.RINGCAM.History.Video-Nr_1").val;
my_2 = getState("0_userdata.0.RINGCAM.History.Video-Nr_2").val;
my_3 = getState("0_userdata.0.RINGCAM.History.Video-Nr_3").val;
my_4 = getState("0_userdata.0.RINGCAM.History.Video-Nr_4").val;
my_5 = getState("0_userdata.0.RINGCAM.History.Video-Nr_5").val;
my_6 = getState("0_userdata.0.RINGCAM.History.Video-Nr_6").val;
my_7 = getState("0_userdata.0.RINGCAM.History.Video-Nr_7").val;
my_8 = getState("0_userdata.0.RINGCAM.History.Video-Nr_8").val;
my_9 = getState("0_userdata.0.RINGCAM.History.Video-Nr_9").val;
my_10 = getState("0_userdata.0.RINGCAM.History.Video-Nr_10").val;
my_11 = getState("0_userdata.0.RINGCAM.History.Video-Nr_11").val;
my_12 = getState("0_userdata.0.RINGCAM.History.Video-Nr_12").val;
my_13 = getState("0_userdata.0.RINGCAM.History.Video-Nr_13").val;
my_14 = getState("0_userdata.0.RINGCAM.History.Video-Nr_14").val;
my_15 = getState("0_userdata.0.RINGCAM.History.Video-Nr_15").val;
my_16 = getState("0_userdata.0.RINGCAM.History.Video-Nr_16").val;
my_17 = getState("0_userdata.0.RINGCAM.History.Video-Nr_17").val;
my_18 = getState("0_userdata.0.RINGCAM.History.Video-Nr_18").val;
my_19 = getState("0_userdata.0.RINGCAM.History.Video-Nr_19").val;
my_20 = getState("0_userdata.0.RINGCAM.History.Video-Nr_20").val;
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 0) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_0, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 1) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_1, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 2) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_2, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 3) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_3, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 4) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_4, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 5) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_5, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 6) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_6, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 7) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_7, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 8) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_8, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 9) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_9, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 10) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_10, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 11) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_11, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 12) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_12, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 13) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_13, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 14) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_14, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 15) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_15, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 16) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_16, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 17) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_17, 10, false);
}
if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 18) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_18, 10, false);
} if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 19) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_19, 10, false);
} if (getState("0_userdata.0.RINGCAM.VIS.Trigger-Videoselection").val == 20) {
setStateDelayed("0_userdata.0.RINGCAM.VIS.Vis-Videoselection"/*Vis-Videoselection*/, my_20, 10, false);
}
});
JS Export_4
/*****Letztes Kamerabild Giethoorn RING**************************************
** November 2020
https://forum.iobroker.net/topic/40333/ring-video-oder-bild-in-vis-einbinden-wer-kann-helfen/2
** RING, Kamera
** ring.0.doorbell_54698816
** Ermittelt das letzte gespeicherte Bild von RING
** geändert:11.11.20
************************************************************/
//createState('0_userdata.0.RINGCAM.LetztesBild', {name: 'LetztesBild', type: 'string', def: '0',unit: '', desc: 'Beschreibung', role: 'value'});
//createState('0_userdata.0.RINGCAM.SDate', {name: 'LASTSDate', type: 'string', def: '0',unit: '', desc: 'Beschreibung', role: 'value'});
//createState('0_userdata.0.RINGCAM.ZAEHLER', {name: 'ZAEHLER', type: 'string', def: '0',unit: '', desc: 'Beschreibung', role: 'value'});
var old_recent;
var old_create;
var create;
var path = require('path');
var fs = require('fs');
var request = require('request');
on({id: 'ring.0.cocoa_54698816.Snapshot.snapshot_file', change: "ne"}, async function (obj) {
old_recent = getState('0_userdata.0.RINGCAM.LetztesBild').val;
old_create = getState('ring.0.cocoa_54698816.History.created_at').val;
create = getState('ring.0.cocoa_54698816.History.created_at').val;
log(old_create);
var getMostRecent = function (dir, cb) {
var dir = path.resolve(dir);
var files = fs.readdir(dir, function (err, files) {
var sorted = files.map(function (v) {
var filepath = path.resolve(dir, v);
return {
name: v,
time: fs.statSync(filepath).mtime.getTime()
};
})
.sort(function (a, b) { return b.time - a.time; })
.map(function (v) { return v.name; });
if (sorted.length > 0) {
cb(null, sorted[0]);
} else {
cb('NO have files in this dir?');
}
})
}
getMostRecent('/opt/iobroker/node_modules/iobroker.ring/cocoa_54698816/', function (err, recent) {
if (err) console.error(err);
console.log(recent);
setState('0_userdata.0.RINGCAM.LetztesBild', recent);
setState('0_userdata.0.RINGCAM.SDate', formatDate(new Date(create), "TT.MM.JJ hh:mm"));
});
});
Blockly Export_5
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</variable>
<variable type="timeout" id="timeout2">timeout2</variable>
</variables>
<block type="comment" id="8:[[%Y-?k-EJ[{g53U)g" x="309" y="-399">
<field name="COMMENT">Rückstellung auf false</field>
<next>
<block type="on_ext" id="9VP)tV,]1Nt#1eT(riX?">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="41F{MBo}|..vtO)v[gzE">
<field name="oid">ring.0.cocoa_54698816.Livestream.moment</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id="DcK/Cn#HL)`28$_N[b|,">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">ring.0.cocoa_54698816.Livestream.livestream_request</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="/|uiuDXW.LN6GdzL(S]M">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="on_ext" id="nRK$c^%w[JQV1bNCt(~v">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="(F`Br1,/EG0j*@h;Y}$U">
<field name="oid">ring.0.cocoa_54698816.Snapshot.moment</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id="):$BM~m2e9yGplC]Pb71">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">ring.0.cocoa_54698816.Snapshot.snapshot_request</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="`fqc-)m70(]=7~ATsw/b">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="%K$GG{1[aNjv:h1[@1x)">
<field name="COMMENT">Lösche alle Sanpshots im Ring Ordner</field>
<next>
<block type="comment" id="e[$JT1IW%*SC8P?E^fW:">
<field name="COMMENT">https://forum.iobroker.net/topic/52607/script-w%C3%B6chentl-l%C3%B6schen-von-videos-ring-klingelanlage/1?_=1645123911704</field>
<next>
<block type="schedule" id="lE9o=#)#Dr@p|xu9Hi4k">
<field name="SCHEDULE">1 0 * * *</field>
<statement name="STATEMENT">
<block type="exec" id="vq/HciL75Ptb/5?2[!lN">
<mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
<field name="WITH_STATEMENT">FALSE</field>
<field name="LOG">warn</field>
<value name="COMMAND">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="text" id="g{o2fheG/.8J-Z5O:-nO">
<field name="TEXT">find /opt/iobroker/node_modules/iobroker.ring/cocoa_54698816/ -exec rm -rv {} \;</field>
</block>
</value>
<next>
<block type="exec" id="Myc8qD!AUIdj)_0O@t{3">
<mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
<field name="WITH_STATEMENT">FALSE</field>
<field name="LOG">warn</field>
<value name="COMMAND">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="text" id="=3S%h,7_Df8-$2?,xZ=]">
<field name="TEXT">find /opt/iobroker/iobroker-data/files/vis.0/RING/ -exec rm -rv {} \;</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="l92!hs@Xnx71Ve7+JST_">
<field name="NAME">timeout2</field>
<field name="DELAY">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="exec" id="b1pBow1^@[U5124.jiGt">
<mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
<field name="WITH_STATEMENT">FALSE</field>
<field name="LOG">warn</field>
<value name="COMMAND">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="text" id="A]ar9ZIe3MFZft}DXST(">
<field name="TEXT">mkdir -p /opt/iobroker/node_modules/iobroker.ring/cocoa_54698816//</field>
</block>
</value>
<next>
<block type="exec" id="6jCB2a*Nf)xWpxb)[8*V">
<mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
<field name="WITH_STATEMENT">FALSE</field>
<field name="LOG">warn</field>
<value name="COMMAND">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="text" id="Z+~p?%K^203xTB)R;FOR">
<field name="TEXT">mkdir -p /opt/iobroker/iobroker-data/files/vis.0/RING/</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="%ggE%eu%-VXV9K9Iw*h.">
<field name="COMMENT">Video Zähler</field>
<next>
<block type="variables_set" id="ZygyGHhC*({@Hn@k$SC?">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
<value name="VALUE">
<block type="get_value" id="Y)?ei``@?:]P|xfu1D@W">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.RINGCAM.ZAEHLER</field>
</block>
</value>
<next>
<block type="control" id="p(J~19V{~9)doOlti5+d">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">0_userdata.0.RINGCAM.ZAEHLER</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">200</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="=9GFJ~8:8FR1o];k+kHx">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
</block>
</value>
<next>
<block type="on_ext" id="S$MSl6y7J-~0q*BJdO#/">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="]0aRd!A|TS-M67-:J76x">
<field name="oid">ring.0.cocoa_54698816.Snapshot.snapshot_file</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="R@WLT|TaWK|DMITu!pG8">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
<value name="VALUE">
<block type="get_value" id="l16j2n{}Du;q[AgHw]l^">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.RINGCAM.ZAEHLER</field>
</block>
</value>
<next>
<block type="timeouts_wait" id="$:327@~0G.;2C]aIW(m`">
<field name="DELAY">500</field>
<field name="UNIT">ms</field>
<next>
<block type="math_change" id="/UCvHV~/0Tr$(2w!|B8@">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
<value name="DELTA">
<shadow type="math_number" id="{}|ERo#Zt5)!@ZWk0#S2">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="${cw)O]zFaW36ht0VfiV">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="control" id="?y/b]9ai57NCFV1/uWBc">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">0_userdata.0.RINGCAM.ZAEHLER</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="[jj$N7B!Ovt;mM?7P_sf">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="*;Ow)`vyHcl%{Y)!W9)!">
<field name="COMMENT">PIC Zähler Reset 0:00</field>
<next>
<block type="schedule" id="_=up--.Ag%m=-@f|mfmT">
<field name="SCHEDULE">0 0 * * *</field>
<statement name="STATEMENT">
<block type="control" id=".XBCWff%[W6LJ6FWQ@U#">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.RINGCAM.ZAEHLER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="MgB#FPh7E:c)+5},!7me">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="debug" id=".;AY{Kk_l;}w,LhrwL=s">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="Aq|*lvxQ8u3bgXR0.0ID">
<field name="VAR" id=")@}u5cV*`=8Pn?3(_KC6">Zaehler PIC</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="}2yHN(MS{5sZ,VSs.!bt">
<field name="COMMENT">Mache ein Foto, wenn es klingelt</field>
<next>
<block type="on_ext" id="vy1NmbJ5IeL|@iaHQ$zE" disabled="true">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="q*%#L!}NGsU+ClsmaR4H">
<field name="oid">ring.0.cocoa_54698816.Livestream.moment</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="timeouts_wait" id="Oa^xQAn=AJ3C_z6QBOgZ">
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<next>
<block type="control" id="eRX[XqjV2/CW?bA;zqN.">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">ring.0.cocoa_54698816.Snapshot.snapshot_request</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="9853|4!MOHGVZFgZQp,b">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
@agria4800
Hiermit bekommt man die Zeiten ausgelesen:
var Souce_other, Source, RSSI, Times, Chlortime, Filtertime, Uptime, Pumptime, Heating, Airtime, Hydrojet_Time, Costs, Verbrauch;
on({id: [].concat(['mqtt.0.layzspa.other']), change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Souce_other = getState("mqtt.0.layzspa.other").val;
await wait(100);
RSSI = getAttr(Souce_other, 'RSSI');
setState("0_userdata.0.LazySpa.RSSI-Wifi"/*RSSI-Wifi*/, parseFloat(RSSI), true);
});
on({id: [].concat(['mqtt.0.layzspa.times']), change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Source = getState("mqtt.0.layzspa.times").val;
await wait(100);
Times = getAttr(Source, 'TIME');
setState("0_userdata.0.LazySpa.Times.Time"/*Time*/, parseFloat(Times), true);
Chlortime = getAttr(Source, 'CLTIME');
setState("0_userdata.0.LazySpa.Times.Chlor_Time"/*Chlor_Time*/, Chlortime, true);
Filtertime = getAttr(Source, 'FTIME');
setState("0_userdata.0.LazySpa.Times.Filter_Time"/*Filter_Time*/, parseFloat(Filtertime), true);
Uptime = getAttr(Source, 'UPTIME');
setState("0_userdata.0.LazySpa.Times.Up_Time"/*Up_Time*/, parseFloat(Uptime), true);
Pumptime = getAttr(Source, 'PUMPTIME');
setState("0_userdata.0.LazySpa.Times.Pump_Time"/*Pump_Time*/, parseFloat(Pumptime), true);
Heating = getAttr(Source, 'HEATINGTIME');
setState("0_userdata.0.LazySpa.Times.Heating_Time"/*Heating Time*/, parseFloat(Heating), true);
Airtime = getAttr(Source, 'AIRTIME');
setState("0_userdata.0.LazySpa.Times.Air_Time"/*Air_Time*/, parseFloat(Airtime), true);
Hydrojet_Time = getAttr(Source, 'JETTIME');
setState("0_userdata.0.LazySpa.Times.Hydrojet_Time"/*Hydrojet_Time*/, parseFloat(Hydrojet_Time), true);
Costs = getAttr(Source, 'COST');
setState("0_userdata.0.LazySpa.Times.Cost"/*Cost*/, parseFloat(Costs), true);
Verbrauch = getAttr(Source, 'KWH');
setState("0_userdata.0.LazySpa.Times.Verbrauch"/*Verbrauch*/, parseFloat(Verbrauch), true);
});
und hiermit werden sie umgeschrieben analog !
var Dauer, tage, std, min, sec;
// https://forum.iobroker.net/topic/13488/vorlage-blockly-umrechnung-von-sekunden-in-stunden-minuten-und-sekunden/11
on({id: "0_userdata.0.LazySpa.Times.Up_Time"/*Up_Time*/, change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Dauer = getState("0_userdata.0.LazySpa.Times.Up_Time").val;
tage = Math.floor(parseFloat(Dauer) / 86400);
Dauer = parseFloat(Dauer) - parseFloat(tage) * 86400;
std = Math.floor(parseFloat(Dauer) / 3600);
Dauer = parseFloat(Dauer) - parseFloat(std) * 3600;
min = Math.floor(parseFloat(Dauer) / 60);
Dauer = parseFloat(Dauer) - parseFloat(min) * 60;
sec = Math.floor(parseFloat(Dauer) / 1);
setState("0_userdata.0.LazySpa.Times.Format-Up-Time"/*Format-Up-Time*/, ([tage,'D - ',std,'h:',min,'min:',sec,'sec'].join('')));
});
on({id: "0_userdata.0.LazySpa.Times.Air_Time"/*Air_Time*/, change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Dauer = getState("0_userdata.0.LazySpa.Times.Air_Time").val;
tage = Math.floor(parseFloat(Dauer) / 86400);
Dauer = parseFloat(Dauer) - parseFloat(tage) * 86400;
std = Math.floor(parseFloat(Dauer) / 3600);
Dauer = parseFloat(Dauer) - parseFloat(std) * 3600;
min = Math.floor(parseFloat(Dauer) / 60);
Dauer = parseFloat(Dauer) - parseFloat(min) * 60;
sec = Math.floor(parseFloat(Dauer) / 1);
setState("0_userdata.0.LazySpa.Times.Format-Air-Time"/*Format-Air-Time*/, ([tage,'D - ',std,'h:',min,'min:',sec,'sec'].join('')));
});
on({id: "0_userdata.0.LazySpa.Times.Heating_Time"/*Heating Time*/, change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Dauer = getState("0_userdata.0.LazySpa.Times.Heating_Time").val;
tage = Math.floor(parseFloat(Dauer) / 86400);
Dauer = parseFloat(Dauer) - parseFloat(tage) * 86400;
std = Math.floor(parseFloat(Dauer) / 3600);
Dauer = parseFloat(Dauer) - parseFloat(std) * 3600;
min = Math.floor(parseFloat(Dauer) / 60);
Dauer = parseFloat(Dauer) - parseFloat(min) * 60;
sec = Math.floor(parseFloat(Dauer) / 1);
setState("0_userdata.0.LazySpa.Times.Format-Heating-Time"/*Format-Heating-Time*/, ([tage,'D - ',std,'h:',min,'min:',sec,'sec'].join('')));
});
on({id: "0_userdata.0.LazySpa.Times.Pump_Time"/*Pump_Time*/, change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Dauer = getState("0_userdata.0.LazySpa.Times.Pump_Time").val;
tage = Math.floor(parseFloat(Dauer) / 86400);
Dauer = parseFloat(Dauer) - parseFloat(tage) * 86400;
std = Math.floor(parseFloat(Dauer) / 3600);
Dauer = parseFloat(Dauer) - parseFloat(std) * 3600;
min = Math.floor(parseFloat(Dauer) / 60);
Dauer = parseFloat(Dauer) - parseFloat(min) * 60;
sec = Math.floor(parseFloat(Dauer) / 1);
setState("0_userdata.0.LazySpa.Times.Format-Pump-Time"/*Format-Pump-Time*/, ([tage,'D - ',std,'h:',min,'min:',sec,'sec'].join('')));
});
on({id: "0_userdata.0.LazySpa.Times.Hydrojet_Time"/*Hydrojet_Time*/, change: "ne"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
Dauer = getState("0_userdata.0.LazySpa.Times.Hydrojet_Time").val;
tage = Math.floor(parseFloat(Dauer) / 86400);
Dauer = parseFloat(Dauer) - parseFloat(tage) * 86400;
std = Math.floor(parseFloat(Dauer) / 3600);
Dauer = parseFloat(Dauer) - parseFloat(std) * 3600;
min = Math.floor(parseFloat(Dauer) / 60);
Dauer = parseFloat(Dauer) - parseFloat(min) * 60;
sec = Math.floor(parseFloat(Dauer) / 1);
setState("0_userdata.0.LazySpa.Times.Format-Hydrojet-Time"/*Format-Hydrojet-Time*/, ([tage,'D - ',std,'h:',min,'min:',sec,'sec'].join('')));
});