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
| #!/usr/bin/env python | |
| import sys | |
| import time | |
| def readdata(): | |
| """ input is from stdin in the format of lines of long string starting | |
| with a tab ('\t') representing the hexadcimal representation of the data | |
| (megadump)""" | |
| d = [] |
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
| import os, yaml | |
| TRACKERID = '22WB2F' | |
| def collect(dir): | |
| dir = os.path.join(os.path.expanduser('~/.fitbit'), dir) | |
| data = {} | |
| for fname in os.listdir(dir): | |
| if 'connection-' in fname: | |
| f = open(os.path.join(dir, fname), 'r') |
NewerOlder