{"id":20070645,"url":"https://github.com/gedankenstuecke/one-button-tracker","last_synced_at":"2025-06-12T12:09:01.761Z","repository":{"id":140516170,"uuid":"275140684","full_name":"gedankenstuecke/one-button-tracker","owner":"gedankenstuecke","description":"Using the Puck.js as a one-button tracker","archived":false,"fork":false,"pushed_at":"2020-07-31T09:28:13.000Z","size":18031,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T11:48:50.444Z","etag":null,"topics":["quantifiedself","selfresearch","tracking"],"latest_commit_sha":null,"homepage":"https://tzovar.as/one-button-tracker","language":"HTML","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/gedankenstuecke.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,"publiccode":null,"codemeta":null}},"created_at":"2020-06-26T11:32:38.000Z","updated_at":"2024-02-28T20:24:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b318a79-b9fc-462f-9667-3648d1f5a923","html_url":"https://github.com/gedankenstuecke/one-button-tracker","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"8b21ef4ba7eb98a84850a8f1a41dc86c4fb57116"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gedankenstuecke/one-button-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedankenstuecke%2Fone-button-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedankenstuecke%2Fone-button-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedankenstuecke%2Fone-button-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedankenstuecke%2Fone-button-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedankenstuecke","download_url":"https://codeload.github.com/gedankenstuecke/one-button-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedankenstuecke%2Fone-button-tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259462559,"owners_count":22861512,"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":["quantifiedself","selfresearch","tracking"],"created_at":"2024-11-13T14:24:22.818Z","updated_at":"2025-06-12T12:09:01.731Z","avatar_url":"https://github.com/gedankenstuecke.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# one-button-tracker for _Puck.js_\n\nThe [_Puck.js_]() is a bluetooth beacon that's fully open source and can be programmed wirelessly using JavaScript. It comes with a ton of sensors (light, temperature, accelerometer, gyroscope, magnetometer) but more importantly: \n\n__It comes with a button__!\n\n[This little website sets up the _Puck.js_ as a one-button tracker](https://tzovar.as/one-button-tracker), allowing you to track events when they happen. When you press the button the Puck will record these two things: \n- when you pressed the button\n- for how long you pressed the button\n\nAlong with this it will also record some additional data which can be useful to rule out accidental button presses: \n- the current temperature (in ºC)\n- the light reading (between 0-1)\n- the accelerometer data (X/Y/Z coordinates)\n\nThis should allow for cleaning the data (e.g. if you accidentally pressed the button a ton of times while the _Puck.js_ was in your pocket). \n\n## Give it a try\n\n- Go to https://tzovar.as/one-button-tracker in Chrome or Opera\n- Press _install_ \u0026 select your _Puck.js_ from the connection popup\n- You're done, you can now press the button\n- Click _Download_ on the same page and it will download your CSV\n- Click _Erase_ to remove an old recording file and start anew\n\n## Example output\n\nThe resulting CSV you can download looks like this: \n\n```\n#timestamp,left_empty,press_duration,temperature,light_level,x,y,z\n1593285345.97545909881,-,0.66439819335,28.25,0.08263826370,-1553,6295,5529\n1593285347.58358287811,-,0.68038940429,28.25,0.08237202962,-913,5278,5842\n1593285349.11309337615,-,0.734375,28.25,0.08051554361,-677,4908,6672\n1593285349.55758190155,-,0.14196777343,28.25,0.08287429809,-188,5605,5494\n1593285349.77837657928,-,0.09814453125,28.25,0.07405344645,-526,5071,6381\n1593285349.93651866912,-,0.07424926757,28.25,0.07080157597,-216,5056,6867\n1593285350.08541393280,-,0.08676147460,28.25,0.07410049438,189,4421,7907;\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedankenstuecke%2Fone-button-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedankenstuecke%2Fone-button-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedankenstuecke%2Fone-button-tracker/lists"}