Kamis, 20 Juli 2023

function kirim telegram node red

 [

    {

        "id": "92caf8fe4730c41d",

        "type": "function",

        "z": "c4bef54c1ac65e88",

        "name": "send to telegram",

        "func": "var cb = msg.payload\nvar d = new Date();\nvar t = new Date();\nvar date = d.toLocaleDateString();\nvar time = t.toLocaleTimeString();\nvar a;\n\nif(cb == 1)\n{\n   \n    msg.payload = {}\n    msg.payload.chatId = 1383300284\n    msg.payload.type = \"message\";\n    msg.payload.content = \"Over Voltage \" + time + \" \" + date;\n  \n}\n\n\nreturn msg;",

        "outputs": 1,

        "noerr": 0,

        "initialize": "",

        "finalize": "",

        "libs": [],

        "x": 730,

        "y": 340,

        "wires": [

            [

                "ca3dba7f8f791834"

            ]

        ]

    }

]

Tidak ada komentar:

Posting Komentar

Frekwensi LoRa yang legal di Indonesia

 menurut kepmen 2024-05 standar teknis perangkat LPWAN berikut frekwensi LoRa : link KEPMEN: download