Next: , Previous: , Up: STARTER Configurable Service   [Contents]


Introduction

When I started using STARTER in my own house, I began writing many small services. I wrote one for the weather, one for the clock, one for the Shelly devices, one for the boiler, and so on.

Every new service started from an existing skeleton, so I ended up with a lot of duplicated code. Sometimes I found a bug in one service, fixed it, and then had to carry the same fix into every other service that shared that code. That was becoming heavy.

So I asked myself: every service fetches data from somewhere and exposes it to starter-core in the same way. Is there a way to unify the code and change only the details at runtime? That is how starter-configurable-service (STCS) was born.

The service is essentially a double pipeline: from an external source toward an STInput, or from an STOutput toward an external destination. In the middle sit a series of elements (transports, readers, writers, datapoints, transforms) that can reshape or normalise the data before it is published or written. Instead of a dedicated C binary per device or API, you describe those pieces in one XML file and load plugins for the concrete protocols.

Of course it will never cover every use case. Some I/O paths or services are complex and need fine-grained, dedicated handling. With STCS we can cover most situations; for the rest we still write a purpose-built service.

STARTER (Simple distribuTed smART conTrollER) itself remains the automation brain: rules live in starter-core. STCS is only the bridge.

This manual is organised in two layers:

The program, plugins, and examples are under the GPL version 3 or later (see GNU General Public License); libstarter-configurable-service is under the LGPL version 3 or later (see GNU Lesser General Public License). This manual is under the FDL (see GNU Free Documentation License).


Next: Concepts, Previous: STARTER Configurable Service, Up: STARTER Configurable Service   [Contents]