Commit graph

10 commits

Author SHA1 Message Date
98b110dd56 Food: the header's arrows go by week; days switch in place
- Dashboard: the arrows (and the left / right keys) move a week, the week
  strip picks the day. Switching fetches the page and swaps in its header and
  diary instead of loading everything again (back / forward work); a day is
  fetched ahead while the pointer rests on it.
- App: the arrows move a week, swiping sideways moves a day (1.1.6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:41:23 +02:00
eeca189b7f Food: all products, barcode prefixes, meals that follow their ingredients
- "All products" lists what's here first (My foods, kept products, the food
  database), then Open Food Facts; if the archive can't be reached, what's
  here is still shown. A My food picked there is used as it is.
- The start of a barcode (4+ digits) finds the products whose barcode starts
  with it: in the search box, in all products and in the server's search
  (an index range, so it stays fast).
- A meal made with a changed food is worked out again, and so are meals made
  with that meal and their logged entries (db.follow_meals, app _followMeals).
- Saving a food that didn't change writes nothing, so nothing is synced again.
- Food search knows a few words in other languages: stomach / žalúdok /
  pipotă find gizzards, kurací / pui chicken, morčací / curcan turkey.
- App 1.1.5 changelog entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:41:23 +02:00
d9460a2293 Warmers wait while the dashboard is in use
On the Pi a page built in the background at the same time as a visit made
the visit several times slower (one Python process). Every real request now
holds the warmers off until it has been quiet for 3 s (pluginhost.visited /
wait_quiet).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:41:23 +02:00
ce8d9ffbb1 Sync: prepare tables a plugin creates after start-up
Synced tables get their sync columns and triggers at start-up. A table a
plugin created later (on first use) had none, and every sync failed with
"no such column: _dev". Each sync now prepares such tables first
(syncdb.unprepared) and reads their file from the start once, since the
batches carrying their rows were passed by.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:41:23 +02:00
6b657f6767 App 1.1.4 (build 7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:25:11 +02:00
2869a208f1 Food: week strip shows protein / carbs / fat; over-target days in red
Each day's bar is stacked by the share of the energy from protein, carbs and
fat (as in the History chart); hovering shows the calories and grams. A day
more than 5 % over its target shows its calories in bold red. Dashboard and
app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:24:00 +02:00
c54f66c3c2 Warmers build pages as each admin account; log slow page builds
The background warmers fetched pages as an anonymous admin, while a logged-in
admin's pages are cached under their own account, so no warmed page was ever
served: every visit after a change waited for its page to be built. The
warmers now build the pages as each admin account (auth.warm_viewers, passed
as a WSGI key a request can't set). Page builds slower than 1.5 s are logged,
marked visit or warm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:24:00 +02:00
105698082b Stations: drop impossible sensor readings; chart ticks always fit
A sensor once reported 21948 °C / 0 % for 20 minutes, and every chart range
covering it failed with a server error because no tick step fit. A reading
outside -50..70 °C is now dropped together with its humidity, humidity
outside 0-100 % on its own (sensors.plausible), and the chart's tick step
falls back to a power of ten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:08:32 +02:00
ad4b6aa22f Food: logged entries follow their food; barcodes for My foods
- Saving one of My foods or a meal works every entry logged from it out again
  for that entry's grams, on any day. Only the entries that change are
  written, so the rest aren't synced again (db._follow, app _follow).
- My foods can have a barcode (8-14 digits, one food per barcode). A scanned
  or typed barcode finds My foods first (leading zeros ignored), then the food
  database and kept products; when nothing matches, "New food with barcode"
  opens the food editor with it filled in.
- App 1.1.3 and 1.1.4 changelog entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:08:32 +02:00
fb3c01cdd7 dashPi: a self-hosted home dashboard, its sync server and phone app
The dashboard (Raspberry Pi 3.5" screen + web pages), the end-to-end
encrypted sync mailbox (PHP + SQLite) and the Android companion app
(Flutter), with docs, clean-install checks and screenshots made from
demo data.

Built mostly with an AI coding assistant; not yet reviewed line by line
by a human (see README and SECURITY.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:56:19 +02:00