{"id":18510347,"url":"https://github.com/amitness/focusback","last_synced_at":"2025-04-09T04:33:10.462Z","repository":{"id":50212392,"uuid":"105679505","full_name":"amitness/focusback","owner":"amitness","description":"Vibrate your fitness band when you're distracted on social media.","archived":false,"fork":false,"pushed_at":"2022-12-08T00:39:40.000Z","size":15,"stargazers_count":11,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:27:02.994Z","etag":null,"topics":["ifttt-maker","pushover-api","rescuetime"],"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/amitness.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}},"created_at":"2017-10-03T17:10:32.000Z","updated_at":"2024-07-02T07:44:13.000Z","dependencies_parsed_at":"2023-01-24T00:55:17.474Z","dependency_job_id":null,"html_url":"https://github.com/amitness/focusback","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/amitness%2Ffocusback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitness%2Ffocusback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitness%2Ffocusback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitness%2Ffocusback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitness","download_url":"https://codeload.github.com/amitness/focusback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980831,"owners_count":21027803,"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":["ifttt-maker","pushover-api","rescuetime"],"created_at":"2024-11-06T15:22:59.055Z","updated_at":"2025-04-09T04:33:10.184Z","avatar_url":"https://github.com/amitness.png","language":"Python","readme":"# focusback\nVibrate your fitness band when you're distracted on social media.\n\n![Focusback Illustration](https://i.imgur.com/ybEYq9i.png)\n\n## How it works  \n1. The script fetches your social media usage time from [Rescuetime](https://www.rescuetime.com) API.\n2. If the social media usage exceeds a limit, a notification is sent to the smartphone via [Pushover](http://pushover.net).\n3. Notifications for pushover are turned on through official app of fitness tracker.\n4. The process check every 15 mins from the time you're distracted first and repeats 1-2-3.\n\n## Dependencies\n- [Rescuetime](https://www.rescuetime.com) extension installed in browser\n- [Pushover](http://pushover.net) app on your smartphone.\n\n## Installation\n1. Fork and clone the repo\n    ```\n    git clone https://github.com/yourgithubusername/focusback\n    ```\n2. Create a heroku app.\n    ```\n    heroku create appname\n    ```\n3. Set environment variable with your pushover and rescuetime API key.\n    ```\n     heroku config:set PUSHOVER_TOKEN='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\n     heroku config:set RESCUETIME_TOKEN='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\n    ``` \n\n4. Push the app\n    ```\n    git push heroku master\n    ```\n \n5. On [IFTTT](http://ifttt.com/), create a [new applet](https://ifttt.com/create). \n    - On `THIS`, select `datetime` \u003e 'Every Hour'\n    - On `THAT`, select `Webhooks` \u003e `Make a web request`\n    - Set `URL` to your heroku app URL\n    - Set `METHOD` to `GET`\n    - Hit `Create Action`\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitness%2Ffocusback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitness%2Ffocusback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitness%2Ffocusback/lists"}