Directories
¶
| Path | Synopsis |
|---|---|
|
Package api is the HTTP surface for FTW: control endpoints, telemetry queries, config get/set, battery-model introspection, self-tune orchestration, static file serving for the web UI.
|
Package api is the HTTP surface for FTW: control endpoints, telemetry queries, config get/set, battery-model introspection, self-tune orchestration, static file serving for the web UI. |
|
Package apiauth says who is asking the box's HTTP API for something.
|
Package apiauth says who is asking the box's HTTP API for something. |
|
Package appenroll owns the box's half of app enrollment: the long-lived keys behind the QR code on the lid, and the record of which phones have been let in.
|
Package appenroll owns the box's half of app enrollment: the long-lived keys behind the QR code on the lid, and the record of which phones have been let in. |
|
approvaltest
Package approvaltest signs approvals the way an owner phone's Secure Enclave key does, for tests of the box's side.
|
Package approvaltest signs approvals the way an owner phone's Secure Enclave key does, for tests of the box's side. |
|
Package appproto speaks the FTW web app's client protocol.
|
Package appproto speaks the FTW web app's client protocol. |
|
gencontract
Package gencontract turns contract/registry.yaml into Go constants.
|
Package gencontract turns contract/registry.yaml into Go constants. |
|
gencontract/cmd
command
Command gencontract writes the Go constants for contract/registry.yaml.
|
Command gencontract writes the Go constants for contract/registry.yaml. |
|
Package appuplink serves the encrypted app sessions FTW Cloud carries: a phone's stream through the tunnel and a watch's exchange.
|
Package appuplink serves the encrypted app sessions FTW Cloud carries: a phone's stream through the tunnel and a watch's exchange. |
|
Package arp resolves MAC addresses for IPv4 hosts on the local L2 segment.
|
Package arp resolves MAC addresses for IPv4 hosts on the local L2 segment. |
|
Package backup creates and restores complete, portable FTW backups.
|
Package backup creates and restores complete, portable FTW backups. |
|
Package battery is per-battery online learning (ARX(1) via RLS) plus the cascade controller glue (inner PI + inverse model + saturation curves).
|
Package battery is per-battery online learning (ARX(1) via RLS) plus the cascade controller glue (inner PI + inverse model + saturation curves). |
|
Package batteryreturn works out the figure a Swedish household reports to Skatteverket to get back the energy tax on electricity it bought from the grid, stored in a battery and fed back to the same grid (11 kap.
|
Package batteryreturn works out the figure a Swedish household reports to Skatteverket to get back the energy tax on electricity it bought from the grid, stored in a battery and fed back to the same grid (11 kap. |
|
Package cars keeps the cars of a box's owners apart from its chargers (docs/cars.md).
|
Package cars keeps the cars of a box's owners apart from its chargers (docs/cars.md). |
|
Package cloudlink is the box's one link to FTW Cloud.
|
Package cloudlink is the box's one link to FTW Cloud. |
|
Package components defines compatibility contracts for independently released FTW modules.
|
Package components defines compatibility contracts for independently released FTW modules. |
|
Package config parses and validates the top-level YAML config.
|
Package config parses and validates the top-level YAML config. |
|
Package configreload applies committed settings to the running system.
|
Package configreload applies committed settings to the running system. |
|
Package control is the site's closed-loop control system.
|
Package control is the site's closed-loop control system. |
|
Package coverage records where each external data source FTW talks to actually returns usable data.
|
Package coverage records where each external data source FTW talks to actually returns usable data. |
|
Package currency fetches daily FX reference rates from the European Central Bank and caches them in state for offline lookup.
|
Package currency fetches daily FX reference rates from the European Central Bank and caches them in state for offline lookup. |
|
Package devtools hosts developer-only utilities that ship inside the main FTW binary but stay dormant unless explicitly invoked (e.g.
|
Package devtools hosts developer-only utilities that ship inside the main FTW binary but stay dormant unless explicitly invoked (e.g. |
|
Package drivercontrol owns what is held on a driver: one bounded value at a time, sent and released under one per-driver lock, and handed back to the device's own default when it ends.
|
Package drivercontrol owns what is held on a driver: one bounded value at a time, sent and released under one per-driver lock, and handed back to the device's own default when it ends. |
|
Package driverinventory builds a bounded, secret-free snapshot of the Lua code that FTW has configured and loaded.
|
Package driverinventory builds a bounded, secret-free snapshot of the Lua code that FTW has configured and loaded. |
|
Package driverrepo installs signed, independently versioned Lua drivers.
|
Package driverrepo installs signed, independently versioned Lua drivers. |
|
Lua driver host.
|
Lua driver host. |
|
Package energyforecast adapts Core's observations and issued weather to the versioned Energyplan forecast worker.
|
Package energyforecast adapts Core's observations and issued weather to the versioned Energyplan forecast worker. |
|
Package energyreport sends one energy report a day, with no box id, straight to FTW Cloud.
|
Package energyreport sends one energy report a day, with no box id, straight to FTW Cloud. |
|
Package events is a tiny synchronous pub/sub bus used to decouple core loops (control tick, API handlers, watchdog) from cross-cutting subscribers (notifications, future webhooks, future audit log).
|
Package events is a tiny synchronous pub/sub bus used to decouple core loops (control tick, API handlers, watchdog) from cross-cutting subscribers (notifications, future webhooks, future audit log). |
|
Package fleetping adds anonymous reports to FTW's daily fleet totals without telling the relay which box sent which report.
|
Package fleetping adds anonymous reports to FTW's daily fleet totals without telling the relay which box sent which report. |
|
genshipped
Package genshipped turns drivers/BUNDLED_SOURCE.json into the driver names this build ships with.
|
Package genshipped turns drivers/BUNDLED_SOURCE.json into the driver names this build ships with. |
|
genshipped/cmd
command
Command genshipped writes the driver names drivers/BUNDLED_SOURCE.json pins.
|
Command genshipped writes the driver names drivers/BUNDLED_SOURCE.json pins. |
|
Package forecast fetches hourly weather + derives a PV production estimate for the next ~48 hours.
|
Package forecast fetches hourly weather + derives a PV production estimate for the next ~48 hours. |
|
Package forecasting defines portable forecast records and causal evaluation.
|
Package forecasting defines portable forecast records and causal evaluation. |
|
Package ftwcli is the ftw operator command for a native install.
|
Package ftwcli is the ftw operator command for a native install. |
|
Package gatewayidentity defines FTW's one gateway identity contract.
|
Package gatewayidentity defines FTW's one gateway identity contract. |
|
Package gridcost contains the shared import/export pricing model used by planner decisions, plan reporting, and historical savings calculations.
|
Package gridcost contains the shared import/export pricing model used by planner decisions, plan reporting, and historical savings calculations. |
|
Package gridstate tells whether the site is on the grid or islanded, from what its inverters report (#2125).
|
Package gridstate tells whether the site is on the grid or islanded, from what its inverters report (#2125). |
|
Package ha is the Home Assistant MQTT bridge: MQTT autodiscovery + periodic state publish + command subscriber for mode/target/peak/ev.
|
Package ha is the Home Assistant MQTT bridge: MQTT autodiscovery + periodic state publish + command subscriber for mode/target/peak/ev. |
|
Package heatplan proposes when a heated zone should take its heat.
|
Package heatplan proposes when a heated zone should take its heat. |
|
Package journal records how the box's answer to "Are we in control?" changes, so a warning can be explained after it has passed.
|
Package journal records how the box's answer to "Are we in control?" changes, so a warning can be explained after it has passed. |
|
Package loadmodel maintains the existing local household-load predictor.
|
Package loadmodel maintains the existing local household-load predictor. |
|
Package loadpoint models an EV charge point as a first-class entity the planner can reason about.
|
Package loadpoint models an EV charge point as a first-class entity the planner can reason about. |
|
Package localzone keeps the household's clock: the zone every wall-clock rule reads, and its name for clients.
|
Package localzone keeps the household's clock: the zone every wall-clock rule reads, and its name for clients. |
|
Package mdnsresolve resolves RFC 6762 ".local" host names for outbound connections, and provides a dialer that uses it.
|
Package mdnsresolve resolves RFC 6762 ".local" host names for outbound connections, and provides a dialer that uses it. |
|
Package modbus provides a Modbus TCP capability wrapper for drivers.
|
Package modbus provides a Modbus TCP capability wrapper for drivers. |
|
Package modelstate versions the learned-model state FTW keeps on disk.
|
Package modelstate versions the learned-model state FTW keeps on disk. |
|
Package mpc is a receding-horizon energy scheduler.
|
Package mpc is a receding-horizon energy scheduler. |
|
Package mqtt provides an MQTT capability wrapper for per-driver binding.
|
Package mqtt provides an MQTT capability wrapper for per-driver binding. |
|
Package notifications delivers operator-facing push notifications via a pluggable provider (ntfy today; future providers register via RegisterProvider).
|
Package notifications delivers operator-facing push notifications via a pluggable provider (ntfy today; future providers register via RegisterProvider). |
|
Package nova is the opt-in federation client that publishes FTW telemetry into Sourceful's Nova Core backend.
|
Package nova is the opt-in federation client that publishes FTW telemetry into Sourceful's Nova Core backend. |
|
Package ocpp is the OCPP Central System for FTW, speaking 1.6J and 2.0.1.
|
Package ocpp is the OCPP Central System for FTW, speaking 1.6J and 2.0.1. |
|
chargersocket
Package chargersocket is the WebSocket client every simulated or test charger in this module dials Core with.
|
Package chargersocket is the WebSocket client every simulated or test charger in this module dials Core with. |
|
Package onboarding keeps an unfinished setup on the box.
|
Package onboarding keeps an unfinished setup on the box. |
|
Package optimizercontract holds stable values shared by Core's configuration and optimizer wire protocol.
|
Package optimizercontract holds stable values shared by Core's configuration and optimizer wire protocol. |
|
Package prices fetches spot electricity prices from external providers and persists them to the state DB.
|
Package prices fetches spot electricity prices from external providers and persists them to the state DB. |
|
Package proxy implements an optional dev-mode reverse proxy for the HTTP handler.
|
Package proxy implements an optional dev-mode reverse proxy for the HTTP handler. |
|
Package pvmodel is a self-learning digital twin for a PV array.
|
Package pvmodel is a self-learning digital twin for a PV array. |
|
Package redact builds what an agent may read of the box's logs and configuration (docs/agents.md, Redaction on the box).
|
Package redact builds what an agent may read of the box's logs and configuration (docs/agents.md, Redaction on the box). |
|
Package savings reconstructs how much money the EMS optimizer saved on a given historical day, by re-pricing the measured grid flow with the same cost model the live MPC planner uses (mpc.SlotGridCostOre) and comparing it to a no-battery counter-factual.
|
Package savings reconstructs how much money the EMS optimizer saved on a given historical day, by re-pricing the measured grid flow with the same cost model the live MPC planner uses (mpc.SlotGridCostOre) and comparing it to a no-battery counter-factual. |
|
Package scanner discovers devices on the local network by TCP-dialing common energy-device ports (Modbus 502, MQTT 1883, HTTP 80, HTTPS 8443) across all /24 subnets attached to non-loopback, non-virtual interfaces.
|
Package scanner discovers devices on the local network by TCP-dialing common energy-device ports (Modbus 502, MQTT 1883, HTTP 80, HTTPS 8443) across all /24 subnets attached to non-loopback, non-virtual interfaces. |
|
Package selftune is the per-battery step-response calibration flow.
|
Package selftune is the per-battery step-response calibration flow. |
|
Package selfupdate resolves the stable and beta 0.x releases a native install can take, and stages a verified release package in its slots (ADR 0007).
|
Package selfupdate resolves the stable and beta 0.x releases a native install can take, and stages a verified release package in its slots (ADR 0007). |
|
Package sitepower is the site-boundary power identity used by charging policy tests and (later) by planner/dispatch.
|
Package sitepower is the site-boundary power identity used by charging policy tests and (later) by planner/dispatch. |
|
Package sitesim is a simulated house behind one main fuse, for testing Core in a closed loop.
|
Package sitesim is a simulated house behind one main fuse, for testing Core in a closed loop. |
|
Package state — heal.go: SQLite integrity gate + corruption recovery.
|
Package state — heal.go: SQLite integrity gate + corruption recovery. |
|
Package statsrelay posts the box's daily reports, each alone.
|
Package statsrelay posts the box's daily reports, each alone. |
|
statsrelaytest
Package statsrelaytest is a fake FTW Cloud energy route, and a fake relay and gateway, for tests.
|
Package statsrelaytest is a fake FTW Cloud energy route, and a fake relay and gateway, for tests. |
|
Package sunpos computes solar position (zenith/azimuth) and plane-of-array irradiance for arbitrary panel orientations.
|
Package sunpos computes solar position (zenith/azimuth) and plane-of-array irradiance for arbitrary panel orientations. |
|
Package telemetry is the central DER data store plus per-signal Kalman smoothing and per-driver health tracking.
|
Package telemetry is the central DER data store plus per-signal Kalman smoothing and per-driver health tracking. |
|
Package thermal is the vocabulary heat controls are declared in: which heat store an asset is, and which lever a driver offers on it.
|
Package thermal is the vocabulary heat controls are declared in: which heat store an asset is, and which lever a driver offers on it. |
|
Package thermaltwin learns how a heated zone behaves, in shadow.
|
Package thermaltwin learns how a heated zone behaves, in shadow. |
|
Package units is the source of truth for physical quantities in FTW core.
|
Package units is the source of truth for physical quantities in FTW core. |
|
Package v2x evaluates the operator policy envelope for bidirectional EV chargers.
|
Package v2x evaluates the operator policy envelope for bidirectional EV chargers. |
Click to show internal directories.
Click to hide internal directories.