A lightweight Python script that fetches your pending tasks from Habitica and sends desktop notifications using notify-send
. 🚀
- 📋 Fetches your dailies and todos from Habitica
- 🔔 Sends notifications for pending tasks
- 🔒 Uses
.env
for storing API credentials securely
- Python 3.6+
- A Habitica account
notify-send
(available on most Linux distributions)env
andvenv
for virtual environments
git clone https://github.com/wmouton/habify.git
cd habify
Inside the project directory, run:
python -m venv env
Activate the virtual environment:
source env/bin/activate # For Linux/macOS
env\Scripts\activate # For Windows (PowerShell)
pip install -r requirements.txt
Create a .env
file in the project directory and add your Habitica credentials:
HABITICA_USER_ID=your_user_id_here
HABITICA_API_TOKEN=your_api_token_here
You can find your Habitica User ID and API Token under Settings → API.
Run the script to check for pending tasks and receive notifications:
python habify.py
By default, the script fetches dailies and todos. If you want to modify this behavior, update the get_pending_tasks()
function in habify.py
.
Contributions are welcome! To contribute:
- Fork the repo
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m "Add new feature"
) - Push to your branch (
git push origin feature-branch
) - Open a pull request
Habify is licensed under the GPL-3.0 License. See LICENSE for details.
If you find Habify useful, consider giving it a ⭐ on GitHub! 🚀
Let me know if you want any other additions! 🚀