1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated Node msg Conventions (markdown)

zobalogh 2014-12-10 03:45:35 -08:00
parent 849da12547
commit 1c30ab3d45

@ -18,5 +18,11 @@ There are a few reserved properties within the structure of the msg objects bein
* **msg.time** - a time. The time should be either JavaScript Date object, or a number of milliseconds since epoch. * **msg.time** - a time. The time should be either JavaScript Date object, or a number of milliseconds since epoch.
### For Fitness/activity based nodes/flows ### ### For Fitness/activity based nodes/flows: ###
* ** msg.payload.duration** - Duration of the activity in **seconds**
* ** msg.payload.distance** - Distance of activity in **metres**
* ** msg.payload.calories** - Calories burned during activity in **kilocalories**
* ** msg.payload.starttime** - JavaScript Date object representing the start time of the activity