- Dashboard (settingsync.py): the plugins' settings go into a synced
settings.db, one row per setting (the row id is the setting's key, so the
phone and the dashboard edit the same row; the later change wins) plus each
field as the plugin declares it. Fields marked "local" (addresses, paths on
one machine) and the plugins' on / off stay out. Values set on another
device are checked as the Settings page does before they're saved; a
refused one is written back with the dashboard's value.
- App 1.1.7: a Settings page (the gear on every tab) built from those fields,
synced both ways. Food targets, the cycle, the work day and the body profile
read the synced values; with a dashboard that doesn't sync settings yet,
they still come from its Health summaries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- "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>
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>
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>
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>
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>
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>
- 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>
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>