// Set device_id to serial-number of Datacake API Device
device_id = "be525e29-4398-4fc1-a928-dead7fdfe218";
// Set Token to your personal access token or individual token
token = "put your token in here";
// This is the API Information for the HTTP Request Node
url = "https://api.datacake.co/v1/devices/"+device_id+"/record/?batch=true"
// Create Header for Node-RED HTTP Node
"Authorization": "Token "+token,
"Content-Type": "application/json"
// Now we are going to create the Payload we forward to Datacake API
"value": msg.payload.watt
"value": msg.payload.ampere
"value": msg.payload.volt
// Return it - were all set!