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":"","a
|