{"id":16233799,"url":"https://github.com/genietim/ache-analyzer","last_synced_at":"2025-04-08T07:40:17.964Z","repository":{"id":98888190,"uuid":"182832024","full_name":"GenieTim/ache-analyzer","owner":"GenieTim","description":"Principal component and other statistical analysis to detect correlations to aches","archived":false,"fork":false,"pushed_at":"2020-02-11T21:02:38.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T04:49:06.790Z","etag":null,"topics":["ache","fitbit","health","statistics","weather"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GenieTim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"GenieTim","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-04-22T17:08:20.000Z","updated_at":"2020-02-11T21:02:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"91fda090-09b5-4c07-bf4d-77d7a8904853","html_url":"https://github.com/GenieTim/ache-analyzer","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.08695652173913049,"last_synced_commit":"bae2144cc2604db69ebdab3c4513f861589ace4a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieTim%2Fache-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieTim%2Fache-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieTim%2Fache-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieTim%2Fache-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenieTim","download_url":"https://codeload.github.com/GenieTim/ache-analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247800083,"owners_count":20998327,"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":["ache","fitbit","health","statistics","weather"],"created_at":"2024-10-10T13:13:57.001Z","updated_at":"2025-04-08T07:40:17.940Z","avatar_url":"https://github.com/GenieTim.png","language":"MATLAB","funding_links":["https://github.com/sponsors/GenieTim"],"categories":[],"sub_categories":[],"readme":"# Ache Analyzer \n\nThis is a proof of concept, or rather a personal experiment, \nto analyze and find correlations between aches, such as a headache, and\ndata, such as weather or the one collected by a FitBit watch.\n\nProof of concept insofar as Matlab might be the wrong choice for the data \naggregation part in this software, given that there is no easy way to handle OAuth, \nfor example for the one provided by FitBit, \nwhereas another language such as Phyton could have provided simple libraries. \n\nNote that depending on your data structures this program may not always work. \nFeel free to contribute to [functions/simplifyTable](functions/simplifyTable) to fix this issue.\n\n## Setup\n\nYou are required to create a file \"headacheData.xlsx\" and a file \"config.json\" \n(run setup.sh to let it do it for you).\nThe headacheData shall be an Excel Table with one sheet, having at least the \ntwo columns (with these titles) *time* (being the datetime) and *dolor* \n(being the badness/strength of the ache).\nThe config.json file may have different keys, depending on the data you want to analyse too.\nIt may look like this (replace the ... with your own keys):\n\n```json\n{\n    \"darkSky\": {\n        \"apiSecret\": \"...\",\n        \"apiURL\": \"https://api.darksky.net/forecast/%s/%f,%f,%d\"\n    },\n    \"fitBit\": {\n        \"clientID\": \"...\",\n        \"clientSecret\": \"...\",\n        \"callbackURI\": \"https://example.com/headache-pca/login-callback\",\n        \"callbackSecret\": 123456789,\n        \"authorizationURI\": \"https://www.fitbit.com/oauth2/authorize\",\n        \"refreshTokenURI\": \"https://api.fitbit.com/oauth2/token\"\n    }\n}\n```\n\nAdditionally, you may edit main.m to add/remove unused data provider or \ndesired analysi\n\n## Usage\n\nAfter download \u0026 setup, you can just use MatLab to run `main.m`.\nMake sure to adapt it to the analysis you want to actually run. \nDepending on your data, you might need to interact from time to time; \nFitBit for example requires you to enter the access_token for the API, \nas there is currently no (to me known) way to access the redirect URL using Matlab.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenietim%2Fache-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenietim%2Fache-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenietim%2Fache-analyzer/lists"}