{ "Version" : 2.56, "CaseName" : "Steps.minion", "DefaultUnitSet" : "SI", "UserUnits" : [], "StartForm" : "mainForm", "RootModel" : { "DiagramY" : -12321, "Objects" : [ { "X1" : { "v" : "stepTable.Date 'Date", "Y1" : { "vmin" : "0", "vmax" : "24000", "lineType" : 3, "v" : "stepTable.Steps 'Steps" }, "unit" : "date" }, "Type" : "Graph", "DiagramY" : 140, "name" : "overallPlot", "DiagramX" : 205, "X2" : { "v" : "rolling30.date 'Date", "Y1" : { "v" : "rolling30.rollingAvg'Rolling 30 Average", "lineType" : 0 }, "unit" : "date" } }, { "Type" : "Expression", "DiagramY" : 85, "name" : "OverallAvg", "DiagramX" : 105, "Formula" : { "Formula" : "{sum stepTable.steps} / stepCount" } }, { "Type" : "Expression", "DiagramY" : 225, "name" : "last30Avg", "DiagramX" : 280, "Formula" : { "Formula" : "{sum last30.steps/ 30 }" } }, { "Type" : "Expression", "DiagramY" : 225, "name" : "stepCount", "DiagramX" : 30, "Formula" : { "Formula" : "{nrows stepTable}" } }, { "Type" : "Expression", "DiagramY" : 225, "name" : "last30", "DiagramX" : 120, "Formula" : { "Formula" : "stepTable[ (stepCount-29):stepCount ]" } }, { "X1" : { "v" : "last30.Date", "Y1" : { "vmin" : "0", "vmax" : "24000", "lineType" : 3, "v" : "last30.Steps" }, "unit" : "date" }, "Type" : "Graph", "DiagramY" : 210, "name" : "last30Plot", "DiagramX" : 205, "X2" : { "v" : "lastRolling30.Date", "Y1" : { "v" : "lastRolling30.rollingAvg", "lineType" : 0 }, "unit" : "date" } }, { "Type" : "Expression", "DiagramY" : 110, "name" : "overallSvg", "DiagramX" : 290, "Formula" : { "Formula" : "svgCss + overallPlot.svg" } }, { "Type" : "Expression", "DiagramY" : 110, "name" : "svgCss", "DiagramX" : 205, "Formula" : { "Formula" : "'\n" } }, { "Type" : "Expression", "DiagramY" : 130, "name" : "last30Svg", "DiagramX" : 290, "Formula" : { "Formula" : "svgCss + last30Plot.svg" } }, { "displayUnit" : "date", "Type" : "Expression", "DiagramY" : -65, "name" : "TodaysDate", "DiagramX" : 80, "Formula" : { "Formula" : "{mktime {int {date {now} + {timezone}}}}" } }, { "Type" : "Expression", "DiagramY" : -35, "name" : "YesterdaysSteps", "DiagramX" : 155, "Formula" : { "Formula" : "{steps\n\ttodaysGMTDate - 1 d,\n\ttodaysGMTDate\n}" } }, { "f11" : "{fmt \"%8.0f\" {sum stepTable.steps}}", "f9" : "{fmt \"%8.0f\" last30Avg}", "f0" : "nextDate", "f5" : "{fmt \"%8.0f\", todaysSteps}", "f10" : "{fmt \"%8.0f\" OverallAvg}", "f1" : "nextSteps", "f6" : "{fmt \"%8.0f\" yesterdayssteps}", "DiagramX" : 385, "f2" : "{nrows stepTable}", "DiagramY" : -15, "Formula" : { "Formula" : "'\n\n\tSteps \n\t\n\n \t\n\t\n\t\n\t\n\n\t\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\n\n\n\n
\n\n\t

Daily Steps

\n\n\t
\n\t\t\n\t\t
\n\t\t\t
\n\t\t\t\t{fmt \"%8.0f\", todaysDate, \"Date\"}\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\tRefresh\n\t\t\t
\n\t\t\t
Steps Today
\n\t\t\t
\n\t\t\t\t{fmt \"%8.0f\", todaysSteps}\n\t\t\t
\n\t\t\t
Table Last Row
\n\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t{fmt \"%8.0f\" yesterdayssteps}\n\t\t\t\tRecord\n\t\t\t
\n\t\t
\n\t\t\n\t\t
\n\t\t\t
30 Day Avg
\n\t\t\t
{fmt \"%8.0f\" last30Avg}
\n\t\t\t
Overall Avg
\n\t\t\t
{fmt \"%8.0f\" OverallAvg}
\n\t\t\t
Overall Total
\n\t\t\t
{fmt \"%8.0f\" {sum stepTable.steps}}
\n\t\t\t
 
\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\tlearn more\n\t\t
\n\t
\n\t\n
\n
\n\n\t

About Steps

\n\n\t
\n\t\t

\n\t\t\tOn devices that support step tracking (just the iPhone 5S as I write this), this applet\n\t\t\twill retrieve the last six days of steps as well as the steps so far today.\n\t\t

\n\t\t

\n\t\t\tThese steps can be recorded in a table for plot display and the calculation of averages. The last entry in the table is shown and if there are newer values available, the earliest is shown with a record link. Tapping this link will add the entry and update the form.\n\t\t

\n\t\t

\n\t\t\tThe View Table link will push a view of the actual table, which can then be manually edited if desired.\n\t\t

\n\t\t

\n\t\t\tYou will probably want to delete the example rows in the table. To do so:\n\t\t

\n\t\t\n\t\t

\n\t\t\tTapping on the plot thumbnails will take you to the actual plot view.\n\t\t

\n\t\t\n\t\t
\n\t\t\tReturn to Main Page\n\t\t
\n\t
\n\t\n\t\n
\n\n\n\n" }, "Type" : "HTML Form", "f3" : "recordIndex", "f7" : "overallSvg", "f8" : "last30Svg", "inputs" : { "nextsteps" : " 20338", "nextdate" : "20140421 date" }, "name" : "mainForm", "f4" : "{fmt \"%8.0f\", todaysDate, \"Date\"}" }, { "Formula" : { "Formula" : "mainForm.html" }, "Type" : "Expression", "DiagramY" : 35, "name" : "html", "Notes" : "", "DiagramX" : 385 }, { "Type" : "Expression", "DiagramY" : -15, "name" : "TodaysSteps", "DiagramX" : 155, "Formula" : { "Formula" : "{steps TodaysGMTDate, {now}}" } }, { "displayUnit" : "date", "Type" : "Expression", "DiagramY" : -15, "name" : "TodaysGMTDate", "DiagramX" : 70, "Formula" : { "Formula" : "TodaysDate - {timezone}" } }, { "recFormulas" : [ { "Formula" : "{sum stepTable[ $.i:($.i+29),\"steps\"]}/30\n'rollingAvg" }, { "Formula" : "stepTable[$.i+29,\"date\"]'Date" } ], "DiagramY" : 180, "whileFormula" : { "Formula" : "{le $.i, stepCount-29}" }, "nextXFormula" : { "Formula" : "$.x + 1" }, "DiagramX" : 120, "AutoRun" : "y", "Type" : "Iterator", "initXFormula" : { "Formula" : "1" }, "name" : "iter30" }, { "tableUnits" : { "1" : "date" }, "Type" : "Expression", "DiagramY" : 180, "name" : "rolling30", "DiagramX" : 190, "Formula" : { "Formula" : "{table {cc \"Date\", \"RollingAvg\"}\n\titer30.date, iter30.rollingAvg\n}" } }, { "tableUnits" : { "1" : "date" }, "Type" : "Expression", "DiagramY" : 180, "name" : "lastRolling30", "DiagramX" : 285, "Formula" : { "Formula" : "rolling30[ ({nrows rolling30}-29):{nrows rolling30} ]" } }, { "tableUnits" : { "1" : "date" }, "Type" : "Expression", "DiagramY" : 5, "name" : "recentSteps", "DiagramX" : 155, "Formula" : { "Formula" : "{table {cc \"Date\", \"Steps\"},\n\ttodaysDate - 1 d * 1:6,\n\t{steps\n\t\ttodaysGMTDate - 1 d * 1:6,\n\t\ttodaysGMTDate - 1 d * 0:5\n\t}\n}" } }, { "displayUnit" : "date", "Type" : "Expression", "DiagramY" : 35, "name" : "LastRecordedDate", "DiagramX" : 65, "Formula" : { "Formula" : "{if {nrows stepTable},\n\tstepTable.Date[-1],\n\t0 s\n}" } }, { "Type" : "Expression", "DiagramY" : 35, "name" : "recordIndex", "DiagramX" : 160, "Formula" : { "Formula" : "{sum\n\t{gt recentSteps.Date,\n\t\tLastRecordedDate\n\t} \n}" } }, { "displayUnit" : "date", "Type" : "Expression", "DiagramY" : 40, "name" : "nextDate", "DiagramX" : 295, "Formula" : { "Formula" : "{if recordIndex,\n\t{fmt \"%8.0f\",\n\t\trecentSteps.date[ recordIndex ],\n\t\t\"Date\"\n\t},\n\t\"Table Up to Date\"\n}" } }, { "displayUnit" : "date", "Type" : "Expression", "DiagramY" : 60, "name" : "nextSteps", "DiagramX" : 295, "Formula" : { "Formula" : "{if recordIndex,\n\t{fmt \"%8.0f\",\n\t\trecentSteps.steps[ recordIndex ]\n\t},\n\t\"\"\n}" } }, { "Type" : "Expression", "DiagramY" : 60, "name" : "LastRecordedSteps", "DiagramX" : 105, "Formula" : { "Formula" : "{if {nrows stepTable},\n\tstepTable.Steps[-1],\n\t0\n}" } }, { "Type" : "Data Table", "DiagramY" : 140, "name" : "stepTable", "DiagramX" : 15, "Columns" : [ { "displayUnit" : "date", "unitDimensions" : "0 0 1 0 0 0 0", "defaultValue" : "{eval mainform.nextDate}", "name" : "Date", "nValues" : [ 1356393600, 1356480000, 1356566400, 1356652800, 1356739200, 1356825600, 1356912000, 1356998400, 1357084800, 1357171200, 1357257600, 1357344000, 1357430400, 1357516800, 1357603200, 1357689600, 1357776000, 1357862400, 1357948800, 1358035200, 1358121600, 1358208000, 1358294400, 1358380800, 1358467200, 1358553600, 1358640000, 1358726400, 1358812800, 1358899200, 1358985600, 1359072000, 1359158400, 1359244800, 1359331200, 1359417600, 1359504000, 1359676800, 1359763200, 1359849600, 1359936000, 1360022400, 1360108800, 1360195200, 1360281600, 1360368000, 1360454400, 1360540800, 1360627200, 1360713600, 1360800000, 1360886400, 1360972800, 1361059200, 1361145600, 1361232000, 1361318400, 1361404800, 1361491200, 1361577600, 1361664000, 1365724800, 1365811200, 1365897600, 1365984000, 1366070400, 1366156800, 1366243200, 1366329600, 1366416000, 1366502400, 1366588800, 1366675200, 1366761600, 1366848000, 1366934400, 1367020800, 1367107200, 1367193600, 1367280000, 1367366400, 1367452800, 1367539200, 1367625600, 1367712000, 1367798400, 1367884800, 1367971200, 1368057600, 1368144000, 1368230400, 1368316800, 1368403200, 1368489600, 1368576000, 1368662400, 1368748800, 1368835200, 1368921600, 1369008000, 1369094400, 1369180800, 1369267200, 1369353600, 1369440000, 1369526400, 1369612800, 1369699200, 1369785600, 1369872000, 1369958400, 1370044800, 1370131200, 1370217600, 1370304000, 1370390400, 1370476800, 1370563200, 1370649600, 1370736000, 1370822400, 1370908800, 1370995200, 1371081600, 1371168000, 1371254400, 1371340800, 1371427200, 1371513600, 1371600000, 1371686400, 1371772800, 1371859200, 1372204800, 1372291200, 1372377600, 1372464000, 1372550400, 1372636800, 1372723200, 1372809600, 1372896000, 1372982400, 1373068800, 1373241600, 1373328000, 1373414400, 1373587200, 1373760000, 1373846400, 1373932800, 1374019200, 1374105600, 1374192000, 1374278400, 1374364800, 1374451200, 1374537600, 1374624000, 1374710400, 1374796800, 1374883200, 1374969600, 1375056000, 1375228800, 1375315200, 1375401600, 1375488000, 1375574400, 1375660800, 1375747200, 1375833600, 1375920000, 1376006400, 1376092800, 1376179200, 1376265600, 1376352000, 1376438400, 1376524800, 1376611200, 1376697600, 1376784000, 1376870400, 1376956800, 1377043200, 1377129600, 1377216000, 1377302400, 1377561600, 1377648000, 1377734400, 1377820800, 1377907200, 1377993600, 1378080000, 1378166400, 1378252800, 1378339200, 1378425600, 1378512000, 1378598400, 1378684800, 1378771200, 1378944000, 1379030400, 1379116800, 1379203200, 1379289600, 1379376000, 1379462400, 1379548800, 1379635200, 1379721600, 1379808000, 1379894400, 1379980800, 1380067200, 1380153600, 1380240000, 1380326400, 1380412800, 1380499200, 1380585600, 1380672000, 1380844800, 1380931200, 1381017600, 1381104000, 1381190400, 1381276800, 1381363200, 1381449600, 1381536000, 1381622400, 1381708800, 1381795200, 1381881600, 1381968000, 1382054400, 1382140800, 1382227200, 1382313600, 1382400000, 1382486400, 1382572800, 1382659200, 1382745600, 1382832000, 1382918400, 1383004800, 1383091200, 1383177600, 1383264000, 1383350400, 1383436800, 1383523200, 1383609600, 1383696000, 1383782400, 1383868800, 1383955200, 1384041600, 1384128000, 1384214400, 1384300800, 1384387200, 1384473600, 1384560000, 1384646400, 1384732800, 1384819200, 1384905600, 1384992000, 1385078400, 1385164800, 1385251200, 1385337600, 1385424000, 1385510400, 1385596800, 1385683200, 1385769600, 1385856000, 1385942400, 1386028800, 1386115200, 1386201600, 1386288000, 1386374400, 1386460800, 1386547200, 1386633600, 1386720000, 1386806400, 1386892800, 1386979200, 1387065600, 1387152000, 1387238400, 1387324800, 1387411200, 1387497600, 1387584000, 1387670400, 1387756800, 1387843200, 1387929600, 1388016000, 1388102400, 1388188800, 1388275200, 1388361600, 1388448000, 1388534400, 1388620800, 1388707200, 1388793600, 1388880000, 1388966400, 1389052800, 1389139200, 1389225600, 1389312000, 1389398400, 1389484800, 1389571200, 1389657600, 1389744000, 1389830400, 1389916800, 1390003200, 1390089600, 1390176000, 1390262400, 1390348800, 1390435200, 1390521600, 1390608000, 1390694400, 1390780800, 1390867200, 1390953600, 1391040000, 1391126400, 1391212800, 1391299200, 1391385600, 1391472000, 1391558400, 1391644800, 1391731200, 1391817600, 1391904000, 1391990400, 1392076800, 1392163200, 1392249600, 1392336000, 1392422400, 1392508800, 1392595200, 1392681600, 1392768000, 1392854400, 1392940800, 1393027200, 1393113600, 1393200000, 1393286400, 1393372800, 1393459200, 1393545600, 1393632000, 1393718400, 1393804800, 1393891200, 1393977600, 1394064000, 1394150400, 1394236800, 1394323200, 1394409600, 1394496000, 1394582400, 1394668800, 1394755200, 1394841600, 1394928000, 1395014400, 1395187200, 1395273600, 1395360000, 1395446400, 1395532800, 1395619200, 1395705600, 1395792000, 1395878400, 1395964800, 1396051200, 1396137600, 1396224000, 1396310400, 1396396800, 1396483200, 1396569600, 1396656000, 1396742400, 1396828800, 1396915200, 1397001600, 1397088000, 1397174400, 1397260800, 1397347200, 1397433600, 1397520000, 1397606400, 1397692800, 1397779200, 1397865600, 1397952000, 1398038400 ] }, { "displayUnit" : "Fraction", "unitDimensions" : "0 0 0 0 0 0 0", "defaultValue" : "{eval mainForm.nextSteps}", "name" : "Steps", "nValues" : [ 7636, 9769, 9819, 7313, 11189, 10131, 9590, 7938, 8948, 12954, 7526, 9810, 10076, 12097, 10121, 13824, 9503, 12808, 9964, 5778, 12248, 12038, 8543, 14463, 10692, 8069, 1570, 10141, 9720, 5608, 9611, 12619, 8419, 10745, 8799, 11342, 7037, 12298, 8858, 12212, 5529, 11726, 11300, 11469, 9632, 10511, 8838, 3461, 10444, 9223, 11946, 12000, 12167, 13726, 9769, 10172, 10574, 10522, 14823, 11001, 5804, 16732, 8752, 12923, 9339, 12979, 10887, 10248, 4820, 10052, 15290, 12001, 13277, 16318, 11734, 14408, 14267, 12007, 5479, 18211, 15215, 10105, 22099, 10274, 11936, 11167, 14045, 11324, 11281, 13499, 13441, 5941, 15368, 17043, 6814, 15469, 12107, 11248, 15410, 16665, 5154, 11883, 13215, 4160, 19290, 16450, 10969, 17997, 9710, 10781, 22681, 6528, 10034, 15503, 17001, 12262, 13699, 18489, 7413, 19247, 5452, 19473, 10626, 11649, 14653, 23230, 11062, 14511, 11764, 8128, 13344, 18383, 14018, 15736, 9136, 17562, 10581, 11661, 7473, 20276, 14534, 15954, 9531, 10957, 14285, 15932, 19006, 11252, 7663, 14578, 18515, 8807, 14978, 9937, 2466, 15194, 15589, 4285, 14817, 11098, 8052, 20545, 2676, 6086, 10063, 11337, 6153, 14226, 14351, 21512, 10426, 13134, 7618, 16357, 13406, 12150, 21122, 6016, 8389, 17099, 16934, 11161, 12305, 19684, 8619, 15027, 13716, 3744, 10395, 14922, 12366, 17857, 17083, 16327, 17437, 10899, 16751, 15182, 4281, 7356, 18193, 17098, 14154, 9854, 25799, 12051, 4632, 6564, 17599, 5118, 13454, 14284, 14771, 3578, 5607, 14754, 13103, 14278, 7373, 11318, 10190, 11883, 14170, 15862, 12353, 7757, 3259, 12119, 13511, 10199, 6318, 10778, 16905, 9136, 12012, 7500, 12651, 14115, 10121, 12072, 16774, 9405, 15883, 8723, 12444, 13621, 10094, 12519, 9633, 13017, 12303, 14460, 13935, 13880, 10369, 14083, 7756, 10647, 12975, 10967, 11352, 14346, 13991, 8675, 14052, 7921, 12143, 12980, 11734, 4154, 11872, 10483, 11910, 6328, 16468, 4017, 12210, 13431, 13004, 15523, 12431, 12282, 6742, 9258, 12877, 9979, 10888, 8590, 8286, 9559, 10083, 9929, 13718, 11763, 13692, 13723, 9982, 9449, 6904, 6488, 16351, 11728, 9632, 7533, 11452, 15835, 10343, 14022, 13305, 11686, 14084, 13365, 12979, 13103, 14621, 8765, 10909, 11296, 10877, 2281, 14287, 6556, 8733, 12166, 9968, 9894, 8071, 16409, 13662, 8802, 8540, 9562, 11140, 12503, 10237, 8592, 15540, 14185, 10064, 13541, 13496, 13904, 7669, 15727, 12809, 11968, 9984, 3674, 9053, 7064, 8995, 12569, 9673, 6369, 15328, 9410, 11705, 11656, 13707, 13236, 16348, 9544, 14646, 9436, 12449, 14382, 5581, 12700, 13295, 9058, 7547, 12822, 12072, 4957, 10340, 17678, 18169, 18274, 19294, 18844, 14279, 12859, 8116, 23639, 11063, 10365, 4014, 11007, 10775, 8670, 12706, 8136, 11619, 7643, 20813, 14178, 18994, 13109, 19972, 6661, 20124, 14099, 13526, 11882, 12307, 6182, 8152, 11103, 9869, 13233, 15500, 13650, 13004, 10393, 14968, 11591, 12143, 11502, 11648, 11063, 8294, 11276, 5672, 20338 ] } ] } ], "DiagramX" : -12321, "diagramScale" : 1.361802935600281, "Type" : "Model", "diagramY" : 78.36752319335938, "diagramX" : -240.1022033691406, "name" : "Root", "HideInfo" : "n" }, "DeviceWidth" : 320, "Program" : "Rtm" }