Dialogic Systems GmbH & Co. KG

Page tree

MobotixWatchdog > hc-watchdog , hc navigation

Mobotix Watchdog
[{"id":"9b5fa9a7.bab958","type":"tab","label":"Watchdog","disabled":false,"info":""},{"id":"cec2bb7b.88e508","type":"debug","z":"9b5fa9a7.bab958","name":"Watchdog","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":480,"y":160,"wires":[]},{"id":"c7ddc454.f31878","type":"udp out","z":"9b5fa9a7.bab958","name":"","addr":"192.168.2.220","iface":"","port":"5565","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":930,"y":180,"wires":[]},{"id":"56c77f30.28fc5","type":"udp in","z":"9b5fa9a7.bab958","name":"","iface":"","port":"5566","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":100,"y":160,"wires":[["cec2bb7b.88e508"]]},{"id":"816384e5.bb3208","type":"inject","z":"9b5fa9a7.bab958","name":"","topic":"","payload":"Start","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":0.1,"x":90,"y":220,"wires":[["90a1e572.2f7338"]]},{"id":"90a1e572.2f7338","type":"http request","z":"9b5fa9a7.bab958","name":"Mobotix Eingang","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.221","tls":"","persist":false,"proxy":"","authType":"","x":270,"y":220,"wires":[["274b1ace.187166"]]},{"id":"7bd9edd.341b714","type":"debug","z":"9b5fa9a7.bab958","name":"Mobotix","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":880,"y":220,"wires":[]},{"id":"274b1ace.187166","type":"switch","z":"9b5fa9a7.bab958","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"<!DOCTYPE HTML PUBLIC","vt":"str"},{"t":"nempty"}],"checkall":"false","repair":false,"outputs":2,"x":470,"y":220,"wires":[["5ffb9f70.b9d52"],["bfb0c7b8.c99008"]]},{"id":"bfb0c7b8.c99008","type":"debug","z":"9b5fa9a7.bab958","name":"Fehler ","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":650,"y":260,"wires":[]},{"id":"5ffb9f70.b9d52","type":"function","z":"9b5fa9a7.bab958","name":"payload change","func":"msg.payload = \"alive:alive\";\nreturn msg;","outputs":1,"noerr":0,"x":680,"y":200,"wires":[["7bd9edd.341b714","c7ddc454.f31878"]]}]

CAM PTZ Control > hc-camviewer

CamPTZControl_Camviewer
[{"id":"a70314c8.252f98","type":"tab","label":"Kamera Ptz Steuerung","disabled":false,"info":""},{"id":"37292d2c.6c52d2","type":"comment","z":"a70314c8.252f98","name":"UDP Telegramme vom Camviewer2 werden überprüft und ein neues vordefiniertes Telegram an die  PTZ Steuerung der Kamera gesendet.","info":"\n","x":520,"y":60,"wires":[]},{"id":"2380e719.0b3b78","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":140,"wires":[]},{"id":"da543d09.4d23a","type":"udp in","z":"a70314c8.252f98","name":"Udp von Camviewer2 local","iface":"","port":"55054","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":150,"y":280,"wires":[["1778f7de.412928","78d2808.458bf8","901cf7dc.eebbe8","7e7327d4.46f498","3a13c6ef.c36d4a","37fd15b3.ed680a"]]},{"id":"1778f7de.412928","type":"function","z":"a70314c8.252f98","name":"cam1 cmd changer","func":"switch(msg.payload) {\n  case \"Cam1Pos1\": msg.payload = \"cam1Pos1\";\n    return msg;\n  case \"Cam1Pos2\": msg.payload = \"com1Pos2\";\n    return msg;\n  case \"Cam1Pos3\": msg.payload = \"com1Pos3\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":140,"wires":[["2380e719.0b3b78"]]},{"id":"1c9bc9a4.522ff6","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":200,"wires":[]},{"id":"3e3f946c.7b202c","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":260,"wires":[]},{"id":"82b11140.a80a9","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":320,"wires":[]},{"id":"9fd5d847.163038","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":380,"wires":[]},{"id":"5e128687.8e6f98","type":"tcp out","z":"a70314c8.252f98","host":"192.168.1.230","port":"55055","beserver":"client","base64":false,"end":false,"name":"","x":890,"y":440,"wires":[]},{"id":"78d2808.458bf8","type":"function","z":"a70314c8.252f98","name":"cam2 cmd changer","func":"switch(msg.payload) {\n  case \"Cam2Pos1\": msg.payload = \"cam2Pos1\";\n    return msg;\n  case \"Cam2Pos2\": msg.payload = \"com2Pos2\";\n    return msg;\n  case \"Cam2Pos3\": msg.payload = \"com2Pos3\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":200,"wires":[["2380e719.0b3b78"]]},{"id":"901cf7dc.eebbe8","type":"function","z":"a70314c8.252f98","name":"cam3 cmd changer","func":"switch(msg.payload) {\n  case \"Cam3Pos1\": msg.payload = \"cam3Pos1\";\n    return msg;\n  case \"Cam3Pos2\": msg.payload = \"com3Pos2\";\n    return msg;\n  case \"Cam3Pos3\": msg.payload = \"com3Pos3\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":260,"wires":[["2380e719.0b3b78"]]},{"id":"7e7327d4.46f498","type":"function","z":"a70314c8.252f98","name":"cam4 cmd changer","func":"switch(msg.payload) {\n  case \"Cam4Pos1\": msg.payload = \"cam4Pos1\";\n    return msg;\n  case \"Cam4Pos1\": msg.payload = \"com4Pos1\";\n    return msg;\n  case \"Cam4Pos1\": msg.payload = \"com4Pos1\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":320,"wires":[["2380e719.0b3b78"]]},{"id":"37fd15b3.ed680a","type":"function","z":"a70314c8.252f98","name":"cam5 cmd changer","func":"switch(msg.payload) {\n  case \"Cam5Pos1\": msg.payload = \"cam5Pos1\";\n    return msg;\n  case \"Cam5Pos2\": msg.payload = \"com5Pos2\";\n    return msg;\n  case \"Cam5Pos3\": msg.payload = \"com5Pos3\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":380,"wires":[["2380e719.0b3b78"]]},{"id":"3a13c6ef.c36d4a","type":"function","z":"a70314c8.252f98","name":"cam6 cmd changer","func":"switch(msg.payload) {\n  case \"Cam6Pos1\": msg.payload = \"cam6Pos1\";\n    return msg;\n  case \"Cam6Pos2\": msg.payload = \"com6Pos2\";\n    return msg;\n  case \"Cam6Pos3\": msg.payload = \"com6Pos3\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":440,"wires":[["2380e719.0b3b78"]]}]

