# reduct-bridge
[%5D(https://github.com/reductstore/reduct-bridge/releases/latest) [%5D(https://github.com/reductstore/reduct-bridge/actions) [%5D(https://hub.docker.com/r/reduct/bridge) [%5D(https://github.com/reductstore/reduct-bridge/releases/latest) [%5D(https://codecov.io/gh/reductstore/reduct-bridge)
ReductBridge bridges live robotics and IIoT data with long-term storage in ReductStore.
You can configure the bridge using a simple TOML file to define inputs, pipelines, and remotes.
Inputs produce data, pipelines route and modify it, and remotes store it.
## Inputs
An input is a data source. It reads data from a system and produces records for the bridge.
Supported input types include:
mqtt:// or mqtts:// and store raw payloads with optional payload/property label mapping.## Remotes
A remote is a data destination. It receives records from pipelines and writes them to external storage.
Supported remote types include:
## Pipelines
Pipelines connect one or more inputs to one remote.
```toml # Pipeline definition path: # [pipelines.<pipeline_name>] [pipelines.telemetry]
# Required: remote name from [[remotes.*]]. remote = "local"
# Required: one or more input names from [inputs..]. inputs = ["ros_local"]
# Optional label rules (default = []): # 1) Static labels: # { static = { source = "robot" }, to = "" } # - adds labels to matching target entries # 2) Copy labels from one entry to another: # { from = "time", labels = ["timestamp"], to = "echo" } # - remembers labels seen on matching source entries # - applies them to matching target entries labels = [ { static = { source = "ros1" }, to = "" } ] ```
## Installation
### Snap (Ubuntu 22.04+)
```bash sudo snap install reduct-bridge-<build-type> --channel=edge # or --channel=stable once released ```
To run the service with an explicit config file path, set the config-path snap option:
```bash
sudo cp path/to/config.toml /var/snap/reduct-bridge/reduct-bridge.toml
sudo chmod 640 /var/snap/reduct-bridge/reduct-bridge.toml
sudo snap set reduct-bridge-<build-type> config-path=/var/snap/reduct-bridge/commont/reduct-bridge.toml
sudo snap get reduct-bridge-<build-type> config-path
sudo snap restart reduct-bridge-<build-type>.service
```
Release CI builds snap package variants and publishes them to the standard channels.
### Cargo / source build
```bash cargo install reduct-bridge ```
cargo install reduct-bridge builds the default feature set, which includes only the shell input.
For MQTT-specific build and runtime guidance, see [MQTT input documentation](src/input/mqtt/README.md).
The MQTT input is grouped under the iot Cargo feature alongside future IoT protocols.
For metrics-specific build and runtime guidance, see [Metrics input documentation](src/input/metrics/README.md).
For ROS2-specific build and runtime guidance, see [ROS2 input documentation](src/input/ros2/README.md).
To build additional inputs explicitly from s...
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap can be installed from the command line on openSUSE Leap 15.x and Tumbleweed.
You need first add the snappy repository from the terminal. Choose the appropriate command depending on your installed openSUSE flavor.
Tumbleweed:
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed snappy
Leap 15.x:
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.6 snappy
If needed, Swap out openSUSE_Leap_15. for, openSUSE_Leap_16.0 if you’re using a different version of openSUSE.
With the repository added, import its GPG key:
sudo zypper --gpg-auto-import-keys refresh
Finally, upgrade the package cache to include the new snappy repository:
sudo zypper dup --from snappy
Snap can now be installed with the following:
sudo zypper install snapd
You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.
Additionally, enable and start both the snapd and the snapd.apparmor services with the following commands:
sudo systemctl enable --now snapd
sudo systemctl enable --now snapd.apparmor
To install ReductBridge for IIoT, simply use the following command:
sudo snap install reduct-bridge-iot --edge
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.