From 1c30ab3d453d8ee8efc1ff9cc1bc25c89b6f40a5 Mon Sep 17 00:00:00 2001 From: zobalogh Date: Wed, 10 Dec 2014 03:45:35 -0800 Subject: [PATCH] Updated Node msg Conventions (markdown) --- Node-msg-Conventions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Node-msg-Conventions.md b/Node-msg-Conventions.md index 5c0b8f2..c0eb89f 100644 --- a/Node-msg-Conventions.md +++ b/Node-msg-Conventions.md @@ -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. -### 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