Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Task Planner

A task planner with a FastAPI backend and a plain HTML/JS frontend. Lets you manage tasks and send custom messages (or automatic due-task reminders) to your phone via a Telegram bot.

Setup

  1. Create a Telegram bot:

    • Message @BotFather on Telegram, send /newbot, and follow the prompts. Copy the bot token it gives you.
    • Send any message to your new bot, then visit https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates in a browser to find your chat.id in the JSON response.
  2. Configure environment:

    cp .env.example .env
    # edit .env and fill in TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID
  3. Install dependencies (Python 3.10+):

    python -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
  4. Run the server:

    cd backend
    uvicorn main:app --reload
  5. Open http://127.0.0.1:8000 in your browser.

Installing on your Android phone (PWA)

The frontend is an installable Progressive Web App (manifest + service worker + icons), so it shows up as a real app icon on your home screen and runs full-screen.

Chrome only allows installing a PWA over HTTPS (or localhost) — a plain http://<lan-ip>:8000 URL won't offer the install prompt. The easiest way to get an HTTPS URL for your phone to hit while the server runs on your computer is a tunnel:

# from the backend/ folder, with the server already running via uvicorn
cloudflared tunnel --url http://127.0.0.1:8000
# or: ngrok http 8000

Then, on your phone:

  1. Open the https://... tunnel URL in Chrome.
  2. Tap the menu (⋮) → Add to Home screen / Install app.
  3. Launch it from the home screen icon — it runs standalone, no browser chrome.

The backend still has to be running on your computer for the app to load and sync tasks; the tunnel just exposes it to your phone over HTTPS.

Features

  • Create, edit, complete, and delete tasks with title, description, due date, priority, and tags.
  • Filter the task list by tag, priority, and status (open/done/all).
  • Send an arbitrary custom message to your phone instantly from the UI.
  • Background scheduler checks every REMINDER_CHECK_INTERVAL_SECONDS (default 60s) for tasks past their due date and reminds you on Telegram — once, or repeatedly every reminder_interval_minutes until the task is marked done.
  • Recurring tasks (daily / weekly / monthly): marking one done rolls its due date forward to the next occurrence instead of staying completed.
  • Reply done <task id> to any reminder on Telegram to mark that task complete from your phone, without opening the app. The reminder text includes the id.

Project layout

backend/    FastAPI app, SQLite models, Telegram sender/poller, reminder scheduler
frontend/   Static HTML/CSS/JS UI (served by the backend at /)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages