{"id":18221870,"url":"https://github.com/karlicoss/emfitexport","last_synced_at":"2025-04-03T02:30:51.617Z","repository":{"id":141611357,"uuid":"170932271","full_name":"karlicoss/emfitexport","owner":"karlicoss","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-25T22:50:56.000Z","size":40,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T20:05:08.177Z","etag":null,"topics":["backup","data-liberation","emfit","emfitqs","export"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karlicoss.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-02-15T21:45:12.000Z","updated_at":"2025-01-25T22:50:58.000Z","dependencies_parsed_at":"2023-04-11T06:08:44.984Z","dependency_job_id":null,"html_url":"https://github.com/karlicoss/emfitexport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlicoss%2Femfitexport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlicoss%2Femfitexport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlicoss%2Femfitexport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlicoss%2Femfitexport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karlicoss","download_url":"https://codeload.github.com/karlicoss/emfitexport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246925207,"owners_count":20855857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backup","data-liberation","emfit","emfitqs","export"],"created_at":"2024-11-03T22:04:51.094Z","updated_at":"2025-04-03T02:30:51.318Z","avatar_url":"https://github.com/karlicoss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Export your personal [[https://www.emfit.com/active-life-sleep-and-recovery][Emfit QS]] sleep data.\n\n\n* Setting up\n1. Clone *recursively*: =git clone --recursive https://github.com/karlicoss/emfitexport=\n2. =pip3 install --user -r requirements.txt=\n3. Note that unfortunately, the script needs your Emfit username and password, because the token expires after a few weeks.\n\n# 3. Log in to your [[https://qs.emfit.com][Emfit dashboard]] and extract the =Authorisation= header using browser's devtools.\n#    It should look like =Bearer SOME_LONG_STRING=.\n#    If you don't know how to do it, [[https://willschenk.com/articles/2019/reverse_engineering_apis_using_chrome][here]] is a nice tutorial.\n\n# TODO really need a way to install dependencies only... or maybe it's fair that setup.py reads requirements.txt, dunno\n\n* Exporting\n\n#+begin_src python :dir src :results drawer :exports results\nimport emfitexport.export as E; return E.make_parser().epilog\n#+end_src\n\n#+RESULTS:\n:results:\n\nUsage:\n\n*Recommended*: create =secrets.py= keeping your api parameters, e.g.:\n\n\n: username = \"USERNAME\"\n: password = \"PASSWORD\"\n\n\nAfter that, use:\n\n: ./export.py --secrets /path/to/secrets.py\n\nThat way you type less and have control over where you keep your plaintext secrets.\n\n*Alternatively*, you can pass parameters directly, e.g.\n\n: ./export.py --username \u003cusername\u003e --password \u003cpassword\u003e\n\nHowever, this is verbose and prone to leaking your keys/tokens/passwords in shell history.\n\n\n\nI *highly* recommend checking exported files at least once just to make sure they contain everything you expect from your export. If not, please feel free to ask or raise an issue!\n\n:end:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlicoss%2Femfitexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarlicoss%2Femfitexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlicoss%2Femfitexport/lists"}