Introduction
The Cambrionix Hub API is designed to control Cambrionix products through a locally installed service called 'CambrionixApiService'. This service provides a programming interface to control Cambrionix units.
A Python wrapper is provided with a public domain JSON-RPC library that will allow scripts to be written without needing to be overly familiar with JSON. Alternatively, you may use the programming language of your choice to connect directly to the daemon over a standard TCP/IP socket and send and receive JSON formatted data. When the API is used to communicate with a remote network attached hub, this is done over an SSH tunnel.
The Product Name supports multiple simultaneous client connections to itself and supports concurrent access to numerous hubs.
The Product Name is implemented in CambrionixApiService, which sits between the application and the Cambrionix units. It maps the properties of the Cambrionix units into API commands.
You can download the latest version of this manual from our website at the following link. https://www.cambrionix.com/cambrionix-api
JSON-RPC library
The API uses JSON-RPC over TCP. JSON-RPC is a connection to JSON as a data format. JSON-RPC stands for 'JavaScript Object Notation Remote Procedure Call'. In short, JSON represents a lightweight format for data interchange. It is a format for structuring data that is easy to transfer.
Any programming language that supports JSON-RPC can be used; libraries are widely available for other languages.