focusback
Vibrate your fitness band when you're distracted on social media.
How it works
- The script fetches your social media usage time from Rescuetime API.
- If the social media usage exceeds a limit, a notification is sent to the smartphone via Pushover.
- Notifications for pushover are turned on through official app of fitness tracker.
- The process check every 15 mins from the time you're distracted first and repeats 1-2-3.
Dependencies
- Rescuetime extension installed in browser
- Pushover app on your smartphone.
Installation
-
Fork and clone the repo
git clone https://github.com/yourgithubusername/focusback -
Create a heroku app.
-
Set environment variable with your pushover and rescuetime API key.
heroku config:set PUSHOVER_TOKEN='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' heroku config:set RESCUETIME_TOKEN='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -
Push the app
-
On IFTTT, create a new applet.
- On
THIS, selectdatetime> 'Every Hour' - On
THAT, selectWebhooks>Make a web request - Set
URLto your heroku app URL - Set
METHODtoGET - Hit
Create Action
- On
License
This project is licensed under the MIT License - see the LICENSE file for details
