docs: align active hardware and API guidance
This commit is contained in:
1 parent
ab5424d82e
commit
6b39e7e438
24 files changed
+219
-261
No files matched your search
+29
-49
@@ -16,11 +16,9 @@ Current API base path:
|
||||
|
||||
All documented endpoints are local-first and must continue to work without internet access. Consumers should ignore unknown response fields for forward compatibility.
|
||||
|
||||
Current firmware version:
|
||||
|
||||
```text
|
||||
0.5.0
|
||||
```
|
||||
The API returns the running build version in each system, health, and
|
||||
capabilities response. Do not treat examples in this document as a version
|
||||
source of truth.
|
||||
|
||||
## Current Endpoints
|
||||
|
||||
@@ -41,6 +39,9 @@ POST /api/v1/config/temp
|
||||
POST /api/v1/config/bms
|
||||
POST /api/v1/config/save
|
||||
POST /api/v1/config/factory-reset
|
||||
GET /api/v1/config/ap
|
||||
POST /api/v1/config/ap
|
||||
POST /api/v1/config/ap/reset
|
||||
|
||||
GET /api/v1/config/wifi
|
||||
POST /api/v1/config/wifi
|
||||
@@ -55,18 +56,12 @@ POST /api/v1/bms/setup/enter
|
||||
POST /api/v1/bms/setup/exit
|
||||
POST /api/v1/bms/scan
|
||||
POST /api/v1/bms/select
|
||||
|
||||
POST /api/v1/system/ota
|
||||
```
|
||||
|
||||
Pre-versioned root routes remain registered as compatibility aliases for existing local clients. New clients should use `/api/v1`.
|
||||
|
||||
Legacy GET relay routes remain available only as root compatibility aliases:
|
||||
|
||||
```text
|
||||
GET /relay/relay_1/on
|
||||
GET /relay/relay_1/off
|
||||
GET /relay/relay_2/on
|
||||
GET /relay/relay_2/off
|
||||
```
|
||||
Only `/api/v1` routes are registered. New clients must use the versioned API
|
||||
prefix; root-route compatibility aliases are not available.
|
||||
|
||||
## Dashboard Contract
|
||||
|
||||
@@ -91,7 +86,7 @@ Returns a lightweight liveness response for dashboards and service tools.
|
||||
"ok": true,
|
||||
"api_version": "v1",
|
||||
"firmware_name": "overland-controller",
|
||||
"firmware_version": "0.5.0",
|
||||
"firmware_version": "<running build version>",
|
||||
"uptime_seconds": 123,
|
||||
"network": {
|
||||
"ap_enabled": true,
|
||||
@@ -120,14 +115,14 @@ Returns API and feature discovery data for clients.
|
||||
"ok": true,
|
||||
"api_version": "v1",
|
||||
"firmware_name": "overland-controller",
|
||||
"firmware_version": "0.5.0",
|
||||
"firmware_version": "<running build version>",
|
||||
"endpoints": [
|
||||
"GET /api/v1/status",
|
||||
"POST /api/v1/relay/set"
|
||||
],
|
||||
"limits": {
|
||||
"relay_count": 2,
|
||||
"temperature_sensor_count": 8,
|
||||
"relay_count": 6,
|
||||
"temperature_sensor_count": 4,
|
||||
"runtime_temperature_status_count": 4,
|
||||
"wifi_network_count": 3
|
||||
},
|
||||
@@ -137,8 +132,8 @@ Returns API and feature discovery data for clients.
|
||||
"wifi_config": true,
|
||||
"config_backup_restore": true,
|
||||
"bms_setup": true,
|
||||
"uart_json": true,
|
||||
"root_compatibility_aliases": true
|
||||
"uart_json": false,
|
||||
"root_compatibility_aliases": false
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -244,7 +239,8 @@ Fields:
|
||||
| `online` | Current sensor detection state |
|
||||
| `temperature_f` | Current Fahrenheit value, or `null` when offline |
|
||||
|
||||
Config supports `temp_1` through `temp_8`. Current `/api/v1/status` runtime output is limited to the configured count capped at four sensors.
|
||||
Config supports `temp_1` through `temp_4`. `/api/v1/status` returns the
|
||||
configured runtime sensors, capped at four.
|
||||
|
||||
### relays
|
||||
|
||||
@@ -252,7 +248,7 @@ Config supports `temp_1` through `temp_8`. Current `/api/v1/status` runtime outp
|
||||
{
|
||||
"id": "relay_1",
|
||||
"name": "Aux Power",
|
||||
"pin": 16,
|
||||
"hardware_channel": 1,
|
||||
"enabled": true,
|
||||
"state": false
|
||||
}
|
||||
@@ -263,6 +259,10 @@ Valid relay IDs:
|
||||
```text
|
||||
relay_1
|
||||
relay_2
|
||||
relay_3
|
||||
relay_4
|
||||
relay_5
|
||||
relay_6
|
||||
```
|
||||
|
||||
Relay names are user configuration. Firmware and clients should use generic IDs for commands.
|
||||
@@ -319,7 +319,7 @@ The AP remains enabled even when STA WiFi is configured or connected.
|
||||
```json
|
||||
{
|
||||
"firmware_name": "overland-controller",
|
||||
"firmware_version": "0.5.0",
|
||||
"firmware_version": "<running build version>",
|
||||
"build_date": "Jun 7 2026",
|
||||
"build_time": "12:00:00",
|
||||
"uptime_seconds": 123
|
||||
@@ -394,7 +394,7 @@ Fields:
|
||||
|
||||
| Field | Required | Description |
|
||||
|---|---:|---|
|
||||
| `id` | Yes | `relay_1` or `relay_2` |
|
||||
| `id` | Yes | `relay_1` through `relay_6` |
|
||||
| `name` | No | User display name |
|
||||
| `enabled` | No | Configured enabled state. When set to `false`, the relay output is forced OFF and future relay control requests are rejected with `relay_disabled`. |
|
||||
|
||||
@@ -418,7 +418,7 @@ Fields:
|
||||
|
||||
| Field | Required | Description |
|
||||
|---|---:|---|
|
||||
| `id` | Yes | `temp_1` through `temp_8` |
|
||||
| `id` | Yes | `temp_1` through `temp_4` |
|
||||
| `name` | No | User display name |
|
||||
| `address` | No | DS18B20 address |
|
||||
| `enabled` | No | Configured enabled state |
|
||||
@@ -472,7 +472,7 @@ Important: export includes saved WiFi passwords so the backup can be restored. T
|
||||
"ok": true,
|
||||
"api_version": "v1",
|
||||
"firmware_name": "overland-controller",
|
||||
"firmware_version": "0.5.0",
|
||||
"firmware_version": "<running build version>",
|
||||
"config": {
|
||||
"device_name": "Overland Controller",
|
||||
"temperature_sensor_count": 4,
|
||||
@@ -541,27 +541,6 @@ Response:
|
||||
}
|
||||
```
|
||||
|
||||
### Legacy GET relay routes
|
||||
|
||||
These routes remain for compatibility but should not be used by new clients:
|
||||
|
||||
```text
|
||||
GET /relay/relay_1/on
|
||||
GET /relay/relay_1/off
|
||||
GET /relay/relay_2/on
|
||||
GET /relay/relay_2/off
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"id": "relay_1",
|
||||
"state": true
|
||||
}
|
||||
```
|
||||
|
||||
## WiFi
|
||||
|
||||
### GET /api/v1/config/wifi
|
||||
@@ -836,7 +815,8 @@ Some serial/UART errors use `message` instead of `error`; HTTP clients should re
|
||||
|
||||
Current stable API prefix is `/api/v1`, for example `GET /api/v1/status`.
|
||||
|
||||
Pre-versioned root routes remain registered as local compatibility aliases. Do not add new root-only HTTP API routes.
|
||||
Pre-versioned root routes are not registered. Do not add new root-only HTTP
|
||||
API routes.
|
||||
|
||||
New fields may be added to existing JSON objects. Consumers should ignore unknown fields.
|
||||
|
||||
|
||||
Reference in new issue
Block a user