Skip to main content

Feeds API

Endpoints

RouteMethodPurpose
/api/v1/feeds/GETList feeds
/api/v1/feeds/POSTCreate feed
/api/v1/feeds/{id}/dataPOSTAdd sensor data to feed

Data Models

Feed (Data Stream)

Feed:
- id (UUID)
- key, name, description
- device_id (FK to Device)
- group_id (FK to Group)
- visibility (private|public|shared)
- unit_type, unit_symbol
- last_value (latest sensor reading)
- status_notify, status_timeout

FeedValue (Time Series)

FeedValue:
- id (UUID)
- value (string, flexible storage)
- feed_id (FK)
- timestamp
- metadata (JSON)