Compare commits
2 Commits
a465d09e63
...
5d04d6b4ff
Author | SHA1 | Date |
---|---|---|
n | 5d04d6b4ff | |
n | f9a1a61200 |
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
export Pacer data to InfluxDB
|
export Pacer data to InfluxDB
|
||||||
|
|
||||||
|
* require Python 3, influxdb-python and sqlite-python
|
||||||
* original code from https://github.com/korjavin/sqlite2influxdb and https://github.com/influxdata/influxdb-python
|
* original code from https://github.com/korjavin/sqlite2influxdb and https://github.com/influxdata/influxdb-python
|
||||||
* sqlite database is /data/data/cc.pacer.androidapp/databases/MDData.db on an Android device, may need root privileges to get it
|
* sqlite database is /data/data/cc.pacer.androidapp/databases/MDData.db on an Android device, may need root privileges to get it
|
||||||
* collects steps, distance, active time and calories
|
* collects steps, distance, active time and calories
|
||||||
|
|
|
@ -4,7 +4,6 @@ import datetime
|
||||||
import time
|
import time
|
||||||
import sqlite3 as lite
|
import sqlite3 as lite
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
|
||||||
|
|
||||||
def main(host='localhost', port=8086, user='root', password='root', dbname='demo', dbfile='demo.db'):
|
def main(host='localhost', port=8086, user='root', password='root', dbname='demo', dbfile='demo.db'):
|
||||||
"""Instantiate the connection to the InfluxDB client."""
|
"""Instantiate the connection to the InfluxDB client."""
|
||||||
|
|
Loading…
Reference in New Issue