No description
Find a file
bashynx 4193de4262 Food, sync and warmer updates from 2026-10-26
- Food: "All products" lists what's here first (My foods, the food database, kept
  products), then Open Food Facts; the start of a barcode (4+ digits) finds the
  products starting with it (dashboard, app, server search).
- Food: My foods barcodes; entries follow edits of their food or meal, and meals
  made with a changed food are worked out again (nested meals too); a save that
  changes nothing isn't written.
- Food: the week strip shows protein / carbs / fat per day, over-target calories
  in red; the header's arrows go by week, days swap in place with prefetch on
  hover; the app's arrows go by week, a sideways swipe by day.
- Food search: stomach / žalúdok / pipotă find gizzards, kurací / pui chicken,
  morčací / curcan turkey.
- Sync: tables a plugin makes after start-up are prepared at the next sync and
  their file read from the start once.
- Warmers build pages as each admin account and wait while someone is using
  the dashboard; slow page builds are logged.
- Stations: impossible sensor readings are dropped; chart ticks never fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:45:32 +02:00
app Food, sync and warmer updates from 2026-10-26 2026-10-26 15:45:32 +02:00
dashboard Food, sync and warmer updates from 2026-10-26 2026-10-26 15:45:32 +02:00
docs dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
server Food, sync and warmer updates from 2026-10-26 2026-10-26 15:45:32 +02:00
tests dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
tools dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
.gitignore dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
LICENSE dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
NOTICE.md dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
README.md dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00
SECURITY.md dashPi: a self-hosted home dashboard, its sync server and phone app 2026-10-24 09:56:19 +02:00

dashPi

A self-hosted home dashboard that runs on a Raspberry Pi with a small 3.5" touch screen and serves the same information as responsive web pages for a wall TV, a laptop or a phone. A companion Android app works offline and syncs with it through a small server you host yourself. The sync is end-to-end encrypted, so the server can't read your data.

Home on a TV: clock, weather, room sensors, the day and what's coming up

Status — please read. This is a hobby project, built mostly with an AI coding assistant (Claude Code), and the code has not been reviewed line by line by a human. It runs daily on one household's Pi and has the tests and checks in docs/testing.md (clean installs on Debian 12 and 13, an end-to-end sync against a fresh server). Still, treat it as you would any unreviewed code: keep the dashboard on your home network, read SECURITY.md, and look at what you run. Reviews and issues are very welcome.

What it does

On the dashboard:

  • Clock, weather (Open-Meteo, no key) and a 14-day forecast.
  • Your calendars: ICS feeds (Google, Outlook, holidays), Nextcloud / CalDAV, and the dashboard's own Local calendar.
  • Room sensors: Home Assistant, MQTT, any JSON URL (ESPHome, Tasmota…) or a DS18B20 on the Pi, with graphs.

Optional plugins:

  • Health: body measurements, and sleep, heart rate and workouts from a Gadgetbridge band.
  • Food diary, with a bundled food database.
  • Cycle tracker.
  • Time tracking per customer and project.
  • Notes.
  • Computer activity from ActivityWatch.

In the app: the same health, food, cycle, work and notes data offline, plus weather and the band relay.

The week view The weather page
Week: calendar events in a week or month view Weather: 48 hours, 14 days, air quality, more places
Health overview Sleep
Health: steps, BMI, sleep, workouts, cycle, food at a glance Sleep: stages per night, regularity, what stands out
Food diary Room sensors
Food: a diary from the food database, targets, nutrients Stations: each sensor's history, 24 hours to a year
Time tracking Computer activity
Work: drag to book time, billable or not, a report Activity: your computers' time, sorted into categories
Notes Settings
Notes: Markdown, folders, tags, checklists Settings: everything is set up in the browser

The 3.5" screen on the Pi (Home, sensors, weather, calendar):

Home Sensors Weather Calendar

The phone app (Health, Food, Work, Notes, Weather):

The pictures come from a demo with made-up data: docs/screenshots/make.py builds it and takes the dashboard's, docs/screenshots/app.py the app's on an emulator.

The parts

Folder What Runs on
dashboard/ The dashboard: Python, Pillow straight to the framebuffer, Flask web pages, plugins Raspberry Pi, or any Linux machine (web pages only)
server/ The sync mailbox: PHP + SQLite, stores only encrypted batches Any web host with PHP 8.1+ and HTTPS
app/ The phone app: Flutter, Android Your phone

You don't need all three: the dashboard works on its own. The server and app are only for syncing with a phone, or between dashboards.

Set up

  1. Dashboard (dashboard/, docs/dashboard.md): sudo ./dashboard/install.sh on the Pi, then open http://<pi>:8080/settings.
  2. Sync server (optional; server/, docs/server.md): copy server/ to your host and run bin/setup-server.sh <host> <account>. Paste the token it prints into the dashboard's Settings ▸ General ▸ Sync.
  3. Phone app (optional; app/, docs/app.md): build it, then scan the QR code from the dashboard's Settings ▸ General ▸ Devices.

After installing, everything is set from the dashboard's Settings page: users, sync and devices, web access, the screen, sensors, calendars, backup and restore.

How it fits together: docs/architecture.md. The sync protocol: server/PROTOCOL.md.

Security in one paragraph

The dashboard is made for a home network. It serves plain HTTP and only answers to its own names and IP addresses (against DNS rebinding). Until you create the admin account, everyone on the network is admin; creating it needs a setup code from the service log. Without a login, visitors get a read-only "household" view whose content you choose. Members are logins that can see only some sections, but they share the owner's data in those sections; they are not separate accounts. Read SECURITY.md before exposing anything beyond your LAN.

License

AGPL-3.0. The bundled food database includes data from USDA FoodData Central (public domain) and Open Food Facts (ODbL); see NOTICE.md.