code wiki / (root) / nx_iot_dashboard.nx

nx_iot_dashboard.nx

buildroot/runtime/nx_iot_dashboard.nx

3561 B66 linesdepth 3pulls 4 transitivereach 7 importersview sourcekind tooltopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_dashboard.nx -- the sovereign Nishi-browser IoT DASHBOARD (killer-feature rung 1). Operator 2026-06-23 vision: devices stable + non-blinking + auto-connected + AVAILABLE even when the INTERNET is OUT (LAN up); managed entirely from the first-party Nishi browser; sharded per house. This page is the management surface: per device a STATUS line (on-LAN / available with internet down / last-seen) + the capability controls -- so you SEE they're connected and can act, all local. Reuses the proven zero-JS nx_iot_control_page (cp_head/cp_foot/cp_widgets/cp_cat) so it works in any browser with no app, no cloud, no JavaScript. The hub feeds it live device records; this organ is the renderer (multi-tenant: one page per house). license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_iot_control_page.nx nx_iot_dashboard.nx nx_iot_dashboard_gate.nx nx_iot_hub_serve.nx nx_iot_hub_tenant.nx

imports: nx_iot_control_page.nx

imported by: nx_iot_dashboard_gate.nxnx_iot_hub_serve.nxnx_iot_hub_tenant.nx

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main db_render cp_head cp_cat db_card nx_iot_cap_for_class cp_cat ↻ db_badge cp_cat ↻ cp_catn sys_mmap cp_widgets nx_iot_cap_has cp_cmd_open cp_cat ↻ cp_cat ↻ cp_catn ↻ cp_foot cp_cat ↻ sys_openat_wr

structs

none

consts

12const DB_OUT: *u8 = "web_assets/iot_dashboard.html"
13const DB_CAP: i64 = 262144

functions

16func db_badge(h: *u8, off: i64, online: i64) -> i64
called by 1: db_card calls 1: cp_cat
25func db_card(h: *u8, off: i64, id: *u8, name: *u8, room: *u8, vlabel: *u8, ip: *u8,
47func db_render(h: *u8) -> i64
56func main() -> i64