{"id":23913719,"url":"https://github.com/staticf0x/daylio-stats","last_synced_at":"2025-04-11T15:13:24.620Z","repository":{"id":39665517,"uuid":"262815864","full_name":"staticf0x/daylio-stats","owner":"staticf0x","description":"A Django web app to generate stats from Daylio exports","archived":false,"fork":false,"pushed_at":"2025-03-22T03:20:13.000Z","size":3016,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:21:45.248Z","etag":null,"topics":["django","matplotlib","numpy","python"],"latest_commit_sha":null,"homepage":"","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/staticf0x.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-05-10T15:21:54.000Z","updated_at":"2024-07-02T23:30:58.000Z","dependencies_parsed_at":"2023-01-26T22:46:23.782Z","dependency_job_id":"f0c99cb2-86d1-42ad-b9bf-487655e9e804","html_url":"https://github.com/staticf0x/daylio-stats","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/staticf0x%2Fdaylio-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticf0x%2Fdaylio-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticf0x%2Fdaylio-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticf0x%2Fdaylio-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staticf0x","download_url":"https://codeload.github.com/staticf0x/daylio-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429117,"owners_count":21101785,"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":["django","matplotlib","numpy","python"],"created_at":"2025-01-05T09:46:34.659Z","updated_at":"2025-04-11T15:13:24.599Z","avatar_url":"https://github.com/staticf0x.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# daylio-stats\n\nA tool to generate stats/charts from Daylio CSV exports.\n\nCurrently supports:\n\n- Creating a chart of all data since the beginning of tracking\n- Smoothing the chart with a rolling average\n\nLocally you can use:\n\n```\n$ ./manage.py generate_charts \u003cpath to Daylio CSV\u003e\n```\n\nto get more charts than we're able to generate now on Heroku.\n\n## Running locally\n\n### Installation\n\nAfter cloning the repo:\n\n- `$ npm install` (this is only for development currently)\n- `$ poetry install`\n\n### Secret key for Django\n\nEither set the `DS_SECRET_KEY` env variable directly, or read the key from a file.\n\nFor bash:\n\n```bash\n$ export DS_SECRET_KEY=$(cat .ds_secret_key)\n```\n\nFor fish:\n\n```fish\n$ set -x DS_SECRET_KEY (cat .ds_secret_key)\n```\n\nOr just create `.env` file and put it in there:\n\n```\nDS_SECRET_KEY=...\n```\n\n### Database password\n\nSame as with the secret key:\n\nEither set the `DS_DB_PASSWORD` env variable directly, or read the key from a file.\n\nFor bash:\n\n```bash\n$ export DS_DB_PASSWORD=$(cat .ds_db_password)\n```\n\nFor fish:\n\n```fish\n$ set -x DS_DB_PASSWORD (cat .ds_db_password)\n```\n\n### Setting the dev environment\n\nGo to `dayliostats/settings.py` and set\n\n```python\nDEBUG = True\nADMIN = True\n```\n\n### Run the development server\n\nFor port 8000:\n\n```\n$ poetry shell\n$ ./manage.py runserver 8000\n```\n\n### Or use gunicorn\n\n```\n$ gunicorn dayliostats.wsgi\n```\n\n### Or use Docker\n\n```\n$ docker run --rm -e DS_SECRET_KEY=\"\u003csecret key\u003e\" -p 8000:8000 daylio-stats\n```\n\n## Running tests\n\n```\n$ ./manage.py test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticf0x%2Fdaylio-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaticf0x%2Fdaylio-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticf0x%2Fdaylio-stats/lists"}