<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Calendar on fullast.nu</title><link>https://blog.fullast.nu/tags/calendar/</link><description>Recent content in Calendar on fullast.nu</description><generator>Hugo</generator><language>en</language><copyright>Text and images CC BY-SA 4.0, code snippets MIT - credit blog.fullast.nu</copyright><atom:link href="https://blog.fullast.nu/tags/calendar/index.xml" rel="self" type="application/rss+xml"/><item><title>A family startpage that knows when to run the dishwasher</title><link>https://blog.fullast.nu/posts/2026-11-26-a-family-startpage-that-knows-when-to-run-the-dishwasher/</link><pubDate>Thu, 26 Nov 2026 15:00:00 +0100</pubDate><guid>https://blog.fullast.nu/posts/2026-11-26-a-family-startpage-that-knows-when-to-run-the-dishwasher/</guid><description>The page on the kitchen tablet and both phones: one yellow line for anything that needs attention, the next three departures, electricity prices with a planner that starts the washer in the cheapest hours, and a morning push that reads the page for us. Later it grew a shared calendar with reminders, a small assistant and a restaurant list that knows what is nearby. Built with Glance, a small Python sidecar and Home Assistant, in English with Swedish hints.</description><category>HomeAssistant</category><category>Glance</category><category>startpage</category><category>electricity</category><category>python</category><category>self-hosting</category><category>automation</category><category>calendar</category><category>web-push</category><category domain="lemmy">selfhosted@lemmy.world</category><content:encoded>&lt;p&gt;We have an admin page for the homelab and nobody at home ever opens it. This is about the other one: the page that&#10;lives on a tablet in the kitchen and on both phones&amp;rsquo; home screens, for two people, one of whom is learning Swedish.&#10;It is not a dashboard. It answers &amp;ldquo;what do I need to know right now?&amp;rdquo; and then gets out of the way. I&amp;rsquo;ll call it&#10;&lt;code&gt;home.example.net&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="Mock-up of the startpage with dummy content: buttons for the calendar and the assistant, two yellow attention lines, a Today tile with the Swedish word of the day, upcoming events, tram, bus and boat departures, a photo, the shopping list and dinner" loading="lazy" src="https://blog.fullast.nu/images/family-startpage-mock.png"&gt;&lt;/p&gt;&#10;&lt;h2 id="the-shape-of-it"&gt;The shape of it&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/glanceapp/glance"&gt;Glance&lt;/a&gt; renders the page; it is a single YAML file. Everything Glance cannot&#10;do on its own comes from a small Python service next to it, which I&amp;rsquo;ll call &lt;em&gt;calfeed&lt;/em&gt;. It talks to Home Assistant,&#10;the transit API, the price API, a few RSS feeds and a couple of websites, and it serves tiny JSON endpoints and the&#10;odd iframe for Glance&amp;rsquo;s widgets to read. One Docker container each, plus a recipe manager and a photo library, all in&#10;a single Debian container on our &lt;a href="https://www.proxmox.com/"&gt;Proxmox&lt;/a&gt; server. Home Assistant runs elsewhere and is&#10;reached over its API, and the local language model runs in a virtual machine of its own with an old graphics card passed through to it.&lt;/p&gt;&#10;&lt;p class="logo-strip" aria-label="Software in this post"&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Glance" title="Glance" style="background-image:url('/images/icons/glance.svg')"&gt;&lt;/span&gt;Glance&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Home-Assistant" title="Home-Assistant" style="background-image:url('/images/icons/home-assistant.svg')"&gt;&lt;/span&gt;Home-Assistant&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Proxmox" title="Proxmox" style="background-image:url('/images/icons/proxmox.svg')"&gt;&lt;/span&gt;Proxmox&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Mealie" title="Mealie" style="background-image:url('/images/icons/mealie.svg')"&gt;&lt;/span&gt;Mealie&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Immich" title="Immich" style="background-image:url('/images/icons/immich.svg')"&gt;&lt;/span&gt;Immich&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Ntfy" title="Ntfy" style="background-image:url('/images/icons/ntfy.svg')"&gt;&lt;/span&gt;Ntfy&lt;/span&gt;&#10; &lt;span class="logo-strip-item"&gt;&lt;span class="logo" role="img" aria-label="Ollama" title="Ollama" style="background-image:url('/images/icons/ollama.svg')"&gt;&lt;/span&gt;Ollama&lt;/span&gt;&#10;&lt;/p&gt;&#10;&#10;&lt;p&gt;Every label is in English with the Swedish word in small grey text beside it (&lt;code&gt;now · nu&lt;/code&gt;,&#10;&lt;code&gt;washer · tvättmaskin&lt;/code&gt;). Phones have no hover, so the hint is always visible rather than a tooltip. It costs some&#10;width and nobody has complained.&lt;/p&gt;&#10;&lt;p&gt;The tablet turned out to be a different device from the phones. It opens the page once with &lt;code&gt;?autorefresh=10&lt;/code&gt; and&#10;remembers that in &lt;code&gt;localStorage&lt;/code&gt;. From then on it reloads every ten minutes, but only while the page is visible&#10;and nobody has touched it for a minute, and only after a &lt;code&gt;HEAD /&lt;/code&gt; succeeds, so a Wi-Fi hiccup leaves the old page&#10;up instead of an error. The same flag swaps in a fullscreen web-app manifest, which turns &amp;ldquo;Add to Home screen&amp;rdquo; into&#10;a kiosk without browser chrome. Between 23:00 and 06:00 a black overlay at 60 % dims everything. Alerts stay&#10;readable through it.&lt;/p&gt;&#10;&lt;h2 id="what-needs-attention"&gt;What needs attention&lt;/h2&gt;&#10;&lt;p&gt;Above the columns there is a full-width strip that shows one yellow line per thing that needs attention, and&#10;nothing at all when nothing does. Most of the day it is empty, which is the point.&lt;/p&gt;&#10;&lt;p&gt;It is a Glance &lt;code&gt;custom-api&lt;/code&gt; widget reading &lt;code&gt;/alerts.json&lt;/code&gt;, and the sidecar orders the lines by how much they&#10;matter. Official weather warnings come first, yellow and up, and only when the warning&amp;rsquo;s polygon covers us. Then the&#10;kitchen: a fridge or freezer door open for two minutes, the hob or the oven on. Then &amp;ldquo;Washer done at 10:07, empty it&#10;and hang up the laundry&amp;rdquo;, which stays for two hours after the cycle. That line took a while to get right. The&#10;machine&amp;rsquo;s state stays &lt;em&gt;running&lt;/em&gt; until someone opens the door, and Home Assistant&amp;rsquo;s &lt;code&gt;last_changed&lt;/code&gt; resets on every&#10;integration reload, so the sidecar watches for the transition itself. Further down the order are appliances that&#10;are planned or running, today&amp;rsquo;s gym booking and calendar events that haven&amp;rsquo;t ended. Rain in the next twelve hours&#10;is there with its millimetres (&amp;ldquo;umbrella&amp;rdquo; from 1 mm), and last comes what&amp;rsquo;s on TV tonight from a short watch list.&lt;/p&gt;&#10;&lt;p&gt;A news ticker sits above the strip with six headlines from Swedish, Philippine, Thai and world outlets, cached for&#10;ten minutes. Public emergency alerts go first, in red. On the tablet a new one also plays a tone, and that is the&#10;only sound the page ever makes.&lt;/p&gt;&#10;&lt;p&gt;Below all that, the tram, bus and boat tiles show exactly three departures per direction. The realtime API only&#10;knows about the next hour, so late in the evening a column would go empty. The sidecar tops it up from the journey&#10;planner, stepping forward until the line runs again, and dims those rows as &amp;ldquo;timetable&amp;rdquo;. Disruptions on our lines&#10;get a tile of their own, and the ones we have read can be hidden.&lt;/p&gt;&#10;&lt;h2 id="electricity-and-the-planner"&gt;Electricity, and the planner&lt;/h2&gt;&#10;&lt;p&gt;Prices come from the public spot-price API: 96 quarter-hour prices per day, with tomorrow&amp;rsquo;s published around&#10;13:00. The tile shows the price now and today&amp;rsquo;s bars with the current quarter outlined. Once tomorrow is in, there&#10;is a second tab to swipe to. The colours are relative to the day (the cheapest, middle and dearest third of&#10;today&amp;rsquo;s prices), because a fixed limit is either always red in winter or always green in summer. A day where&#10;everything is under 30 öre gets a green &amp;ldquo;very cheap all day, run anything&amp;rdquo; banner instead.&lt;/p&gt;&#10;&lt;p&gt;The part people actually use is the appliance planner. You load the dishwasher or the washer, choose the&#10;programme, and press the machine&amp;rsquo;s remote-control button last. Within a minute the sidecar sees the button through&#10;Home Assistant, reads the programme&amp;rsquo;s run length from the machine, and works out the start whose whole run has the&#10;lowest average price. Then it waits, and presses start over the API when the moment comes.&lt;/p&gt;&#10;&lt;p&gt;Most of its rules were learned the hard way. The run has to end within 24 hours of the button press, because the&#10;machines switch themselves off about 24 hours after it; a plan for 20:00 the next evening once evaporated together&#10;with the machine. The washer may never finish between 23:00 and 07:00 (10:00 at weekends), so nobody hangs laundry&#10;at midnight. The dishwasher opens and dries itself and has no such rule. A pending plan is checked again every&#10;minute and moves if newly published prices offer a cheaper slot, with a silent push to say so. The page shows the&#10;three cheapest options at least two hours apart, and a tap on one pins it. If the machine doesn&amp;rsquo;t report &lt;em&gt;running&lt;/em&gt;&#10;within three minutes of the start command, a loud push says &amp;ldquo;press start on the machine&amp;rdquo;. Opening the door after&#10;the button cancels remote control, and the plan with it.&lt;/p&gt;&#10;&lt;p&gt;For a long time the planner only knew about runs it had started itself. Start the dishwasher by hand and the page&#10;said nothing, which is not much help when you&amp;rsquo;re standing in the hall wondering whether it&amp;rsquo;s on. A run that starts&#10;without a plan now gets the same &amp;ldquo;running since 19:47, done about 22:39&amp;rdquo; line, with the end time read from the&#10;machine. When the integration has reloaded in between, the start time is when the page first noticed, so it can be&#10;late by a while. The end time is right, and that is the one anyone asks about.&lt;/p&gt;&#10;&lt;p&gt;The night the clocks went back, the planner moved the dishwasher&amp;rsquo;s 02:00 start every minute for nine minutes, and&#10;then started it fine. Timezone-aware datetimes in the repeated hour compare by wall time, so the stored start never&#10;equalled any candidate. All of the planner&amp;rsquo;s arithmetic is in epoch seconds now. The spring change will be the real&#10;test.&lt;/p&gt;&#10;&lt;p&gt;Under the price tile, an &amp;ldquo;energy today&amp;rdquo; tile prices each appliance&amp;rsquo;s consumption at the quarter it happened. The&#10;sidecar samples the cumulative kWh counters every fifteen minutes and multiplies each delta by that quarter&amp;rsquo;s&#10;price. The TV never fills its counter but reports small deltas, so it gets polled every minute instead.&lt;/p&gt;&#10;&lt;h2 id="the-rest-of-the-day"&gt;The rest of the day&lt;/h2&gt;&#10;&lt;p&gt;The building&amp;rsquo;s shared gym is booked through a web form from the 2000s with no API. A tiny sidecar logs in, walks&#10;the calendar and books a specific free slot; &amp;ldquo;book for two&amp;rdquo; is two bookings in the same hour. The page shows free&#10;hours for the coming days and a button. It took one test booking and one cancellation to learn that the site&amp;rsquo;s own&#10;&amp;ldquo;book&amp;rdquo; button fails when a script presses it, while picking a named place works.&lt;/p&gt;&#10;&lt;p&gt;One tile has tonight&amp;rsquo;s dinner from &lt;a href="https://mealie.io/"&gt;Mealie&lt;/a&gt;, the recipe manager we plan our meals in, and another&#10;a random photo from &lt;a href="https://immich.app/"&gt;Immich&lt;/a&gt;, which holds the family photos. Both run on the same box as the&#10;page, and both will get more in-depth posts of their own: Mealie for how recipes from links and photos end up in it,&#10;Immich for the albums that sort themselves. Next to the&#10;shopping list sits a small voice recorder that turns &amp;ldquo;we need milk and two tomatoes&amp;rdquo; into list items, entirely on&#10;the local machine. The Today tile carries the date and the name day, a Swedish word of the day and a fact about&#10;each of our two countries.&lt;/p&gt;&#10;&lt;p&gt;Between 07:00 and 08:00 on weekdays (09:00 at weekends) one notification arrives with everything the attention&#10;line would show, plus today&amp;rsquo;s price range and, when waiting is worth it, &amp;ldquo;best hour for the washer: 23:00 (44&#10;öre)&amp;rdquo;. It replaced three separate pushes that used to arrive within the same ten minutes. It ends with tomorrow&amp;rsquo;s&#10;calendar, one line per event. That used to be the first event and &amp;ldquo;+2 more&amp;rdquo;, which is exactly the kind of line you&#10;have to open the app to understand.&lt;/p&gt;&#10;&lt;h2 id="then-it-turned-into-an-app"&gt;Then it turned into an app&lt;/h2&gt;&#10;&lt;p&gt;A week after I thought the page was finished we wanted a shared calendar, and the reminders we had were a JSON file&#10;I edited by hand. So there is now a small CalDAV server (&lt;a href="https://radicale.org/"&gt;Radicale&lt;/a&gt;) with a calendar each and&#10;a shared one, and the sidecar got a calendar page: a month grid, a form, repeats, events over several days. Each&#10;phone is told once whose it is, and new events land in that person&amp;rsquo;s calendar unless you pick the shared one. The&#10;date fields have their own picker. Chrome on Android opens the system&amp;rsquo;s, which follows the phone&amp;rsquo;s language rather&#10;than the page and started our weeks on a Sunday.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="Two phone screens with dummy content: the calendar page with a countdown, a month grid with week numbers and coloured dots, and the day&amp;rsquo;s three events; next to it an Android notification shade with a reminder that carries a small bell and a calendar-page icon showing the date" loading="lazy" src="https://blog.fullast.nu/images/home-app-calendar-mock.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;Reminders arrive as Web Push from the page&amp;rsquo;s own service worker. At the time the rest of the household alerts&#10;went through a public notification service, and I didn&amp;rsquo;t want dentist appointments readable on someone else&amp;rsquo;s&#10;server; a Web Push payload is encrypted for the one browser it is meant for. A reminder can carry a note, too: a&#10;line in the event&amp;rsquo;s description that starts with a pin is shown under it in the reminder and in the morning push&#10;the day before, which is how the recycling truck&amp;rsquo;s visit now comes with a list of what it takes. Getting it onto two phones took three tries. The first test reached my phone and not the other one. A few minutes later the&#10;push service answered &amp;ldquo;410 Gone&amp;rdquo; for that phone, and the server dropped the subscription, as it should. The&#10;browser still had its own copy, so the page went on saying &amp;ldquo;Reminders on&amp;rdquo; and never registered again. Now the page&#10;asks the server every time it opens. The next attempt registered and unregistered two seconds apart: after a&#10;successful tap, the &amp;ldquo;turn off&amp;rdquo; button appeared exactly where &amp;ldquo;Enable&amp;rdquo; had been, and a double tap pressed both. It&#10;asks first now. And the notification&amp;rsquo;s small status-bar icon came out as a white square, because Android uses only&#10;the transparency of that image and ours was a solid tile. It is a bell now, and the large icon is a little calendar&#10;page showing the event&amp;rsquo;s date.&lt;/p&gt;&#10;&lt;p&gt;The last addition is an assistant: a chat page with a microphone. Most of it is deliberately not a language model.&#10;Adding to the calendar or the shopping list needs a verb like &amp;ldquo;add&amp;rdquo; or &amp;ldquo;buy&amp;rdquo;, and produces a card that writes&#10;nothing until someone taps it. Questions about the house (&amp;ldquo;when is the next tram&amp;rdquo;, &amp;ldquo;what does electricity cost&#10;now&amp;rdquo;) are answered by a small local model, a 7B one, from the same data the page shows. I had let that model work&#10;out dates at first, and &amp;ldquo;on Thursday&amp;rdquo; became a Monday, so dates, times and repeats are parsed in plain code now and&#10;the model only picks out the title. It also translated the titles until it was told to quote them. Then I asked&#10;which tram I needed to be at a metro station in town by four. It gave me the next tram, hours too early, and a&#10;guess for the metro. Trip questions now go to the regional journey planner, asking for arrival by a time, and the&#10;reply is assembled in code. General questions, the kind you would otherwise type into a search box, go out to a&#10;hosted model&amp;rsquo;s API (the smallest one; a question costs a fraction of a cent) with today&amp;rsquo;s calendar and the shopping&#10;list as context and nothing else from the house.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="Two phone screens of the assistant with dummy content: a tram question answered from the page&amp;rsquo;s data, a trip planned to arrive by nine, a cooking question answered by the hosted model; and on the second screen a calendar card that has been confirmed, a shopping-list card waiting for a tap, and the electricity price" loading="lazy" src="https://blog.fullast.nu/images/home-app-assistant-mock.png"&gt;&lt;/p&gt;&#10;&lt;h2 id="where-to-eat"&gt;Where to eat&lt;/h2&gt;&#10;&lt;p&gt;The newest page is a restaurant list. It started as a question about whether the page could tell us which of the&#10;places we had heard about were near us right now. A script collects places from two local food guides, a handful of&#10;food accounts we follow, and any link one of us sends it. A small model reads each post or guide entry and pulls out&#10;the name, the street, the kind of food and a line about why it was recommended, and OpenStreetMap&amp;rsquo;s geocoder turns&#10;the street into coordinates, one request a second as its rules ask. It&amp;rsquo;s a couple of thousand places now.&lt;/p&gt;&#10;&lt;p&gt;The Nearby button asks the phone for its position and works out the distances in the browser. The position never&#10;leaves the phone, which also meant there was nothing to build on the server for it. There is a map, filters for the&#10;kinds of food we actually eat, and three marks per place: want to go, been, and a thumb. A Book button asks for a&#10;day, a time and whose calendar, and puts the visit there, next to the reminders. The startpage shows&#10;one place we marked as want-to-go and one that just opened, and the assistant answers &amp;ldquo;somewhere Thai near here?&amp;rdquo;&#10;from the same list.&lt;/p&gt;&#10;&lt;h2 id="our-own-notification-server"&gt;Our own notification server&lt;/h2&gt;&#10;&lt;p&gt;The calendar was the first private thing in our notifications, and it didn&amp;rsquo;t stay the only one. Once both phones ran&#10;an always-on VPN, there was no reason to send household messages through a public service where anyone who knows a&#10;channel name can read along, so both channels moved to our own &lt;a href="https://ntfy.sh/"&gt;ntfy&lt;/a&gt; server. It only answers on&#10;the LAN and the VPN, and it wants a login to read.&lt;/p&gt;&#10;&lt;p&gt;That made the VPN matter more, so the page&amp;rsquo;s server now checks every few minutes that both phones are connected. A&#10;phone that dropped its VPN on our own Wi-Fi gets a push telling it how to switch it back on. Away from home there is&#10;no way to reach it, so after a full day offline it gets one SMS from our LTE modem, and never more than one&#10;a week, because those cost money. One of the phones has a battery saver that keeps switching the VPN off, and I&#10;haven&amp;rsquo;t found the setting that makes it stop for good.&lt;/p&gt;&#10;&lt;h2 id="what-keeps-it-running"&gt;What keeps it running&lt;/h2&gt;&#10;&lt;p&gt;The sidecar warms its caches at startup, because the first cold load of ten feeds made Glance give up. Every&#10;integration that can stall has a watchdog. The appliance cloud integration silently froze for twelve hours once;&#10;Home Assistant now reloads it when the fridge hasn&amp;rsquo;t reported for 75 minutes, and says so quietly.&lt;/p&gt;&#10;&lt;p&gt;Nothing on the page is reachable from the internet. It lives behind the house&amp;rsquo;s reverse proxy for the LAN and the&#10;VPN, and the phones use the VPN. One phone&amp;rsquo;s VPN profile can reach that proxy and the DNS server and nothing else,&#10;and the admin pages behind the same proxy refuse its address.&lt;/p&gt;&#10;&lt;p&gt;If I started over I would build the attention line and the three departures first, since those two earned the&#10;page its place on the tablet. The planner can wait until the price tile has been looked at for a week, because by&#10;then you know which hours matter. And I would keep the page boring at night.&lt;/p&gt;&#10;&lt;p&gt;A lot of this is only sketched here. The assistant will get a longer post of its own, mostly about how little of&#10;it is a language model, and so will the SMS path for when the house is offline. In December the app also has an advent calendar, one film behind each door, which&#10;gets its own post next week.&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Tools: Glance, Home Assistant, Python 3 (stdlib plus Pillow for the icons), Mealie, Immich, Radicale, Web Push&#10;(pywebpush), Ollama and Whisper for the local model and the microphone, Leaflet and OpenStreetMap for the map,&#10;Open-Meteo, the national weather and emergency alert feeds, the regional transit API and journey planner,&#10;elprisetjustnu.se&amp;rsquo;s price API, a self-hosted ntfy. The&#10;sidecar is specific to this household and not published; ask in the comments if you want more detail on a piece.&lt;/em&gt;&lt;/p&gt;&#10;</content:encoded></item></channel></rss>