[ { "id": "0fd0a7a6cb6f8bc5", "type": "mqtt in", "z": "067bf963acfc344c", "name": "", "topic": "bambu/printer/status", "qos": "2", "datatype": "auto-detect", "broker": "90e2048a903c0ff2", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 150, "y": 1720, "wires": [ [ "c5909a22476778f9", "3ea82f07bd8d669f" ] ] }, { "id": "c5909a22476778f9", "type": "debug", "z": "067bf963acfc344c", "name": "debug 61", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 580, "y": 1680, "wires": [] }, { "id": "7543ff322d24e79f", "type": "function", "z": "067bf963acfc344c", "name": "function 30", "func": "global.set('userChatId', msg.payload.chatId);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 590, "y": 1620, "wires": [ [ "256815b6d31e83c0" ] ] }, { "id": "d7681f1dd95b26db", "type": "telegram command", "z": "067bf963acfc344c", "name": "", "command": "/bamboo", "description": "output from the p1s", "registercommand": true, "language": "", "scope": "default", "bot": "da4e3f6ee2b90dc9", "strict": false, "hasresponse": true, "useregex": false, "removeregexcommand": false, "outputs": 2, "x": 120, "y": 1580, "wires": [ [ "55a22f9a46c946ec" ], [ "55a22f9a46c946ec" ] ] }, { "id": "feed15f1e28a5b00", "type": "debug", "z": "067bf963acfc344c", "name": "debug 62", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 580, "y": 1560, "wires": [] }, { "id": "256815b6d31e83c0", "type": "function", "z": "067bf963acfc344c", "name": "function 41", "func": "var data =\n{\n \"chatId\": global.get('userChatId'),\n //\"type\": \"message\",\n \"type\": \"message\",\n \"content\": global.get('bambo-raw') || \"<>\",\n};\nmsg.payload = (data);\nreturn msg;\n\n", "outputs": 1, "timeout": "1", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 830, "y": 1620, "wires": [ [ "22ae426d776ac231" ] ] }, { "id": "3d6ef3da03876003", "type": "function", "z": "067bf963acfc344c", "name": "function 42", "func": "global.set('bambo-raw', msg.payload);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 830, "y": 1740, "wires": [ [] ] }, { "id": "3ea82f07bd8d669f", "type": "json", "z": "067bf963acfc344c", "name": "", "property": "payload", "action": "", "pretty": true, "x": 570, "y": 1740, "wires": [ [ "3d6ef3da03876003" ] ] }, { "id": "22ae426d776ac231", "type": "telegram sender", "z": "067bf963acfc344c", "name": "", "bot": "da4e3f6ee2b90dc9", "haserroroutput": false, "outputs": 1, "x": 1130, "y": 1620, "wires": [ [] ] }, { "id": "08ecdf3daa3ab11d", "type": "delay", "z": "067bf963acfc344c", "name": "", "pauseType": "rate", "timeout": "10", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 350, "y": 1580, "wires": [ [ "feed15f1e28a5b00", "7543ff322d24e79f" ] ] }, { "id": "55a22f9a46c946ec", "type": "junction", "z": "067bf963acfc344c", "x": 240, "y": 1580, "wires": [ [ "08ecdf3daa3ab11d" ] ] }, { "id": "90e2048a903c0ff2", "type": "mqtt-broker", "name": "", "broker": "192.168.1.10", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "5", "keepalive": "60", "cleansession": true, "autoUnsubscribe": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "da4e3f6ee2b90dc9", "type": "telegram bot", "botname": "Nodered_Dashbord_bot", "usernames": "", "chatids": "", "baseapiurl": "", "testenvironment": false, "updatemode": "polling", "pollinterval": "3000", "usesocks": false, "sockshost": "", "socksprotocol": "socks5", "socksport": "6667", "socksusername": "anonymous", "sockspassword": "", "bothost": "", "botpath": "", "localbothost": "", "localbotport": "8443", "publicbotport": "8443", "privatekey": "", "certificate": "", "useselfsignedcertificate": false, "sslterminated": false, "verboselogging": false } ]