Myfitnesspal Desktop Notifications

I use myfitnesspal to track everything I eat and drink. Sometimes though, with work, and a busy life, I forget to track my food. I really wanted a notification to help remind me, so I created one. Here’s how.

notification

I simply created a script to run with a cronjob. Just download an image and update accordingly.

#!/bin/bash

export DISPLAY=:0.0
/usr/bin/notify-send -i /home/[username]/myfitnesspal.png "Don't forget to log your food!"

Then I simply have a cronjob run the notification every 4 hours or so.

0 11,14,18,20,22 * * * /home/[username]/reminder.sh

Leave a Reply

Your email address will not be published. Required fields are marked *