Last active
July 6, 2016 03:53
-
-
Save bwhitman/6758094 to your computer and use it in GitHub Desktop.
Example output and query code for the historical "M7" data from CMMotionActivityManager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
2013-09-29 21:23:26.468 perf[3911:60b] Sep 26, 2013, 8:47 AM confidence high type walking steps 16 | |
2013-09-29 21:23:26.469 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.471 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence low type steps 0 | |
2013-09-29 21:23:26.472 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.474 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.475 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence high type walking steps 341 | |
2013-09-29 21:23:26.476 perf[3911:60b] Sep 26, 2013, 9:04 AM confidence high type walking steps 6 | |
2013-09-29 21:23:26.478 perf[3911:60b] Sep 26, 2013, 9:04 AM confidence low type steps 18 | |
2013-09-29 21:23:26.480 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence low type steps 6 | |
2013-09-29 21:23:26.481 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence high type steps 4 | |
2013-09-29 21:23:26.482 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence low type walking steps 8 | |
2013-09-29 21:23:26.484 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence medium type walking steps 8 | |
2013-09-29 21:23:26.486 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence high type walking steps 150 | |
2013-09-29 21:23:26.487 perf[3911:60b] Sep 26, 2013, 9:06 AM confidence high type walking steps 6 | |
2013-09-29 21:23:26.488 perf[3911:60b] Sep 26, 2013, 9:06 AM confidence low type steps 16 | |
2013-09-29 21:23:26.490 perf[3911:60b] Sep 26, 2013, 9:07 AM confidence medium type steps 180 | |
2013-09-29 21:23:26.491 perf[3911:60b] Sep 26, 2013, 9:08 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.492 perf[3911:60b] Sep 26, 2013, 9:08 AM confidence high type stationary steps 25 | |
2013-09-29 21:23:26.494 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence high type stationary steps 6 | |
2013-09-29 21:23:26.495 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence medium type steps 7 | |
2013-09-29 21:23:26.497 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence high type stationary steps 7 | |
2013-09-29 21:23:26.498 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence low type steps 8 | |
2013-09-29 21:23:26.500 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence medium type steps 33 | |
2013-09-29 21:23:26.501 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.502 perf[3911:60b] Sep 26, 2013, 9:09 AM confidence high type stationary steps 49 | |
2013-09-29 21:23:26.504 perf[3911:60b] Sep 26, 2013, 9:10 AM confidence high type stationary steps 6 | |
2013-09-29 21:23:26.505 perf[3911:60b] Sep 26, 2013, 9:10 AM confidence medium type steps 18 | |
2013-09-29 21:23:26.507 perf[3911:60b] Sep 26, 2013, 9:10 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.508 perf[3911:60b] Sep 26, 2013, 9:10 AM confidence high type stationary steps 8 | |
2013-09-29 21:23:26.510 perf[3911:60b] Sep 26, 2013, 9:10 AM confidence medium type steps 67 | |
2013-09-29 21:23:26.511 perf[3911:60b] Sep 26, 2013, 9:11 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.512 perf[3911:60b] Sep 26, 2013, 9:11 AM confidence high type steps 15 | |
2013-09-29 21:23:26.514 perf[3911:60b] Sep 26, 2013, 9:11 AM confidence high type stationary steps 7 | |
2013-09-29 21:23:26.515 perf[3911:60b] Sep 26, 2013, 9:11 AM confidence low type steps 15 | |
2013-09-29 21:23:26.517 perf[3911:60b] Sep 26, 2013, 9:12 AM confidence low type walking steps 7 | |
2013-09-29 21:23:26.518 perf[3911:60b] Sep 26, 2013, 9:12 AM confidence low type walking steps 7 | |
2013-09-29 21:23:26.520 perf[3911:60b] Sep 26, 2013, 9:12 AM confidence medium type walking steps 7 | |
2013-09-29 21:23:26.521 perf[3911:60b] Sep 26, 2013, 9:12 AM confidence high type walking steps 614 | |
2013-09-29 21:23:26.523 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence high type walking steps 6 | |
2013-09-29 21:23:26.524 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence low type steps 38 | |
2013-09-29 21:23:26.525 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence low type steps 7 | |
2013-09-29 21:23:26.527 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence high type steps 4 | |
2013-09-29 21:23:26.528 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence low type walking steps 8 | |
2013-09-29 21:23:26.530 perf[3911:60b] Sep 26, 2013, 9:19 AM confidence medium type walking steps 8 | |
2013-09-29 21:23:26.531 perf[3911:60b] Sep 26, 2013, 9:20 AM confidence high type walking steps 366 | |
2013-09-29 21:23:26.533 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence high type walking steps 6 | |
2013-09-29 21:23:26.534 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence low type steps 18 | |
2013-09-29 21:23:26.535 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence low type steps 7 | |
2013-09-29 21:23:26.537 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence high type steps 24 | |
2013-09-29 21:23:26.538 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence high type steps 7 | |
2013-09-29 21:23:26.540 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence medium type walking steps 9 | |
2013-09-29 21:23:26.542 perf[3911:60b] Sep 26, 2013, 9:29 AM confidence high type walking steps 19 | |
2013-09-29 21:23:26.543 perf[3911:60b] Sep 26, 2013, 9:30 AM confidence high type walking steps 7 | |
2013-09-29 21:23:26.545 perf[3911:60b] Sep 26, 2013, 9:30 AM confidence low type steps 4 | |
2013-09-29 21:23:26.548 perf[3911:60b] Sep 26, 2013, 9:30 AM confidence low type walking steps 61 | |
2013-09-29 21:23:26.549 perf[3911:60b] Sep 26, 2013, 9:30 AM confidence low type walking steps 7 | |
2013-09-29 21:23:26.550 perf[3911:60b] Sep 26, 2013, 9:30 AM confidence medium type walking steps 97 | |
2013-09-29 21:23:26.552 perf[3911:60b] Sep 26, 2013, 9:31 AM confidence medium type walking steps 6 | |
2013-09-29 21:23:26.554 perf[3911:60b] Sep 26, 2013, 9:31 AM confidence low type walking steps 13 | |
2013-09-29 21:23:26.555 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence medium type walking steps 3 | |
2013-09-29 21:23:26.557 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence medium type steps 3 | |
2013-09-29 21:23:26.558 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence medium type walking steps 4 | |
2013-09-29 21:23:26.560 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence low type steps 14 | |
2013-09-29 21:23:26.561 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence low type walking steps 8 | |
2013-09-29 21:23:26.562 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence medium type walking steps 8 | |
2013-09-29 21:23:26.564 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence high type walking steps 8 | |
2013-09-29 21:23:26.565 perf[3911:60b] Sep 26, 2013, 9:32 AM confidence low type running steps 49 | |
2013-09-29 21:23:26.566 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence low type running steps 6 | |
2013-09-29 21:23:26.568 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence high type running steps 14 | |
2013-09-29 21:23:26.569 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence high type running steps 6 | |
2013-09-29 21:23:26.570 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence low type walking steps 8 | |
2013-09-29 21:23:26.572 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence medium type walking steps 8 | |
2013-09-29 21:23:26.574 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence high type walking steps 8 | |
2013-09-29 21:23:26.575 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence low type steps 9 | |
2013-09-29 21:23:26.576 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence medium type steps 13 | |
2013-09-29 21:23:26.578 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.580 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence high type steps 4 | |
2013-09-29 21:23:26.581 perf[3911:60b] Sep 26, 2013, 9:33 AM confidence low type walking steps 27 | |
2013-09-29 21:23:26.583 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence low type walking steps 6 | |
2013-09-29 21:23:26.585 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence medium type steps 15 | |
2013-09-29 21:23:26.586 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence low type walking steps 9 | |
2013-09-29 21:23:26.587 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence low type walking steps 6 | |
2013-09-29 21:23:26.589 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence low type steps 3 | |
2013-09-29 21:23:26.590 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence medium type steps 7 | |
2013-09-29 21:23:26.592 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence high type steps 15 | |
2013-09-29 21:23:26.593 perf[3911:60b] Sep 26, 2013, 9:34 AM confidence medium type steps 70 | |
2013-09-29 21:23:26.595 perf[3911:60b] Sep 26, 2013, 9:35 AM confidence medium type steps 3 | |
2013-09-29 21:23:26.596 perf[3911:60b] Sep 26, 2013, 9:35 AM confidence low type walking steps 8 | |
2013-09-29 21:23:26.598 perf[3911:60b] Sep 26, 2013, 9:35 AM confidence medium type walking steps 4 | |
2013-09-29 21:23:26.599 perf[3911:60b] Sep 26, 2013, 9:36 AM confidence high type walking steps 27 | |
2013-09-29 21:23:26.600 perf[3911:60b] Sep 26, 2013, 9:36 AM confidence high type walking steps 5 | |
2013-09-29 21:23:26.602 perf[3911:60b] Sep 26, 2013, 9:36 AM confidence medium type steps 865 | |
2013-09-29 21:23:26.604 perf[3911:60b] Sep 26, 2013, 9:46 AM confidence medium type steps 3 | |
2013-09-29 21:23:26.605 perf[3911:60b] Sep 26, 2013, 9:46 AM confidence low type automotive steps 18 | |
2013-09-29 21:23:26.607 perf[3911:60b] Sep 26, 2013, 9:46 AM confidence low type automotive steps 6 | |
2013-09-29 21:23:26.608 perf[3911:60b] Sep 26, 2013, 9:46 AM confidence medium type steps 23 | |
2013-09-29 21:23:26.610 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence medium type steps 6 | |
2013-09-29 21:23:26.611 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence low type automotive steps 10 | |
2013-09-29 21:23:26.612 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence low type automotive steps 6 | |
2013-09-29 21:23:26.614 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence medium type automotive steps 10 | |
2013-09-29 21:23:26.615 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence medium type automotive steps 6 | |
2013-09-29 21:23:26.617 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence low type steps 3 | |
2013-09-29 21:23:26.618 perf[3911:60b] Sep 26, 2013, 9:47 AM confidence medium type steps 164 | |
2013-09-29 21:23:26.620 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence medium type steps 9 | |
2013-09-29 21:23:26.621 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence high type steps 5 | |
2013-09-29 21:23:26.622 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence low type walking steps 11 | |
2013-09-29 21:23:26.624 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence low type steps 39 | |
2013-09-29 21:23:26.625 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence low type steps 0 | |
2013-09-29 21:23:26.627 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence high type steps 0 | |
2013-09-29 21:23:26.629 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.630 perf[3911:60b] Sep 26, 2013, 9:49 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.632 perf[3911:60b] Sep 26, 2013, 9:51 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.633 perf[3911:60b] Sep 26, 2013, 9:51 AM confidence low type steps 0 | |
2013-09-29 21:23:26.635 perf[3911:60b] Sep 26, 2013, 9:51 AM confidence low type steps 0 | |
2013-09-29 21:23:26.636 perf[3911:60b] Sep 26, 2013, 9:51 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.638 perf[3911:60b] Sep 26, 2013, 9:51 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.639 perf[3911:60b] Sep 26, 2013, 9:52 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.641 perf[3911:60b] Sep 26, 2013, 9:52 AM confidence high type walking steps 1 | |
2013-09-29 21:23:26.642 perf[3911:60b] Sep 26, 2013, 9:53 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.644 perf[3911:60b] Sep 26, 2013, 9:53 AM confidence low type steps 0 | |
2013-09-29 21:23:26.645 perf[3911:60b] Sep 26, 2013, 9:53 AM confidence medium type steps 2 | |
2013-09-29 21:23:26.647 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence medium type steps 0 | |
2013-09-29 21:23:26.648 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence high type steps 0 | |
2013-09-29 21:23:26.650 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.652 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence low type steps 0 | |
2013-09-29 21:23:26.653 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence medium type steps 0 | |
2013-09-29 21:23:26.655 perf[3911:60b] Sep 26, 2013, 9:54 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.656 perf[3911:60b] Sep 26, 2013, 9:55 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.657 perf[3911:60b] Sep 26, 2013, 9:55 AM confidence high type walking steps 4 | |
2013-09-29 21:23:26.659 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.660 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence low type running steps 0 | |
2013-09-29 21:23:26.662 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence medium type running steps 0 | |
2013-09-29 21:23:26.663 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence high type running steps 0 | |
2013-09-29 21:23:26.665 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence high type running steps 0 | |
2013-09-29 21:23:26.666 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.668 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.669 perf[3911:60b] Sep 26, 2013, 9:57 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.670 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence low type running steps 0 | |
2013-09-29 21:23:26.672 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence medium type running steps 0 | |
2013-09-29 21:23:26.674 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence high type running steps 0 | |
2013-09-29 21:23:26.675 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence high type running steps 0 | |
2013-09-29 21:23:26.677 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.678 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.679 perf[3911:60b] Sep 26, 2013, 9:58 AM confidence high type walking steps 1 | |
2013-09-29 21:23:26.681 perf[3911:60b] Sep 26, 2013, 9:59 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.683 perf[3911:60b] Sep 26, 2013, 9:59 AM confidence high type steps 0 | |
2013-09-29 21:23:26.684 perf[3911:60b] Sep 26, 2013, 9:59 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.685 perf[3911:60b] Sep 26, 2013, 9:59 AM confidence medium type walking steps 0 | |
2013-09-29 21:23:26.687 perf[3911:60b] Sep 26, 2013, 9:59 AM confidence high type walking steps 6 | |
2013-09-29 21:23:26.689 perf[3911:60b] Sep 26, 2013, 10:02 AM confidence high type walking steps 0 | |
2013-09-29 21:23:26.690 perf[3911:60b] Sep 26, 2013, 10:02 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.692 perf[3911:60b] Sep 26, 2013, 10:02 AM confidence high type steps 0 | |
2013-09-29 21:23:26.694 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence high type steps 0 | |
2013-09-29 21:23:26.695 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.697 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence high type steps 0 | |
2013-09-29 21:23:26.698 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence high type steps 0 | |
2013-09-29 21:23:26.700 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence low type walking steps 0 | |
2013-09-29 21:23:26.701 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence low type steps 0 | |
2013-09-29 21:23:26.703 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.704 perf[3911:60b] Sep 26, 2013, 10:03 AM confidence low type steps 0 | |
2013-09-29 21:23:26.706 perf[3911:60b] Sep 26, 2013, 10:04 AM confidence low type steps 0 | |
2013-09-29 21:23:26.707 perf[3911:60b] Sep 26, 2013, 10:04 AM confidence high type stationary steps 1 | |
2013-09-29 21:23:26.709 perf[3911:60b] Sep 26, 2013, 10:04 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.710 perf[3911:60b] Sep 26, 2013, 10:04 AM confidence high type steps 1 | |
2013-09-29 21:23:26.712 perf[3911:60b] Sep 26, 2013, 10:05 AM confidence high type steps 0 | |
2013-09-29 21:23:26.713 perf[3911:60b] Sep 26, 2013, 10:05 AM confidence high type stationary steps 312 | |
2013-09-29 21:23:26.714 perf[3911:60b] Sep 26, 2013, 10:09 AM confidence high type stationary steps 8 | |
2013-09-29 21:23:26.716 perf[3911:60b] Sep 26, 2013, 10:09 AM confidence high type steps 11 | |
2013-09-29 21:23:26.718 perf[3911:60b] Sep 26, 2013, 10:09 AM confidence high type steps 0 | |
2013-09-29 21:23:26.719 perf[3911:60b] Sep 26, 2013, 10:09 AM confidence high type stationary steps 21 | |
2013-09-29 21:23:26.720 perf[3911:60b] Sep 26, 2013, 10:10 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.722 perf[3911:60b] Sep 26, 2013, 10:10 AM confidence high type steps 5 | |
2013-09-29 21:23:26.723 perf[3911:60b] Sep 26, 2013, 10:11 AM confidence high type steps 7 | |
2013-09-29 21:23:26.724 perf[3911:60b] Sep 26, 2013, 10:11 AM confidence high type stationary steps 477 | |
2013-09-29 21:23:26.726 perf[3911:60b] Sep 26, 2013, 10:17 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.727 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type steps 0 | |
2013-09-29 21:23:26.729 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type steps 0 | |
2013-09-29 21:23:26.730 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.732 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type steps 0 | |
2013-09-29 21:23:26.733 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.735 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type steps 0 | |
2013-09-29 21:23:26.736 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type steps 0 | |
2013-09-29 21:23:26.737 perf[3911:60b] Sep 26, 2013, 10:18 AM confidence high type stationary steps 15 | |
2013-09-29 21:23:26.739 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.741 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type steps 0 | |
2013-09-29 21:23:26.743 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type steps 0 | |
2013-09-29 21:23:26.744 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.745 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.747 perf[3911:60b] Sep 26, 2013, 10:38 AM confidence high type steps 0 | |
2013-09-29 21:23:26.748 perf[3911:60b] Sep 26, 2013, 10:39 AM confidence high type steps 0 | |
2013-09-29 21:23:26.749 perf[3911:60b] Sep 26, 2013, 10:39 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.751 perf[3911:60b] Sep 26, 2013, 10:39 AM confidence high type steps 0 | |
2013-09-29 21:23:26.752 perf[3911:60b] Sep 26, 2013, 10:40 AM confidence high type steps 0 | |
2013-09-29 21:23:26.753 perf[3911:60b] Sep 26, 2013, 10:40 AM confidence high type stationary steps 1 | |
2013-09-29 21:23:26.755 perf[3911:60b] Sep 26, 2013, 10:41 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.756 perf[3911:60b] Sep 26, 2013, 10:42 AM confidence high type steps 0 | |
2013-09-29 21:23:26.758 perf[3911:60b] Sep 26, 2013, 10:42 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.759 perf[3911:60b] Sep 26, 2013, 10:42 AM confidence high type steps 0 | |
2013-09-29 21:23:26.760 perf[3911:60b] Sep 26, 2013, 10:42 AM confidence high type steps 0 | |
2013-09-29 21:23:26.761 perf[3911:60b] Sep 26, 2013, 10:42 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.763 perf[3911:60b] Sep 26, 2013, 10:43 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.764 perf[3911:60b] Sep 26, 2013, 10:43 AM confidence high type steps 1 | |
2013-09-29 21:23:26.766 perf[3911:60b] Sep 26, 2013, 10:44 AM confidence high type steps 0 | |
2013-09-29 21:23:26.767 perf[3911:60b] Sep 26, 2013, 10:45 AM confidence high type stationary steps 2 | |
2013-09-29 21:23:26.769 perf[3911:60b] Sep 26, 2013, 10:47 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.770 perf[3911:60b] Sep 26, 2013, 10:47 AM confidence high type steps 0 | |
2013-09-29 21:23:26.772 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence high type steps 0 | |
2013-09-29 21:23:26.773 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.775 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence medium type steps 0 | |
2013-09-29 21:23:26.776 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence medium type steps 0 | |
2013-09-29 21:23:26.777 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.779 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence high type steps 0 | |
2013-09-29 21:23:26.780 perf[3911:60b] Sep 26, 2013, 10:48 AM confidence high type steps 0 | |
2013-09-29 21:23:26.781 perf[3911:60b] Sep 26, 2013, 10:49 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.783 perf[3911:60b] Sep 26, 2013, 10:49 AM confidence high type stationary steps 0 | |
2013-09-29 21:23:26.784 perf[3911:60b] Sep 26, 2013, 10:49 AM confidence medium type steps 2 | |
2013-09-29 21:23:26.786 perf[3911:60b] Sep 26, 2013, 10:52 AM confidence medium type steps 0 | |
*/ | |
if([CMMotionActivityManager isActivityAvailable]) { | |
CMMotionActivityManager *cm = [[CMMotionActivityManager alloc] init]; | |
CMStepCounter *sc = [[CMStepCounter alloc] init]; | |
NSDate *today = [NSDate date]; | |
NSDate *lastWeek = [today dateByAddingTimeInterval:-(86400*7)]; | |
[cm queryActivityStartingFromDate:lastWeek toDate:today toQueue:[NSOperationQueue mainQueue] withHandler:^(NSArray *activities, NSError *error){ | |
for(int i=0;i<[activities count]-1;i++) { | |
CMMotionActivity *a = [activities objectAtIndex:i]; | |
NSString *confidence = @"low"; | |
if (a.confidence == CMMotionActivityConfidenceMedium) confidence = @"medium"; | |
if (a.confidence == CMMotionActivityConfidenceHigh) confidence = @"high"; | |
NSString *motion = @""; | |
if (a.stationary) motion = [motion stringByAppendingString:@"stationary "]; | |
if (a.walking) motion = [motion stringByAppendingString:@"walking "]; | |
if (a.running) motion = [motion stringByAppendingString:@"running "]; | |
if (a.automotive) motion = [motion stringByAppendingString:@"automotive "]; | |
// Now get steps as well | |
[sc queryStepCountStartingFrom:a.startDate to:[[activities objectAtIndex:i+1] startDate] toQueue:[NSOperationQueue mainQueue] withHandler:^(NSInteger numberOfSteps, NSError *error) { | |
NSLog(@"%@ confidence %@ type %@ steps %ld", [NSDateFormatter localizedStringFromDate:a.startDate dateStyle:NSDateFormatterMediumStyle timeStyle:NSDateFormatterShortStyle], confidence, motion, numberOfSteps); | |
}]; | |
} | |
}]; | |
} else { | |
NSLog(@"cm not ok"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment