Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
/ py-sleep-influxdb Public archive

Parse Sleep As Android csv and store data in InfluxDb

License

Notifications You must be signed in to change notification settings

knowhy/py-sleep-influxdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

py-sleep-influxdb

Parse Sleep As Android csv and store data in InfluxDb

Usage

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 the From field from the csv for the time field in InfluxDb. The script will write one record in InfluxDb per record in csv. actigraphic and noise records are currently not stored.

For the documentation of the csv format take a look at https://sleep.urbandroid.org/documentation/developer-api/csv/

The data can than be plotted with Grafana.

Dashboard

About

Parse Sleep As Android csv and store data in InfluxDb

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages