First Steps with Node-RED

With Node-RED you can create scripts in a more visually engaging way.

Node-RED example get value

You can import this code via clipboard

[{ "id": "e875e08995e90eb5", "type": "edesign.runtime.data.get-value", "z": "34ba5ba5e89ba9b3", "name": "", "client": "9e23506696b212bb", "path": "", "x": 460, "y": 380, "wires": [ ["1f1736e276b14103"], [] ] }, { "id": "d2daa5635c64cab6", "type": "inject", "z": "34ba5ba5e89ba9b3", "name": "Get \"virtual.store.c\"", "props": [{ "p": "path", "v": "virtual.store.c", "vt": "str" }], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 210, "y": 380, "wires": [ ["e875e08995e90eb5"] ] }, { "id": "1f1736e276b14103", "type": "function", "z": "34ba5ba5e89ba9b3", "name": "function 4", "func": "var value1 = msg.body.value\nvar value2 = Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(value1)\nreturn { payload : msg.body.path + \" = \" + value2 };", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 720, "y": 380, "wires": [ ["05b2778819f9ad99"] ] }, { "id": "05b2778819f9ad99", "type": "debug", "z": "34ba5ba5e89ba9b3", "name": "debug 4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1000, "y": 380, "wires": [] }, { "id": "9e23506696b212bb", "type": "edesign.runtime.web-socket", "url": "ws://127.0.0.1:82" }]
[{
    "id": "e875e08995e90eb5",
    "type": "edesign.runtime.data.get-value",
    "z": "34ba5ba5e89ba9b3",
    "name": "",
    "client": "9e23506696b212bb",
    "path": "",
    "x": 460,
    "y": 380,
    "wires": [
        ["1f1736e276b14103"],
        []
    ]
}, {
    "id": "d2daa5635c64cab6",
    "type": "inject",
    "z": "34ba5ba5e89ba9b3",
    "name": "Get \"virtual.store.c\"",
    "props": [{
        "p": "path",
        "v": "virtual.store.c",
        "vt": "str"
    }],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "x": 210,
    "y": 380,
    "wires": [
        ["e875e08995e90eb5"]
    ]
}, {
    "id": "1f1736e276b14103",
    "type": "function",
    "z": "34ba5ba5e89ba9b3",
    "name": "function 4",
    "func": "var value1 = msg.body.value\nvar value2 = Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(value1)\nreturn { payload : msg.body.path + \" = \" + value2 };",
    "outputs": 1,
    "timeout": 0,
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 720,
    "y": 380,
    "wires": [
        ["05b2778819f9ad99"]
    ]
}, {
    "id": "05b2778819f9ad99",
    "type": "debug",
    "z": "34ba5ba5e89ba9b3",
    "name": "debug 4",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "payload",
    "targetType": "msg",
    "statusVal": "",
    "statusType": "auto",
    "x": 1000,
    "y": 380,
    "wires": []
}, {
    "id": "9e23506696b212bb",
    "type": "edesign.runtime.web-socket",
    "url": "ws://127.0.0.1:82"
}]