2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
[{"id":"f0fd3b5e171a6196","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"8a694cb7ebec1684","type":"inject","z":"f0fd3b5e171a6196","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"username\":\"example\",\"displayname\":\"Example User\",\"password\":\"super-secret-password\",\"admin\":true}","payloadType":"json","x":230,"y":160,"wires":[["f19521453aeaa6ba"]]},{"id":"f19521453aeaa6ba","type":"matrix-synapse-register","z":"f0fd3b5e171a6196","name":"","credentials":{},"x":430,"y":160,"wires":[["cd2ea4e791098aa0"],["a365bedfad2280fe"]]},{"id":"66fbaa12bfadd0b4","type":"comment","z":"f0fd3b5e171a6196","name":"Register user using secret registration","info":"","x":390,"y":120,"wires":[]},{"id":"cd2ea4e791098aa0","type":"debug","z":"f0fd3b5e171a6196","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":140,"wires":[]},{"id":"a365bedfad2280fe","type":"debug","z":"f0fd3b5e171a6196","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":180,"wires":[]},{"id":"a9b412957063b06c","type":"matrix-receive","z":"f0fd3b5e171a6196","name":"","server":"dc7d95c6ac9f5702","roomId":"","acceptText":true,"acceptEmotes":true,"acceptStickers":true,"acceptReactions":true,"acceptFiles":true,"acceptAudio":true,"acceptImages":true,"acceptVideos":true,"acceptLocations":true,"x":140,"y":360,"wires":[["4aa45cd8653ba898","3fbda75cb23e4a98"]]},{"id":"4aa45cd8653ba898","type":"switch","z":"f0fd3b5e171a6196","name":"msg.payload == \"ping\"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"ping","vt":"str"},{"t":"eq","v":"help","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":360,"y":360,"wires":[["240492a035448ca6"],["4a02e9d9b37e9051"]]},{"id":"240492a035448ca6","type":"change","z":"f0fd3b5e171a6196","name":"set msg.payload = \"pong\"","rules":[{"t":"set","p":"payload","pt":"msg","to":"pong","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":360,"wires":[["02973db9f86807b6"]]},{"id":"02973db9f86807b6","type":"matrix-send-message","z":"f0fd3b5e171a6196","name":"","server":"dc7d95c6ac9f5702","roomId":"!SuBgv:matrixraum.com","message":"","messageType":"m.text","messageFormat":"","replaceMessage":false,"x":840,"y":360,"wires":[["2b07fce769aacb0c"],["a3101646528cdea2"]]},{"id":"2b07fce769aacb0c","type":"debug","z":"f0fd3b5e171a6196","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1010,"y":340,"wires":[]},{"id":"a3101646528cdea2","type":"debug","z":"f0fd3b5e171a6196","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1010,"y":380,"wires":[]},{"id":"3fbda75cb23e4a98","type":"switch","z":"f0fd3b5e171a6196","name":"send picture","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"image","vt":"str"},{"t":"eq","v":"cam1","vt":"str"},{"t":"eq","v":"cam2","vt":"str"},{"t":"eq","v":"cam3","vt":"str"},{"t":"eq","v":"cam4","vt":"str"},{"t":"eq","v":"cam5","vt":"str"},{"t":"eq","v":"cam6","vt":"str"},{"t":"eq","v":"cam7","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":350,"y":560,"wires":[["57671f9f873984cb"],["f51b2c58790fbb2e"],["03ab885da33eee4e"],["c435ea348f5a600e"],["700f4c5d01fbf61b"],["ed8606aac1758bf9"],["06dbdce42d00b955"],["98e66abea920579c"]]},{"id":"1d56c2b925cd6742","type":"matrix-send-image","z":"f0fd3b5e171a6196","name":"Send Picture","server":"dc7d95c6ac9f5702","roomId":"","contentType":"image/png","x":910,"y":580,"wires":[[],[]]},{"id":"f51b2c58790fbb2e","type":"http request","z":"f0fd3b5e171a6196","name":"TUM München","method":"GET","ret":"bin","paytoqs":false,"url":"https://www.foto-webcam.eu/webcam/tum-olympiapark/current/1200.jpg","tls":"","persist":false,"proxy":"","authType":"","x":660,"y":500,"wires":[["1d56c2b925cd6742"]]},{"id":"03ab885da33eee4e","type":"http request","z":"f0fd3b5e171a6196","name":"Dachau","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.foto-webcam.eu/webcam/dachau/current/1200.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":680,"y":540,"wires":[["1d56c2b925cd6742"]]},{"id":"c435ea348f5a600e","type":"http request","z":"f0fd3b5e171a6196","name":"Zugspitze Bergstation","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.foto-webcam.eu/webcam/zugspitze/current/1200.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":640,"y":580,"wires":[["1d56c2b925cd6742"]]},{"id":"700f4c5d01fbf61b","type":"http request","z":"f0fd3b5e171a6196","name":"Zugspitze Talstation","method":"GET","ret":"bin","paytoqs":false,"url":"https://www.foto-webcam.eu/webcam/bzb-tal/current/1200.jpg","tls":"","persist":false,"proxy":"","authType":"","x":640,"y":620,"wires":[["1d56c2b925cd6742"]]},{"id":"ed8606aac1758bf9","type":"http request","z":"f0fd3b5e171a6196","name":"Lofer Salzburger Land","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.foto-webcam.eu/webcam/lofer/current/1200.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":640,"y":660,"wires":[["1d56c2b925cd6742"]]},{"id":"06dbdce42d00b955","type":"http request","z":"f0fd3b5e171a6196","name":"Marienplatz München","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.ludwigbeck.de/media/webcam/webcam.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":640,"y":700,"wires":[["1d56c2b925cd6742"]]},{"id":"98e66abea920579c","type":"http request","z":"f0fd3b5e171a6196","name":"München Nord-Ost","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.foto-webcam.eu/webcam/muenchen/current/1200.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":650,"y":740,"wires":[["1d56c2b925cd6742"]]},{"id":"4a02e9d9b37e9051","type":"function","z":"f0fd3b5e171a6196","name":"create help text","func":"\nvar helpMessage = \"- help - shows help\\r\\n\";\nhelpMessage += \"- cam1 - München Cam\\r\\n\";\nhelpMessage += \"- cam2 - Dachau Cam\\r\\n\";\nhelpMessage += \"- cam3 - Zugspitze Bergstation Cam\\r\\n\";\nhelpMessage += \"- cam4 - Zugspitze Talstation Cam\\r\\n\";\nhelpMessage += \"- cam5 - Lofer Salzburger Land Cam\\r\\n\";\nhelpMessage += \"- cam6 - Marienplatz Cam\\r\\n\";\n\n\nmsg.payload = helpMessage;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":400,"wires":[["02973db9f86807b6"]]},{"id":"57671f9f873984cb","type":"http request","z":"f0fd3b5e171a6196","name":"Linux Logo","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://static.giga.de/wp-content/uploads/2012/01/linux-logo-rcm300x0.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":670,"y":460,"wires":[["1d56c2b925cd6742"]]},{"id":"dc7d95c6ac9f5702","type":"matrix-server-config","name":"","autoAcceptRoomInvites":true,"enableE2ee":true,"global":true}]
|