Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.5 kB
8
Indexable
Never
[
    {
        "id": "ad31787a8857212c",
        "type": "ui_digital_clock",
        "z": "1a1daae8cf8322e7",
        "name": "",
        "group": "59de8e9bf84b089f",
        "order": 4,
        "width": 6,
        "height": 1,
        "x": 850,
        "y": 40,
        "wires": []
    },
    {
        "id": "0d5b97013045b136",
        "type": "inject",
        "z": "1a1daae8cf8322e7",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 650,
        "y": 60,
        "wires": [
            [
                "ad31787a8857212c",
                "536200deebef7c07"
            ]
        ]
    },
    {
        "id": "536200deebef7c07",
        "type": "function",
        "z": "1a1daae8cf8322e7",
        "name": "Date Convert",
        "func": "const options = {\n    timeZone: 'Asia/Kuching',\n    year: 'numeric',\n    month: 'long',\n    day: '2-digit',\n    hour12: false\n};\n\n// @ts-ignore\nconst datetimeString = new Date(msg.payload).toLocaleString('en-US', options);\n\nmsg.payload = datetimeString;\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 850,
        "y": 80,
        "wires": [
            [
                "6adf45b921d95810"
            ]
        ]
    },
    {
        "id": "6adf45b921d95810",
        "type": "ui_text",
        "z": "1a1daae8cf8322e7",
        "group": "59de8e9bf84b089f",
        "order": 5,
        "width": 6,
        "height": 1,
        "name": "Tarikh",
        "label": "",
        "format": "<h3>{{msg.payload}}</h3>",
        "layout": "col-center",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 990,
        "y": 80,
        "wires": []
    },
    {
        "id": "59de8e9bf84b089f",
        "type": "ui_group",
        "name": "Ambient",
        "tab": "d16231b93fa840d4",
        "order": 1,
        "disp": true,
        "width": "14",
        "collapse": false,
        "className": ""
    },
    {
        "id": "d16231b93fa840d4",
        "type": "ui_tab",
        "name": "Main Dashboard",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]