diff --git a/flows.json b/flows.json index 9f3f4a4..dad0705 100644 --- a/flows.json +++ b/flows.json @@ -7,6 +7,14 @@ "info": "", "env": [] }, + { + "id": "c6836a6e8719b5d2", + "type": "tab", + "label": "Grist", + "disabled": false, + "info": "", + "env": [] + }, { "id": "91324b2dbbd2a883", "type": "tab", @@ -217,6 +225,25 @@ "userProps": "", "sessionExpiry": "" }, + { + "id": "24d012af17a56c78", + "type": "grist-server", + "hostname": "grist.nerdhomeinc.com", + "port": "", + "tlsEnabled": false, + "apiKey": "16b865ae7b01ca2abe35f31b52aaa3af6d06ba8e" + }, + { + "id": "7a7435bc139e6ab5", + "type": "grist-document", + "name": "Railroader", + "docid": "hmPYYCoAqcjvLQ3DGNBrjk" + }, + { + "id": "1d0c9a9cf99013e2", + "type": "discord-token", + "name": "Nerd Home" + }, { "id": "388878f6056fa3e4", "type": "function", @@ -857,6 +884,310 @@ ] ] }, + { + "id": "7a5c58c6ae03a1d6", + "type": "grist-get-records", + "z": "c6836a6e8719b5d2", + "server": "24d012af17a56c78", + "document": "7a7435bc139e6ab5", + "tableId": "Event_Log", + "filter": "", + "x": 320, + "y": 100, + "wires": [ + [ + "6255a74f57db62fb" + ] + ] + }, + { + "id": "6a0f2ea7ef7705fe", + "type": "inject", + "z": "c6836a6e8719b5d2", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "", + "payloadType": "date", + "x": 140, + "y": 100, + "wires": [ + [ + "7a5c58c6ae03a1d6" + ] + ] + }, + { + "id": "6255a74f57db62fb", + "type": "debug", + "z": "c6836a6e8719b5d2", + "name": "Event Log", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 500, + "y": 100, + "wires": [] + }, + { + "id": "f90de4c1c6f8dc38", + "type": "grist-get-records", + "z": "c6836a6e8719b5d2", + "server": "24d012af17a56c78", + "document": "7a7435bc139e6ab5", + "tableId": "Locos", + "filter": "", + "x": 310, + "y": 340, + "wires": [ + [ + "36f777220a7fbe36" + ] + ] + }, + { + "id": "db77d2951b3c9a32", + "type": "inject", + "z": "c6836a6e8719b5d2", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "", + "payloadType": "date", + "x": 140, + "y": 340, + "wires": [ + [ + "f90de4c1c6f8dc38" + ] + ] + }, + { + "id": "36f777220a7fbe36", + "type": "debug", + "z": "c6836a6e8719b5d2", + "name": "Locos", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 470, + "y": 340, + "wires": [] + }, + { + "id": "d661d1bbaeb05644", + "type": "discordMessage", + "z": "c6836a6e8719b5d2", + "name": "Railroader", + "channelIdFilter": "1364100534117597325", + "token": "1d0c9a9cf99013e2", + "x": 140, + "y": 400, + "wires": [ + [ + "12b87463a4c5152e" + ] + ] + }, + { + "id": "12b87463a4c5152e", + "type": "debug", + "z": "c6836a6e8719b5d2", + "name": "Discord", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 300, + "y": 400, + "wires": [] + }, + { + "id": "3e1665680738eb17", + "type": "grist-get-records", + "z": "c6836a6e8719b5d2", + "server": "24d012af17a56c78", + "document": "7a7435bc139e6ab5", + "tableId": "Trains", + "filter": "", + "x": 310, + "y": 280, + "wires": [ + [ + "98cf23e89ffbeaad" + ] + ] + }, + { + "id": "925873bb41d1029e", + "type": "inject", + "z": "c6836a6e8719b5d2", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "", + "payloadType": "date", + "x": 140, + "y": 280, + "wires": [ + [ + "3e1665680738eb17" + ] + ] + }, + { + "id": "98cf23e89ffbeaad", + "type": "debug", + "z": "c6836a6e8719b5d2", + "name": "Trains", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 470, + "y": 280, + "wires": [] + }, + { + "id": "d473fe1351962c72", + "type": "file", + "z": "c6836a6e8719b5d2", + "name": "Write to file", + "filename": "/root/railroader-discord.json", + "filenameType": "str", + "appendNewline": true, + "createDir": false, + "overwriteFile": "false", + "encoding": "none", + "x": 510, + "y": 460, + "wires": [ + [] + ] + }, + { + "id": "6551f4eb7f9dbc47", + "type": "change", + "z": "c6836a6e8719b5d2", + "name": "", + "rules": [ + { + "t": "move", + "p": "payload", + "pt": "msg", + "to": "payload.originalPayload", + "tot": "msg" + }, + { + "t": "move", + "p": "channel", + "pt": "msg", + "to": "payload.channel", + "tot": "msg" + }, + { + "t": "move", + "p": "member", + "pt": "msg", + "to": "payload.member", + "tot": "msg" + }, + { + "t": "move", + "p": "memberRoleNames", + "pt": "msg", + "to": "payload.memberRoleNames", + "tot": "msg" + }, + { + "t": "move", + "p": "memberRoleIDs", + "pt": "msg", + "to": "payload.memberRoleIDs", + "tot": "msg" + }, + { + "t": "move", + "p": "data", + "pt": "msg", + "to": "payload.data", + "tot": "msg" + }, + { + "t": "move", + "p": "author", + "pt": "msg", + "to": "payload.author", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 320, + "y": 460, + "wires": [ + [ + "d473fe1351962c72" + ] + ] + }, { "id": "a1c109993f7dd396", "type": "mqtt in", diff --git a/flows_cred.json b/flows_cred.json index 69f5313..34f8fdd 100644 --- a/flows_cred.json +++ b/flows_cred.json @@ -1,3 +1,3 @@ { - "$": "a3e16c3c8c9133329af90e6e5ab1ce635M7H+NtSIYlsp+oNW+78oYQKuCzA6JUnVbNnQ9ZxfCdMvJFm5mdeEQCfduRXD+yxzFIeTaicFnrbq7hhhl/1qmT2SP0DoDe/aAjYYnUQcK1I/OBU0wnh9MtSD2PYeisF9rKZQZJAjeX4ZHwosg==" + "$": "4ac740eef08ef5a72326b24a198eeb66c62FlBNEm5DIjzqepiIDsp9pSn5GSIsqMXDcxe0qfx3P2cUxWR3yqlAs2sWH6dFLSRLlPhz2tZkkeqNk7wnYeFsOQ7uA0A3dvJ1oExFJ/WO9LwNeAgjxbTAGVQqAgTFxpiA95/tLgtmPXpnBJaQ82Lq1guJ07AlBb3eBZ6MN4C0wpEWs1ZoCAsEJ6wDM0gL5GGNnnMevYPPsohEBUGkWbyfp1iF8XVNGxagHu6+ZyNiucJMmoYcvuAmXG2G1gAsktvCf9B5iHkoW8s5GqCHbguXUDh5o" } \ No newline at end of file