Vibrate your fitness band when you're distracted on social media.
- 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.
- Rescuetime extension installed in browser
- Pushover app on your smartphone.
-
Fork and clone the repo
git clone https://github.com/yourgithubusername/focusback
-
Create a heroku app.
heroku create appname
-
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
git push heroku master
-
On IFTTT, create a new applet.
- On
THIS
, selectdatetime
> 'Every Hour' - On
THAT
, selectWebhooks
>Make a web request
- Set
URL
to your heroku app URL - Set
METHOD
toGET
- Hit
Create Action
- On
This project is licensed under the MIT License - see the LICENSE file for details