Skip to content

About

Login-free web app showing your weekly HelloFresh box as tappable recipes — for phone home screens & Apple HomeView recipe mode

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

This Week's Dinners 🍽️

A tiny, login-free web app that shows the meals in your current HelloFresh box as big, tappable cards — built to live on a phone home screen or a pinned kitchen display (it works beautifully with Apple HomeView's "Show Recipe" mode).

Tap a meal and the full recipe — photo, ingredients, and step-by-step instructions — renders inside the app on your own domain. Because it never links out to hellofresh.com, iOS won't hijack the tap to launch the HelloFresh app, and the page carries schema.org/Recipe JSON-LD so HomeView (and Google, and other recipe readers) light up their cooking mode.

HelloFresh-green, mobile-first, no login, no tracking.


Why this exists

HelloFresh auto-selects ("chef's choice") your box each week. We wanted a zero-friction way for the whole household to see what's for dinner and open the recipe on a kitchen screen — without logging in, digging through email, or fighting the app. So this pulls the box straight from the HelloFresh account (via Home Assistant) and renders a clean weekly menu.

How it works

HelloFresh account
      │  (pantherale0/ha-hellofresh integration, + a small patch — see below)
      ▼
Home Assistant  ──  hellofresh.get_boxes / hellofresh.get_recipe  (service calls)
      │  (HTTP, server-side, token never leaves the server)
      ▼
This app  ──  renders the weekly menu + per-recipe pages with Recipe JSON-LD
      ▼
Phone home screen (PWA)  ·  Pinned kitchen display  ·  Apple HomeView
  • Standard-library Python only (plus tzdata) — one small app.py, no web framework. Tiny image, fast cold start.
  • The Home Assistant long-lived token stays server-side; the browser only ever sees recipe names, photos, and links. That's why it's safe to run without a login.
  • Menus are cached per week (default 3h), with graceful "no box this week" and "kitchen offline" states, and it serves a stale menu if HA is briefly unreachable.

Features

  • 📷 Recipe photos (served from HelloFresh's image CDN, auto-resized)
  • 🧑‍🍳 In-app recipe pages — ingredients + numbered steps, no app hijack
  • 🗓️ Week switcher (this week, previous weeks, next week)
  • 📺 schema.org/Recipe JSON-LD → Apple HomeView "Show Recipe" / cooking mode
  • 📱 Installable PWA (home-screen icon, standalone, theme color)
  • 🔁 Optional auto-refresh for an always-on kitchen display
  • 🎨 HelloFresh-green, responsive (single column on phones, two columns on big screens)

Requirements

  1. A HelloFresh account.
  2. Home Assistant with the community integration pantherale0/ha-hellofresh, signed in to your account.
  3. A small patch to that integration to expose a hellofresh.get_boxes service — see docs/integration-patch.md. (The stock selected_meals sensor is empty for not-yet-delivered auto-preset boxes; get_boxes reads the real box.)
  4. A Home Assistant long-lived access token (Profile → Security → Long-lived access tokens).

Quick start

git clone https://github.com/<you>/hellofresh-homeview.git
cd hellofresh-homeview
cp .env.example .env
#   edit .env: set HA_BASE_URL, HA_TOKEN, and (optional) DELIVERY_CALENDAR_ENTITY
docker compose up -d --build

Open http://<your-server>:8086. On iPhone: Share → Add to Home Screen.

Expose it (optional)

Any reverse proxy works. With a Cloudflare Tunnel, add a public hostname (e.g. recipes.example.com) pointing at http://<your-server>:8086 and you get a clean HTTPS URL that works anywhere.

Configuration

All config is via environment variables (see .env.example):

Variable Default Description
HA_BASE_URL http://homeassistant.local:8123 Home Assistant base URL
HA_TOKEN — HA long-lived access token (required)
BOX_OFFSET 0 Default week to show (0 = current box, 1 = next)
DELIVERY_CALENDAR_ENTITY (empty) HA calendar entity for the delivery date; blank hides the date
SERVINGS 2 Household serving size (ingredient amounts + JSON-LD yield)
DELIVERY_ISO_WEEKDAY 7 Delivery weekday (Mon=1…Sun=7)
CACHE_TTL 10800 Menu cache lifetime (seconds)
AUTO_REFRESH_SECS 3600 Auto-reload the list view on a pinned display; 0 = off
APP_TITLE This Week's Dinners Header title
TZ America/New_York Timezone for dates/timestamps

Endpoints

Path What
/ Weekly menu (supports ?offset=N, ?refresh=1)
/recipe?id=<id>&offset=N In-app recipe page (with Recipe JSON-LD)
/api/box?offset=N JSON of the box (for your own integrations)
/healthz Health check

Disclaimer

This is an unofficial personal-use tool. It is not affiliated with, endorsed by, or connected to HelloFresh or Apple. It only accesses your own HelloFresh account data, through your own Home Assistant. All recipe content, images, and trademarks belong to HelloFresh; don't use this to republish their content publicly. Provided as-is.

Credits

License

MIT © Rich Marchetti

About

Login-free web app showing your weekly HelloFresh box as tappable recipes — for phone home screens & Apple HomeView recipe mode

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages