Next: , Previous: , Up: STARTER Http Bridge   [Contents]


Introduction

When I needed a simple way to drive plant I/O from a browser, a script, or another house service—without writing a full starter-configurable-service pipeline—I wanted a small peer that spoke both languages of STARTER: the same STServer/mDNS surface that starter-core already discovers, and a plain JSON REST API that anything with curl can use.

That is starter-http-bridge. It is a sibling process (not part of STCS or STCA). You declare inputs and outputs in an XML file; the bridge publishes them to starter-core via STServer and mDNS, and serves a JSON-only REST API on a configured address and port.

Writes are limited to input val and flags. Schema fields and all outputs are read-only over HTTP. An optional api-token turns on Bearer authentication for every route. Values persist in SQLite so a restart keeps the last written state.

STARTER (Simple distribuTed smART conTrollER) remains the automation brain: rules live in starter-core. The http bridge is only the thin peer that makes selected I/O reachable from HTTP.

This manual is organised as follows: Building and Running cover install and invocation; Configuration Overview, Configuration Examples, and Configuration Reference describe the <sthb> document; REST API and Persistence cover the wire API and the store.

The program is under the GPL version 3 or later (see GNU General Public License). This manual is under the FDL (see GNU Free Documentation License).