Skip to content

Instantly share code, notes, and snippets.

@btroia
Created March 10, 2015 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btroia/df1e6454f296ba6173b2 to your computer and use it in GitHub Desktop.
Save btroia/df1e6454f296ba6173b2 to your computer and use it in GitHub Desktop.
mongoexport that will dump Basis sleep data from MongoDB normalized collection into a .csv for import into Excel
mongoexport \
--collection sleepexport --type=csv --fields _id,start_time,offset,light_minutes,rem_minutes,deep_minutes,interruption_minutes,unknown_minutes \
--out mysleepdata.csv --db mydb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment