This repository was archived by the owner on Aug 21, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork2
Parse Sleep As Android csv and store data in InfluxDb
License
NotificationsYou must be signed in to change notification settings
knowhy/py-sleep-influxdb
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Parse Sleep As Android csv and store data in InfluxDb
download the csv backup from Sleep As Android and store the file as sleep.csv. Configure
- influxdb_dbname
- influxdb_user
- influxdb_password
- influxdb_host
- influxdb_port
Create the database in InfluxDb and start the script.
The script takes theFrom
field from the csv for thetime
field in InfluxDb. The script will write one record in InfluxDb per record in csv.actigraphic
andnoise
records are currently not stored.
For the documentation of the csv format take a look athttp://sleep.urbandroid.org/documentation/developer-api/csv/
The data can than be plotted with Grafana.