Inject node with date

I am using a nordpool api to read the prices from Nordpool.

The readme tells "Its also possible to inject a msg.date to get price from a specific date"

How?
msg.payload.date then date? I think I need the date in ms like the timestamp?

It s up to you, what you prefer:

[
    {
        "id": "0b9dd5d53b447269",
        "type": "debug",
        "z": "7fd8fff652f013f7",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "date",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 3400,
        "wires": []
    },
    {
        "id": "ec50e20e82aabaec",
        "type": "inject",
        "z": "7fd8fff652f013f7",
        "name": "msg.date as timestamp",
        "props": [
            {
                "p": "date",
                "v": "",
                "vt": "date"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 640,
        "y": 3360,
        "wires": [
            [
                "0b9dd5d53b447269"
            ]
        ]
    },
    {
        "id": "fb0df6da97e9ef03",
        "type": "inject",
        "z": "7fd8fff652f013f7",
        "name": "msg.date as date string",
        "props": [
            {
                "p": "date",
                "v": "$moment()",
                "vt": "jsonata"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 640,
        "y": 3420,
        "wires": [
            [
                "0b9dd5d53b447269"
            ]
        ]
    }
]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.