{"id":17795753,"url":"https://github.com/avh4/sleep-as-android-parser","last_synced_at":"2026-03-07T15:34:21.201Z","repository":{"id":19066049,"uuid":"22292855","full_name":"avh4/sleep-as-android-parser","owner":"avh4","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-27T15:40:32.000Z","size":160,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T19:25:35.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avh4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-26T18:02:38.000Z","updated_at":"2025-01-07T17:20:56.000Z","dependencies_parsed_at":"2022-09-25T04:12:03.780Z","dependency_job_id":null,"html_url":"https://github.com/avh4/sleep-as-android-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avh4/sleep-as-android-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Fsleep-as-android-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Fsleep-as-android-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Fsleep-as-android-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Fsleep-as-android-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avh4","download_url":"https://codeload.github.com/avh4/sleep-as-android-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Fsleep-as-android-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T11:38:16.941Z","updated_at":"2026-03-07T15:34:21.174Z","avatar_url":"https://github.com/avh4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/avh4/sleep-as-android-parser.svg)](http://travis-ci.org/avh4/sleep-as-android-parser)\n\nThis is a script to parse and simplify the data exported by the [Sleep as Android](https://play.google.com/store/apps/details?id=com.urbandroid.sleep\u0026hl=en) sleep tracker app.  See the [documentation](https://sites.google.com/site/sleepasandroid/doc/backup) on how to export your data in the `sleep-export.csv` format for use with this script.\n\n### Movement data\n\n```\nnode main.js --csv-data sleep-export.csv\n```\n\nExample output:\n```csv\nTimestamp,Movement,Noise\n2014-07-26T02:40-0700,1.7019926,4314.405\n2014-07-26T02:44-0700,0.29956794,446.9163\n2014-07-26T02:47-0700,0.27947846,425.9386\n2014-07-26T02:50-0700,0.2592457,443.99234\n```\n\n### Events\n\n```bash\nnode main.js --csv-events sleep-export.csv\n```\n\nExample output:\n```csv\nTimestamp,Event\n2014-07-26T02:37:27.010-0700,LIGHT_START\n2014-07-26T02:40:47.276-0700,LIGHT_END\n2014-07-26T02:40:47.276-0700,DEEP_START\n2014-07-26T03:44:13.926-0700,REM_START\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Fsleep-as-android-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favh4%2Fsleep-as-android-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Fsleep-as-android-parser/lists"}