http://flows.nodered.org/node/node-red-contrib-frequency-meter
Cor,
You are assuming that when Dan says 'frequency:msg.payload:number' he means his payload has a property called number. Or does it mean payload is of type number? His previous example was just that. This is why I've asked Dan to clarify where he got that text from as it isn't clear what it means.
Nick
You can just say: msg.payload.number
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/30086a61-7b27-4e13-b4cc-db520e4a4d6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[
{
"id": "a63281b1.c7abd",
"type": "http request",
"z": "462586cc.55d938",
"name": "",
"method": "GET",
"ret": "txt",
"url": "http://mydomain.com/mypage.php?freq={{{payload}}} ",
"tls": "",
"x": 532.5,
"y": 4536,
"wires": [
[]
]
}
]
{ topic: "pi/15", payload: 0, _msgid: "47ffbfe2.6569c" }
var myPayload = msg.payload;
var myTopic = msg.topic;
{ topic: "pi/15", payload: { temperature: -10, humidity: 100, sensorName: "Outside" }, _msgid: "47ffbfe2.6569c" }
var temperature = msg.payload.temperature;