22 Commits

Author SHA1 Message Date
Michael Stapelberg 9c06b898c1 status: display running EEPROM bootloader build-timestamp
This is more user-friendly compared to the raw SHA256 checksums.
Those can still be obtained by querying the status via JSON.

fixes https://github.com/gokrazy/gokrazy/issues/343
2025-11-20 08:13:35 +01:00
Michael Stapelberg 63b2aa82de fix displaying firmware EEPROM version on Pi 5
The Pi 5 firmware does not rename recovery.bin anymore,
so the check we did to figure out if the updated succeeded
only works on the Pi 4.

related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:05:06 +01:00
Michael Stapelberg baeae7659a web interface: label the two SHA256 EEPROM checksums 2025-11-16 08:55:08 +01:00
oliverpool e39b02bec1 web interface: add power management buttons (#331) 2025-09-16 22:07:52 +02:00
Michael Stapelberg e01459ea62 only stream stdout+stderr when the tab is visible
related to https://github.com/gokrazy/gokrazy/issues/305
2025-04-13 22:06:49 +02:00
Michael Stapelberg 3676e79fb6 stream stdout and stderr over the same connection
related to https://github.com/gokrazy/gokrazy/issues/305
2025-04-13 19:20:26 +02:00
Michael Stapelberg 181586678f move status JavaScript into its own file 2025-04-13 18:39:17 +02:00
Michael Stapelberg 29f3a3f118 Revert "status: properly clean up EventSource connections"
This reverts commit c7823aff1a.

This “fix” introduced a new problem: when navigating in the
back/forward cache, the EventSource connection would not resume.
2025-03-07 16:52:31 +01:00
Michael Stapelberg 9285793115 /status: do not link the service name
related to https://github.com/gokrazy/gokrazy/issues/295
2025-02-04 18:50:25 +01:00
Michael Stapelberg c7823aff1a status: properly clean up EventSource connections
This should fix occasional hangs when navigating between pages.

I did not expect this behavior from browsers. I would have expected
all pending requests of a page to be terminated when the user
navigates to a different page. Instead, one needs to explicitly
close() EventSource connections.
2024-12-22 17:14:40 +01:00
Michael Stapelberg 527e712756 display extra mount devices under “storage” section
related to https://github.com/gokrazy/gokrazy/issues/236
2024-07-19 18:28:45 +02:00
Christian Kugler a6db98edf5 Change how status is displayed (#207)
Currently the status is appended to the service status link and no label
is displayed if the service is running. The status stopped is displayed
with a warning color (yellow). To me this feels uneven and a bit chaotic
which makes it harder to get a good overview and find a service.

This does three things to improve the overview:
- Add a separate column for status label. This takes a bit of width away
  from the last log line.
- Color the stopped label less aggressive (gray/default instead of
  yellow/warning).
- Add a green label for running service.

Potential improvements for the future could be to show if a service is
enabled/supervised or adding actions like start/stop/restart/enable.
2023-07-23 16:55:37 +02:00
oliverpool 2a8ba55e96 dashboard: speed up log line truncation logic (#181) 2023-03-15 17:15:51 +01:00
oliverpool 7301b565b0 dashboard: show latest stdout and stderr lines (#182) 2023-03-14 18:09:01 +01:00
oliverpool 46e37e95ce dashboard: add link to raw logs (#180) 2023-03-13 08:26:49 +01:00
Michael Stapelberg 73892ad238 display SBOM hash in the top right web interface header
related to https://github.com/gokrazy/gokrazy/issues/167
2023-02-19 15:26:20 +01:00
Michael Stapelberg 0bcf6191bd status: allow running once or in a loop
fixes https://github.com/gokrazy/gokrazy/issues/117
2022-03-21 23:45:40 +01:00
Christian Heusel ff09e855be clean up header and add logo 2022-03-06 15:58:17 +01:00
Christian Heusel 6e3e6ed39f clean up status table 2022-03-06 15:58:17 +01:00
Anup Chenthamarakshan af5773f40f status: live tail logs (#100)
Create a /log endpoint for streaming stdout/stderr logs for processes.
Replace status page stdout/stderr to call into /log to stream logs and
live update page.
2021-12-13 09:17:44 +01:00
Michael Stapelberg b07a22daa4 add /divert handler
This diverts existing services to their temporary counterparts, uploaded via the
/uploadtemp handler.

related to https://github.com/gokrazy/gokrazy/issues/88
2021-11-21 16:46:18 +01:00
Michael Stapelberg fefd4180bb use go:embed directive instead of goembed.go for bundling assets 2021-06-24 17:54:43 +02:00