Sonos Türgong > hc-sipphone

Quellen: Packete > node-red-contrib-sonos-plus 2.1.7  (play_notification funktioniert nicht zuverlässig)

Sonos Türgong hc sipphone
[{"id":"9e605caf.04fea","type":"tab","label":"Sonos Türgong","disabled":false,"info":""},{"id":"a298395a.5ba178","type":"sonos-control-player","z":"9e605caf.04fea","confignode":"d0901383.4f256","name":"","x":880,"y":300,"wires":[["e5e66f2f.f7134"]]},{"id":"e5e66f2f.f7134","type":"debug","z":"9e605caf.04fea","name":"Control Player","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1060,"y":300,"wires":[]},{"id":"40dea410.00c54c","type":"inject","z":"9e605caf.04fea","name":"Test stop","topic":"","payload":"<State>Connected</State>","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":300,"wires":[["4c7907cb.02d098"]]},{"id":"3c224b32.f982e4","type":"inject","z":"9e605caf.04fea","name":"Test start (play)","topic":"","payload":"<State>Incoming</State>","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":240,"wires":[["4c7907cb.02d098"]]},{"id":"5baa084f.5207f8","type":"change","z":"9e605caf.04fea","name":"play_notification","rules":[{"t":"set","p":"payload","pt":"msg","to":"play_notification","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"http://192.168.1.168:1880/tuergong.wav","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"20","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":340,"wires":[["f1998e9c.903d7"]]},{"id":"b32a91a9.92977","type":"http in","z":"9e605caf.04fea","name":"","url":"/tuergong.wav","method":"get","upload":false,"swaggerDoc":"","x":170,"y":80,"wires":[["5fe7e56f.6e29dc"]]},{"id":"5fe7e56f.6e29dc","type":"file in","z":"9e605caf.04fea","name":"","filename":"D:/Musik/tuergong2.wav","format":"","x":450,"y":80,"wires":[["ce7cfa45.9574e8"]]},{"id":"ce7cfa45.9574e8","type":"http response","z":"9e605caf.04fea","name":"http://192.168.1.168:1880/tuergong.wav","statusCode":"","headers":{"content-type":"audio/mpeg"},"x":800,"y":80,"wires":[]},{"id":"67220dee.0b9264","type":"udp in","z":"9e605caf.04fea","name":"","iface":"","port":"55002","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":140,"y":180,"wires":[["d8b1a7e7.fcbf48","4c7907cb.02d098"]]},{"id":"4c7907cb.02d098","type":"function","z":"9e605caf.04fea","name":"Read SipphoneState","func":" const compareLastValue = (str) => {\n    let lastValue = context.get('lastValue');\n    if (lastValue == str) return true;\n\n    return false;\n};\n\n// prüfe ob string im payload vorhanden\nconst existStr = (str) => {\n    if (msg.payload.search(str) > -1) return true;\n    \n    return false;\n};\n\n// neue Messages erstellen\nconst setMessage = (str) => {\n    let newMsg = { payload: str };\n    return [newMsg,null]; // output 1\n};\n\n\nif (existStr(\"Incoming\") && !compareLastValue(\"Incoming\")) {\n    context.set('lastValue',\"Incoming\");\n    return [null,setMessage(\"play\")];\n}\n\nif (!existStr(\"Incoming\")){\n    // prüfe ob letzter Wert Incoming war\n    if (compareLastValue(\"Incoming\")) \n    {\n        context.set('lastValue',\"NotIncoming\");\n        return [setMessage(\"stop\"),null];\n    }\n} \nreturn;","outputs":2,"noerr":0,"x":440,"y":240,"wires":[["f1998e9c.903d7"],["5baa084f.5207f8","879e0e58.6cb4b"]]},{"id":"d8b1a7e7.fcbf48","type":"udp out","z":"9e605caf.04fea","name":"","addr":"127.0.0.1","iface":"","port":"55001","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":440,"y":180,"wires":[]},{"id":"879e0e58.6cb4b","type":"trigger","z":"9e605caf.04fea","op1":"","op2":"stop","op1type":"nul","op2type":"str","duration":"10","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":470,"y":300,"wires":[["f1998e9c.903d7"]]},{"id":"f1998e9c.903d7","type":"function","z":"9e605caf.04fea","name":"compare_msg","func":"const compareLastValue = (str) => {\n    let lastValue = context.get('lastValue');\n    if (lastValue == str) return true;\n    context.set('lastValue',str);\n    return false;\n};\n\nif (compareLastValue(msg.payload)) return;\n   \nreturn msg;","outputs":1,"noerr":0,"x":700,"y":300,"wires":[["a298395a.5ba178"]]},{"id":"5d5965da.4a1bbc","type":"comment","z":"9e605caf.04fea","name":"Sonos lädt Musik nur von http (Node-Red umstellen)","info":"","x":250,"y":40,"wires":[]},{"id":"bc5f901f.5b92f","type":"comment","z":"9e605caf.04fea","name":"Sipphone Port umstellen, play_notificationn anpassen und evtl Auslöser","info":"","x":310,"y":140,"wires":[]},{"id":"d0901383.4f256","type":"sonos-config","z":"","name":"Ausstellung","serialnum":"00-0E-58-7C-35-64:8","ipaddress":"192.168.1.155"}]

Sonos Türgong > hc-sipphone

Quellen: Packete > node-red-contrib-sonos-plus 2.1.7

Sonos Türgong
[{"id":"2853f874.2afff8","type":"tab","label":"Sonos Türgong (sipphone)","disabled":false,"info":""},{"id":"d5fd717b.77dbe","type":"inject","z":"2853f874.2afff8","name":"Test stop","topic":"","payload":"<State>Connected</State>","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":320,"wires":[["db55d813.08a9c8"]]},{"id":"390b75df.93a82a","type":"inject","z":"2853f874.2afff8","name":"Test start (play)","topic":"","payload":"<State>Incoming</State>","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":280,"wires":[["db55d813.08a9c8"]]},{"id":"7a299d2e.45b654","type":"change","z":"2853f874.2afff8","name":"play_notification","rules":[{"t":"set","p":"payload","pt":"msg","to":"play_httpradio","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"http://192.168.1.168:1880/tuergong.wav","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"20","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":360,"wires":[["8d5a0401.a439e8"]]},{"id":"a80dd3d6.b6278","type":"udp in","z":"2853f874.2afff8","name":"","iface":"","port":"55002","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":100,"y":240,"wires":[["ae943bbb.e97f88","db55d813.08a9c8"]]},{"id":"db55d813.08a9c8","type":"function","z":"2853f874.2afff8","name":"Read SipphoneState","func":" const compareLastValue = (str) => {\n    let lastValue = context.get('lastValue');\n    if (lastValue == str) return true;\n\n    return false;\n};\n\n// prüfe ob string im payload vorhanden\nconst existStr = (str) => {\n    if (msg.payload.search(str) > -1) return true;\n    \n    return false;\n};\n\n// neue Messages erstellen\nconst setMessage = (str) => {\n    let newMsg = { payload: str };\n    return [newMsg,null]; // output 1\n};\n\n\nif (existStr(\"Incoming\") && !compareLastValue(\"Incoming\")) {\n    context.set('lastValue',\"Incoming\");\n    return [null,setMessage(\"play\")];\n}\n\nif (!existStr(\"Incoming\")){\n    // prüfe ob letzter Wert Incoming war\n    if (compareLastValue(\"Incoming\")) \n    {\n        context.set('lastValue',\"NotIncoming\");\n        return [setMessage(\"stop\"),null];\n    }\n} \nreturn;","outputs":2,"noerr":0,"x":400,"y":280,"wires":[["8d5a0401.a439e8"],["7a299d2e.45b654","2356b0ae.0b7ce"]]},{"id":"ae943bbb.e97f88","type":"udp out","z":"2853f874.2afff8","name":"","addr":"127.0.0.1","iface":"","port":"55001","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":400,"y":240,"wires":[]},{"id":"2356b0ae.0b7ce","type":"trigger","z":"2853f874.2afff8","op1":"","op2":"stop","op1type":"nul","op2type":"str","duration":"10","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":370,"y":320,"wires":[["8d5a0401.a439e8"]]},{"id":"8d5a0401.a439e8","type":"function","z":"2853f874.2afff8","name":"compare_msg","func":"const compareLastValue = (str) => {\n    let lastValue = context.get('lastValue');\n    if (lastValue == str) return true;\n    context.set('lastValue',str);\n    return false;\n};\n\nif (compareLastValue(msg.payload)) return;\nif (msg.payload == \"stop\") return [null,msg]\n\nreturn msg;","outputs":2,"noerr":0,"x":680,"y":300,"wires":[["15172177.226ecf","b44957ff.cd3688"],["348a00d8.ef869"]]},{"id":"15172177.226ecf","type":"link out","z":"2853f874.2afff8","name":"","links":["3242ac1d.2bbb84","efe643f4.56ff1","f2bf8ae6.e8a868","71593740.d437f8"],"x":575,"y":240,"wires":[]},{"id":"3b26d347.9c4d4c","type":"http in","z":"2853f874.2afff8","name":"","url":"/tuergong.wav","method":"get","upload":false,"swaggerDoc":"","x":130,"y":80,"wires":[["24dc4e16.b67a12"]]},{"id":"24dc4e16.b67a12","type":"file in","z":"2853f874.2afff8","name":"","filename":"D:/Musik/tuergong2.wav","format":"","x":410,"y":80,"wires":[["d3c22398.9da05"]]},{"id":"d3c22398.9da05","type":"http response","z":"2853f874.2afff8","name":"http://192.168.1.168:1880/tuergong.wav","statusCode":"","headers":{"content-type":"audio/mpeg"},"x":760,"y":80,"wires":[]},{"id":"1984c5de.1c230a","type":"comment","z":"2853f874.2afff8","name":"Sonos lädt Musik nur von http (Node-Red umstellen)","info":"","x":210,"y":40,"wires":[]},{"id":"411ce117.73a8","type":"comment","z":"2853f874.2afff8","name":"sipphone Control","info":"","x":100,"y":180,"wires":[]},{"id":"348a00d8.ef869","type":"link out","z":"2853f874.2afff8","name":"wiederherstellen","links":["32cd99f1.965256","9e66d9d8.444668","cbf63868.cbb708","a7d3439d.3d066"],"x":615,"y":340,"wires":[]},{"id":"fb1a331d.1eb5f","type":"sonos-manage-radio","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":920,"y":240,"wires":[["b093fefe.56c19"]]},{"id":"b093fefe.56c19","type":"debug","z":"2853f874.2afff8","name":"httpPlay","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1200,"y":300,"wires":[]},{"id":"b44957ff.cd3688","type":"delay","z":"2853f874.2afff8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":700,"y":240,"wires":[["fb1a331d.1eb5f","512caacf.6f2534","c3c2c146.a3be6"]]},{"id":"8b3eb95e.d30638","type":"sonos-manage-radio","z":"2853f874.2afff8","confignode":"5a9ae98b.4e1608","name":"","x":920,"y":340,"wires":[["b093fefe.56c19"]]},{"id":"8a9b467c.90c0f8","type":"sonos-manage-radio","z":"2853f874.2afff8","confignode":"79184be3.d683a4","name":"","x":920,"y":440,"wires":[["b093fefe.56c19"]]},{"id":"a1750354.c9755","type":"sonos-get-status","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":370,"y":600,"wires":[["f2b6197e.305058"]]},{"id":"8be3c77a.6608e8","type":"debug","z":"2853f874.2afff8","name":"Get Status","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":770,"y":600,"wires":[]},{"id":"c6447bd9.df10b8","type":"inject","z":"2853f874.2afff8","name":"speichern","topic":"","payload":"get_basics","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":600,"wires":[["378a4134.a3b55e"]]},{"id":"f2b6197e.305058","type":"function","z":"2853f874.2afff8","name":"Set mediainfo","func":"let lastSonosValue = flow.get('lastSonosValue');\nlastSonosValue.queueActivated = msg.queueActivated;\n\nif (!msg.queueActivated){\n    lastSonosValue.radioId = msg.radioId;\n     //flow.set('lastSonosValue',sonosValue);\n    return [lastSonosValue,null];\n}\nmsg.payload = \"get_songinfo\"\nreturn [null,msg];","outputs":2,"noerr":0,"x":540,"y":600,"wires":[["8be3c77a.6608e8"],["ec311343.138e1"]]},{"id":"402deaea.7ef624","type":"function","z":"2853f874.2afff8","name":"GetData","func":"let lastSonosValue = flow.get('lastSonosValue');\nif (lastSonosValue == null) return;\nif (!lastSonosValue.queueActivated)\n{\n    msg.payload = lastSonosValue.radio\n    msg.topic = lastSonosValue.radioId\n    msg.volume = lastSonosValue.volume\n    return [msg,null]\n}\nmsg.payload = \"play_song\";//\"activate_queue\";\nmsg.topic = lastSonosValue.queuePosition//lastSonosValue.volume;\nreturn [null,msg]","outputs":2,"noerr":0,"x":160,"y":800,"wires":[["c91a6447.580578"],["1bfc759a.45c48a"]]},{"id":"aaa77430.cf1678","type":"inject","z":"2853f874.2afff8","name":"setzen","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":840,"wires":[["402deaea.7ef624"]]},{"id":"c91a6447.580578","type":"sonos-manage-radio","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":380,"y":760,"wires":[["2228c46d.45a7bc"]]},{"id":"1e569afc.b92025","type":"debug","z":"2853f874.2afff8","name":"Playlist","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1060,"y":900,"wires":[]},{"id":"1bfc759a.45c48a","type":"sonos-manage-queue","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":380,"y":840,"wires":[["f73aa8ab.11fd78"]]},{"id":"f73aa8ab.11fd78","type":"change","z":"2853f874.2afff8","name":"set seek","rules":[{"t":"set","p":"payload","pt":"msg","to":"seek","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"lastSonosValue.position","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":840,"wires":[["5d5e06b3.e15c58"]]},{"id":"5d5e06b3.e15c58","type":"sonos-manage-queue","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":740,"y":840,"wires":[["a812e798.32a078"]]},{"id":"6e59b589.0c43ac","type":"comment","z":"2853f874.2afff8","name":"Setzen","info":"","x":70,"y":720,"wires":[]},{"id":"9bbb2751.dd60b8","type":"function","z":"2853f874.2afff8","name":"Set basics","func":"    let sonosValue = { \n        //get_basic\n        state: msg.state,\n        volume: msg.volume,\n        muted: msg.muted,\n        \n        //get_mediainfo\n        queueActivated: false,\n        radio: \"play_tunein\",\n        radioId: \"\",\n        \n        //get_songinfo\n        uri: \"\",\n        queuePosition: \"\",\n        position: \"\",\n    };\n   flow.set('lastSonosValue',sonosValue);\nmsg.payload = \"get_mediainfo\";\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":560,"wires":[["a1750354.c9755"]]},{"id":"378a4134.a3b55e","type":"sonos-get-status","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":370,"y":560,"wires":[["9bbb2751.dd60b8"]]},{"id":"7ac4ab5c.63fe04","type":"function","z":"2853f874.2afff8","name":"Set songinfo","func":"let lastSonosValue = flow.get('lastSonosValue');\nlastSonosValue.queueActivated = msg.queueActivated;\nlastSonosValue.uri = msg.payload.uri;\nlastSonosValue.queuePosition = msg.payload.queuePosition;\nvar date = new Date(null);\ndate.setSeconds(msg.payload.position); // specify value for SECONDS here\nlastSonosValue.position =  date.toISOString().substr(11, 8);\nmsg.payload.position;\nreturn lastSonosValue;","outputs":1,"noerr":0,"x":530,"y":640,"wires":[["8be3c77a.6608e8"]]},{"id":"ec311343.138e1","type":"sonos-get-status","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":370,"y":640,"wires":[["7ac4ab5c.63fe04"]]},{"id":"71ddb9ce.deb768","type":"comment","z":"2853f874.2afff8","name":"Speichern","info":"","x":80,"y":480,"wires":[]},{"id":"65c69ff0.ef308","type":"sonos-control-player","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":740,"y":760,"wires":[["2635911.6f83e6e"]]},{"id":"2228c46d.45a7bc","type":"function","z":"2853f874.2afff8","name":"Set State","func":"let lastSonosValue = flow.get('lastSonosValue');\n//play/stop/pause/mute/ummute/\nif (lastSonosValue.state == \"stopped\") msg.payload = \"stop\";\nif (lastSonosValue.state == \"playing\") msg.payload = \"play\";\nif (lastSonosValue.state == \"paused\") msg.payload = \"pause\";\n\nmsg.topic = null;\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":760,"wires":[["65c69ff0.ef308"]]},{"id":"a8732bdf.923448","type":"debug","z":"2853f874.2afff8","name":"Radio","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":950,"y":800,"wires":[]},{"id":"2635911.6f83e6e","type":"function","z":"2853f874.2afff8","name":"Set mute / unmute","func":"let lastSonosValue = flow.get('lastSonosValue');\n\n//play/stop/pause/mute/ummute/\nif (lastSonosValue.muted) msg.payload = \"mute\";\nif (!lastSonosValue.muted) msg.payload = \"unmute\";\n\nmsg.topic = null;\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":800,"wires":[["2cd4dd0e.5d20b2"]]},{"id":"2cd4dd0e.5d20b2","type":"sonos-control-player","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":740,"y":800,"wires":[["a8732bdf.923448"]]},{"id":"4f2b52c3.ea57bc","type":"sonos-control-player","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":520,"y":900,"wires":[["b2783aaa.d18058"]]},{"id":"a812e798.32a078","type":"function","z":"2853f874.2afff8","name":"Set State","func":"let lastSonosValue = flow.get('lastSonosValue');\n//play/stop/pause/mute/ummute/\nif (lastSonosValue.state == \"stopped\") msg.payload = \"stop\";\nif (lastSonosValue.state == \"playing\") msg.payload = \"play\";\nif (lastSonosValue.state == \"paused\") msg.payload = \"pause\";\n\nmsg.topic = null;\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":900,"wires":[["4f2b52c3.ea57bc"]]},{"id":"b2783aaa.d18058","type":"function","z":"2853f874.2afff8","name":"Set mute / unmute","func":"let lastSonosValue = flow.get('lastSonosValue');\n\n//play/stop/pause/mute/ummute/\nif (lastSonosValue.muted) msg.payload = \"mute\";\nif (!lastSonosValue.muted) msg.payload = \"unmute\";\n\nmsg.topic = null;\nreturn msg;","outputs":1,"noerr":0,"x":710,"y":900,"wires":[["c983bba8.095348"]]},{"id":"c983bba8.095348","type":"sonos-control-player","z":"2853f874.2afff8","confignode":"8f2bef6d.a6b2f","name":"","x":900,"y":900,"wires":[["1e569afc.b92025"]]},{"id":"18f82cc6.ee27d3","type":"change","z":"2853f874.2afff8","name":"get_basics","rules":[{"t":"set","p":"payload","pt":"msg","to":"get_basics","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":150,"y":560,"wires":[["378a4134.a3b55e"]]},{"id":"71593740.d437f8","type":"link in","z":"2853f874.2afff8","name":"","links":["a10cee98.84604","15172177.226ecf"],"x":35,"y":560,"wires":[["18f82cc6.ee27d3"]]},{"id":"a7d3439d.3d066","type":"link in","z":"2853f874.2afff8","name":"","links":["35d572a1.b61a8e","348a00d8.ef869"],"x":35,"y":800,"wires":[["402deaea.7ef624"]]},{"id":"1d3d7d3a.a6c903","type":"comment","z":"2853f874.2afff8","name":"Speichern uns Setzen weiterer Zonen in eigen Flow","info":"","x":210,"y":440,"wires":[]},{"id":"c3c2c146.a3be6","type":"delay","z":"2853f874.2afff8","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":940,"y":400,"wires":[["8a9b467c.90c0f8"]]},{"id":"512caacf.6f2534","type":"delay","z":"2853f874.2afff8","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":940,"y":300,"wires":[["8b3eb95e.d30638"]]},{"id":"8f2bef6d.a6b2f","type":"sonos-config","z":"","name":"Ausstellung","serialnum":"00-0E-58-7C-35-64:8","ipaddress":"192.168.1.155"},{"id":"5a9ae98b.4e1608","type":"sonos-config","z":"","name":"Bad OG","serialnum":"00-0E-58-7C-34-6C:F","ipaddress":"192.168.1.88"},{"id":"79184be3.d683a4","type":"sonos-config","z":"","name":"Sommerhaus","serialnum":"00-0E-58-A1-7E-14:4","ipaddress":"192.168.1.97"}]

Steuerung Navigation 

Quellen: Packete > node-red-dashboard 2.19.4

Steuerung Navigation
[{"id":"14045c4d.b34114","type":"tab","label":"Steuerung Navigation","disabled":false,"info":""},{"id":"915dae91.54f54","type":"udp out","z":"14045c4d.b34114","name":"zu Navigation Local","addr":"127.0.0.1","iface":"","port":"55010","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":770,"y":300,"wires":[]},{"id":"9993708e.2224e","type":"ui_button","z":"14045c4d.b34114","name":"","group":"62c1517a.50052","order":3,"width":0,"height":0,"passthru":false,"label":"Anzeigen","tooltip":"","color":"","bgcolor":"","icon":"","payload":"navishow","payloadType":"str","topic":"","x":280,"y":80,"wires":[["915dae91.54f54"]]},{"id":"6f257e56.aa7ed","type":"ui_button","z":"14045c4d.b34114","name":"","group":"62c1517a.50052","order":3,"width":0,"height":0,"passthru":false,"label":"Verstecken","tooltip":"","color":"","bgcolor":"","icon":"","payload":"navihide","payloadType":"str","topic":"","x":290,"y":120,"wires":[["915dae91.54f54"]]},{"id":"ff6c8ef1.43de5","type":"ui_button","z":"14045c4d.b34114","name":"","group":"62c1517a.50052","order":3,"width":0,"height":0,"passthru":false,"label":"Exit","tooltip":"","color":"","bgcolor":"","icon":"","payload":"exit","payloadType":"str","topic":"","x":270,"y":160,"wires":[["915dae91.54f54"]]},{"id":"6f0312e.6c22eec","type":"ui_button","z":"14045c4d.b34114","name":"","group":"62c1517a.50052","order":3,"width":0,"height":0,"passthru":false,"label":"Sperren","tooltip":"","color":"","bgcolor":"","icon":"","payload":"lock:Hallo Welt;10","payloadType":"str","topic":"","x":280,"y":200,"wires":[["915dae91.54f54"]]},{"id":"6faa6d2c.fdb204","type":"ui_button","z":"14045c4d.b34114","name":"","group":"62c1517a.50052","order":3,"width":0,"height":0,"passthru":false,"label":"Entsperren","tooltip":"","color":"","bgcolor":"","icon":"","payload":"unlock:","payloadType":"str","topic":"","x":290,"y":240,"wires":[["915dae91.54f54"]]},{"id":"569b9dcb.9f2694","type":"ui_button","z":"14045c4d.b34114","name":"","group":"3d68996b.c76d06","order":3,"width":0,"height":0,"passthru":false,"label":"Mute (Ton aus)","tooltip":"","color":"","bgcolor":"","icon":"","payload":"mute","payloadType":"str","topic":"","x":300,"y":340,"wires":[["915dae91.54f54"]]},{"id":"79e9e510.69138c","type":"ui_button","z":"14045c4d.b34114","name":"","group":"3d68996b.c76d06","order":3,"width":0,"height":0,"passthru":false,"label":"UnMute (Ton an)","tooltip":"","color":"","bgcolor":"","icon":"","payload":"unmute","payloadType":"str","topic":"","x":310,"y":380,"wires":[["915dae91.54f54"]]},{"id":"87e75d6b.d146d","type":"ui_button","z":"14045c4d.b34114","name":"","group":"fa608f4b.98707","order":3,"width":0,"height":0,"passthru":false,"label":"Monitor An","tooltip":"","color":"","bgcolor":"","icon":"","payload":"monitoron","payloadType":"str","topic":"","x":290,"y":460,"wires":[["915dae91.54f54"]]},{"id":"20bd18d8.8c1298","type":"ui_button","z":"14045c4d.b34114","name":"","group":"fa608f4b.98707","order":3,"width":0,"height":0,"passthru":false,"label":"Monitor Aus","tooltip":"","color":"","bgcolor":"","icon":"","payload":"monitoroff","payloadType":"str","topic":"","x":290,"y":500,"wires":[["915dae91.54f54"]]},{"id":"580e88dc.7864e8","type":"ui_numeric","z":"14045c4d.b34114","name":"","label":"Umschalten zu Button","tooltip":"","group":"3d68996b.c76d06","order":1,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":10,"step":1,"x":320,"y":300,"wires":[["100d414d.8bcd7f"]]},{"id":"100d414d.8bcd7f","type":"function","z":"14045c4d.b34114","name":"switch:","func":"msg.payload = \"button:\" + msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":300,"wires":[["915dae91.54f54"]]},{"id":"2ede1a55.da56b6","type":"link in","z":"14045c4d.b34114","name":"FromKnx","links":["9141fd97.19b46"],"x":235,"y":540,"wires":[["30861ca2.c03444"]]},{"id":"30861ca2.c03444","type":"function","z":"14045c4d.b34114","name":"Monitor An / Aus","func":"switch(msg.payload) {\n  case true: msg.payload = \"monitoron\";\n    return msg;\n  case false: msg.payload = \"monitoroff\";\n    return msg;\n  default: return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":540,"wires":[["915dae91.54f54"]]},{"id":"62c1517a.50052","type":"ui_group","z":"","name":"Fenster","tab":"abd3222c.88f54","order":1,"disp":true,"width":"6","collapse":false},{"id":"3d68996b.c76d06","type":"ui_group","z":"","name":"Button","tab":"abd3222c.88f54","order":2,"disp":true,"width":"6","collapse":false},{"id":"fa608f4b.98707","type":"ui_group","z":"","name":"PC Steuerung","tab":"abd3222c.88f54","order":3,"disp":true,"width":"6","collapse":false},{"id":"abd3222c.88f54","type":"ui_tab","z":"","name":"Navigation","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Steuerung Knx

Quellen: Packete > node-red-contrib-knx-easy 0.3.3

Knx Sample
[{"id":"40745319.49a36c","type":"tab","label":"Knx","disabled":false,"info":""},{"id":"522fa3a6.f6ee7c","type":"knxEasy-in","z":"40745319.49a36c","server":"69efaddc.6d8704","topic":"10/0/1","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Büro Entwicklung","x":210,"y":80,"wires":[["f0f54c21.b27b7"]]},{"id":"2cc02702.540ad8","type":"knxEasy-out","z":"40745319.49a36c","server":"69efaddc.6d8704","topic":"10/5/0","dpt":"1.001","name":"Empfang","outputtype":"write","x":580,"y":300,"wires":[]},{"id":"cce4a364.494cd","type":"knxEasy-in","z":"40745319.49a36c","server":"69efaddc.6d8704","topic":"10/5/0","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Empfang","x":180,"y":140,"wires":[["f0f54c21.b27b7"]]},{"id":"f0f54c21.b27b7","type":"debug","z":"40745319.49a36c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":490,"y":100,"wires":[]},{"id":"c728c59f.cb1728","type":"inject","z":"40745319.49a36c","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":300,"wires":[["2cc02702.540ad8","27e17c60.d94eb4"]]},{"id":"27e17c60.d94eb4","type":"knxEasy-out","z":"40745319.49a36c","server":"69efaddc.6d8704","topic":"10/0/1","dpt":"1.001","name":"Büro Entwicklng","outputtype":"write","x":600,"y":360,"wires":[]},{"id":"296b4c20.76d504","type":"inject","z":"40745319.49a36c","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":360,"wires":[["2cc02702.540ad8","27e17c60.d94eb4"]]},{"id":"9141fd97.19b46","type":"link out","z":"40745319.49a36c","name":"","links":["2ede1a55.da56b6"],"x":435,"y":200,"wires":[]},{"id":"2f0a8550.d559fa","type":"knxEasy-in","z":"40745319.49a36c","server":"69efaddc.6d8704","topic":"10/5/1","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Gang Ausstellung","x":210,"y":200,"wires":[["9141fd97.19b46"]]},{"id":"69efaddc.6d8704","type":"knxEasy-config","z":"","host":"224.0.23.12","port":"3671"}]

Steuerung Camviewer 

Quellen: Packete > node-red-dashboard 2.19.4

Camviewer Control
[{"id":"969dec0f.172cf","type":"tab","label":"Camviewer Steuerung","disabled":false,"info":""},{"id":"5c8acf17.48369","type":"udp out","z":"969dec0f.172cf","name":"zu Camviewer Local","addr":"127.0.0.1","iface":"","port":"55001","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":740,"y":240,"wires":[]},{"id":"f521db1c.c4f638","type":"ui_button","z":"969dec0f.172cf","name":"","group":"6301312.18ee6d","order":0,"width":0,"height":0,"passthru":false,"label":"Verstecken","tooltip":"","color":"","bgcolor":"","icon":"","payload":"hide","payloadType":"str","topic":"","x":170,"y":20,"wires":[["5c8acf17.48369"]]},{"id":"6960af82.2e7e1","type":"ui_button","z":"969dec0f.172cf","name":"","group":"6301312.18ee6d","order":0,"width":0,"height":0,"passthru":false,"label":"Anzeigen","tooltip":"","color":"","bgcolor":"","icon":"","payload":"show","payloadType":"str","topic":"","x":160,"y":60,"wires":[["5c8acf17.48369"]]},{"id":"7deaa5c3.d9541c","type":"ui_button","z":"969dec0f.172cf","name":"","group":"6301312.18ee6d","order":0,"width":0,"height":0,"passthru":false,"label":"Beenden","tooltip":"","color":"","bgcolor":"","icon":"","payload":"exit","payloadType":"str","topic":"","x":160,"y":100,"wires":[["5c8acf17.48369"]]},{"id":"5045a28a.4eff7c","type":"ui_numeric","z":"969dec0f.172cf","name":"","label":"Kamera Nummer","tooltip":"","group":"928d21.7de242e","order":1,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":10,"step":1,"x":190,"y":240,"wires":[["c0ade873.3a7b38"]]},{"id":"1169ba7a.7bee26","type":"ui_button","z":"969dec0f.172cf","name":"","group":"f02ee1ed.28ca3","order":0,"width":0,"height":0,"passthru":false,"label":"Monitor An","tooltip":"","color":"","bgcolor":"","icon":"","payload":"monitoron","payloadType":"str","topic":"","x":170,"y":300,"wires":[["5c8acf17.48369"]]},{"id":"2deb9eda.6161d2","type":"ui_button","z":"969dec0f.172cf","name":"","group":"f02ee1ed.28ca3","order":0,"width":0,"height":0,"passthru":false,"label":"Monitor Aus","tooltip":"","color":"","bgcolor":"","icon":"","payload":"monitoroff","payloadType":"str","topic":"","x":170,"y":340,"wires":[["5c8acf17.48369"]]},{"id":"4d1afee3.e46d1","type":"ui_button","z":"969dec0f.172cf","name":"","group":"928d21.7de242e","order":0,"width":0,"height":0,"passthru":false,"label":"Alle Anzeigen","tooltip":"","color":"","bgcolor":"","icon":"","payload":"showall","payloadType":"str","topic":"","x":180,"y":200,"wires":[["5c8acf17.48369"]]},{"id":"d527b96b.d8aab8","type":"ui_button","z":"969dec0f.172cf","name":"","group":"f02ee1ed.28ca3","order":0,"width":0,"height":0,"passthru":false,"label":"PC Ausschalten","tooltip":"","color":"","bgcolor":"","icon":"","payload":"shutdownpc","payloadType":"str","topic":"","x":180,"y":380,"wires":[["5c8acf17.48369"]]},{"id":"2cf7b96a.686dd6","type":"ui_button","z":"969dec0f.172cf","name":"","group":"f02ee1ed.28ca3","order":0,"width":0,"height":0,"passthru":false,"label":"PC Neustarten","tooltip":"","color":"","bgcolor":"","icon":"","payload":"restartpc","payloadType":"str","topic":"","x":180,"y":420,"wires":[["5c8acf17.48369"]]},{"id":"c0ade873.3a7b38","type":"function","z":"969dec0f.172cf","name":"switchcam:","func":"msg.payload = \"switchcam:\" + msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":240,"wires":[["5c8acf17.48369"]]},{"id":"6301312.18ee6d","type":"ui_group","z":"","name":"Fenster","tab":"27f625af.6c6bda","order":1,"disp":true,"width":"6","collapse":false},{"id":"928d21.7de242e","type":"ui_group","z":"","name":"Kamera","tab":"27f625af.6c6bda","order":2,"disp":true,"width":"6","collapse":false},{"id":"f02ee1ed.28ca3","type":"ui_group","z":"","name":"PC Steuerung","tab":"27f625af.6c6bda","order":3,"disp":true,"width":"6","collapse":false},{"id":"27f625af.6c6bda","type":"ui_tab","z":"","name":"Camviewer","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Ping 

Ping
[{"id":"eafb89f9.ba8cc8","type":"tab","label":"Netzwerk Ping","disabled":false,"info":""},{"id":"77de3a65.c75074","type":"exec","z":"eafb89f9.ba8cc8","command":"c:\\windows\\system32\\ping.exe","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":450,"y":100,"wires":[["e1a35355.0d56b","1a8f3e36.d8bdc2"],[],[]]},{"id":"9f59d398.4602e","type":"inject","z":"eafb89f9.ba8cc8","name":"","topic":"","payload":"192.168.1.56","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"90","x":180,"y":120,"wires":[["77de3a65.c75074"]]},{"id":"42d4fb55.63f884","type":"debug","z":"eafb89f9.ba8cc8","name":"ok","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":890,"y":160,"wires":[]},{"id":"d76ce426.cee708","type":"debug","z":"eafb89f9.ba8cc8","name":"nicht gefunden","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":920,"y":120,"wires":[]},{"id":"ff8c4364.d5d9f","type":"file","z":"eafb89f9.ba8cc8","name":"","filename":"d:\\pingLog.txt","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":920,"y":80,"wires":[["1a8f3e36.d8bdc2"]]},{"id":"e1a35355.0d56b","type":"function","z":"eafb89f9.ba8cc8","name":"Check Result","func":"let d = new Date();\nlet dateString = d.toLocaleDateString() + \", \" + d.toLocaleTimeString();\nlet split = msg.payload.split(\"with\",1);\nif (msg.payload.indexOf(\"unreachable\") > -1){\n    msg.payload = dateString + split + \" not found\";\n    return [msg,null];\n};\nmsg.payload = dateString + split + \" not found\";\nreturn [null,msg];","outputs":2,"noerr":0,"x":710,"y":100,"wires":[["d76ce426.cee708","ff8c4364.d5d9f"],["42d4fb55.63f884"]]},{"id":"1a8f3e36.d8bdc2","type":"debug","z":"eafb89f9.ba8cc8","name":"log","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":930,"y":40,"wires":[]},{"id":"dbe984bf.1c1668","type":"inject","z":"eafb89f9.ba8cc8","name":"","topic":"","payload":"192.168.1.55","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"60","x":180,"y":80,"wires":[["77de3a65.c75074"]]}]

Abspielen von SoundFiles über Knx

Installation:

node-red-contrib-knx-ultimate

node-red-contrib-filesystem

play Soundfile
[{"id":"b1c625f2403bc611","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"0515ee65edcc16bc","type":"knxUltimate","z":"b1c625f2403bc611","server":"27611a104f249f78","topic":"5/0/1","outputtopic":"","dpt":"5.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"Volume 5/0/1","outputtype":"write","outputRBE":true,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":150,"y":80,"wires":[["2a13c1ddebbc3566"]]},{"id":"dd55ade03233be28","type":"knxUltimate","z":"b1c625f2403bc611","server":"27611a104f249f78","topic":"5/0/2","outputtopic":"","dpt":"5.010","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"SoundFile 1 - X (0 = Stop) 5/0/2","outputtype":"write","outputRBE":true,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":210,"y":140,"wires":[["9398b11d98a7dc0d"]]},{"id":"9398b11d98a7dc0d","type":"function","z":"b1c625f2403bc611","name":"Set pattern","func":"msg.payload = msg.payload + \"_*.*\";\nmsg.path = \"c:/audio2/\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":140,"wires":[["e8ceb930a6e6f8e0","535c2b0a1fbaee2a"]]},{"id":"2a13c1ddebbc3566","type":"audio","z":"b1c625f2403bc611","topic":"","command":"setVolume","path":"","playTime":0,"volume":0,"blockEvent":true,"muteAnotherApps":false,"name":"Volume","x":1060,"y":80,"wires":[["3c92f6707b2b36a7"]]},{"id":"c559abbd6621be04","type":"function","z":"b1c625f2403bc611","d":true,"name":"File Auswahl ","func":"switch (msg.payload) {\n    case 0: msg.payload = \"stop\"; break;\n    case 1: msg.payload = \"play:c:/audio/alarm.mp3\"; break;\n    case 2: msg.payload = \"play:c:/audio/Dreiklang.wav\"; break;\n    case 3: msg.payload = \"play:c:/audio/gartentor.wav\"; break;\n    case 4: msg.payload = \"play:c:/audio/haustuere.wav\"; break;\n    case 5: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;  \n    case 6: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;  \n    case 7: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;  \n    case 8: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;  \n    case 9: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;  \n    case 10: msg.payload = \"play:c:/audio/InternAlarm.wav\"; break;   \n    default:     \n} \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":870,"y":280,"wires":[[]]},{"id":"68afaf5e81f031ec","type":"function","z":"b1c625f2403bc611","name":"Set sound File","func":"if (msg.list.length === 0) {\n    msg.payload = \"stop\";\n    return msg;\n};\n\nmsg.payload = \"play:\" + msg.path + msg.list[0]; \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":140,"wires":[["f066ead112803729","f45295d16205816a"]]},{"id":"3c92f6707b2b36a7","type":"debug","z":"b1c625f2403bc611","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1260,"y":100,"wires":[]},{"id":"f066ead112803729","type":"audio","z":"b1c625f2403bc611","topic":"","command":"cmdInput","path":"","playTime":0,"volume":0,"blockEvent":true,"muteAnotherApps":false,"name":"über Input","x":1060,"y":140,"wires":[["3c92f6707b2b36a7"]]},{"id":"f45295d16205816a","type":"debug","z":"b1c625f2403bc611","name":"debug 8","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":180,"wires":[]},{"id":"e8ceb930a6e6f8e0","type":"debug","z":"b1c625f2403bc611","name":"debug 10","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":180,"wires":[]},{"id":"535c2b0a1fbaee2a","type":"fs-list","z":"b1c625f2403bc611","name":"","path":"path","pathType":"msg","pattern":"payload","patternType":"msg","filter":"files","recursive":false,"follow":false,"property":"list","propertyType":"msg","x":680,"y":140,"wires":[["68afaf5e81f031ec"]]},{"id":"27611a104f249f78","type":"knxUltimate-config","host":"224.0.23.12","port":"3671","physAddr":"15.15.22","hostProtocol":"Multicast","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","stopETSImportIfNoDatapoint":"stop","loglevel":"error","name":"KNX Gateway","localEchoInTunneling":true,"delaybetweentelegrams":"50","delaybetweentelegramsfurtherdelayREAD":"1","ignoreTelegramsWithRepeatedFlag":false,"autoReconnect":true}]


node-red-contrib-filesystem wird hier nicht benötigt

play Soundfile (ab nodeRed 3.0)
[{"id":"0515ee65edcc16bc","type":"knxUltimate","z":"b1c625f2403bc611","server":"27611a104f249f78","topic":"5/0/1","outputtopic":"","dpt":"5.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"Volume 5/0/1","outputtype":"write","outputRBE":true,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":150,"y":80,"wires":[["2a13c1ddebbc3566"]]},{"id":"2a13c1ddebbc3566","type":"audio","z":"b1c625f2403bc611","topic":"","command":"setVolume","path":"","playTime":0,"volume":0,"blockEvent":true,"muteAnotherApps":false,"name":"Volume","x":640,"y":80,"wires":[["3c92f6707b2b36a7"]]},{"id":"3c92f6707b2b36a7","type":"debug","z":"b1c625f2403bc611","name":"debug 7","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":140,"wires":[]},{"id":"b91a3693f9e64f3c","type":"function","z":"b1c625f2403bc611","name":"Set pattern","func":"const directoryPath = 'c:/audio2/'; // Ersetzen Sie dies durch den Pfad zu Ihrem Verzeichnis\nconst cmd = msg.payload\n\nfs.readdir(directoryPath, (err, files) => {\n if (err) {\n node.error('Fehler beim Lesen des Verzeichnisses:', err);\n return;\n }\n\n // Filtert Dateien, die mit einer ein- oder zweistelligen Zahl beginnen\n const filteredFiles = files.filter(filename => new RegExp(`^${cmd}_`).test(filename));\n\n if (filteredFiles.length > 0) {\n // Erstellt den vollständigen Pfad für die gefilterten Dateien\n const filePaths = filteredFiles.map(filename => path.join(directoryPath, filename));\n\n msg.payload = \"play:\" + filePaths[0];\n node.send(msg);\n return;\n }\n msg.payload = \"stop\";\n node.send(msg);\n});","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"fs","module":"fs"},{"var":"path","module":"path"}],"x":470,"y":140,"wires":[["136409c862978c22"]]},{"id":"2fd91e9d0a3e4bb3","type":"knxUltimate","z":"b1c625f2403bc611","server":"27611a104f249f78","topic":"5/0/2","outputtopic":"","dpt":"5.010","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"SoundFile 1 - X (0 = Stop) 5/0/2","outputtype":"write","outputRBE":true,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":210,"y":140,"wires":[["b91a3693f9e64f3c"]]},{"id":"136409c862978c22","type":"audio","z":"b1c625f2403bc611","topic":"","command":"cmdInput","path":"","playTime":0,"volume":0,"blockEvent":true,"muteAnotherApps":false,"name":"über Input","x":640,"y":140,"wires":[["3c92f6707b2b36a7"]]},{"id":"27611a104f249f78","type":"knxUltimate-config","host":"224.0.23.12","port":"3671","physAddr":"15.15.22","hostProtocol":"Multicast","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","stopETSImportIfNoDatapoint":"stop","loglevel":"error","name":"KNX Gateway","localEchoInTunneling":true,"delaybetweentelegrams":"50","delaybetweentelegramsfurtherdelayREAD":"1","ignoreTelegramsWithRepeatedFlag":false,"autoReconnect":true}]

  • No labels