Skip to content

timmo001/system-bridge

Repository files navigation

System Bridge

Note

This project is currently going through a rebuild in go. If you would like to try the new version, you should use the development instructions.

A bridge for your systems.

Note

Contributions welcome! Feel free to submit a PR if you have any changes, fixes or improvements.

Features

  • Supports Linux and Windows. MacOS is untested but can be compiled and tested by the community.
  • Access your system information via data modules and the API/WebSocket server.
  • Control your system via the API/WebSocket server.
  • Integrated with Home Assistant

System Requirements

Warning

The following documentation is for version 5.0.0 and above which is currently in development.

Linux

Arch Linux

Install the following packages:

sudo pacman -S inetutils wlr-randr

Debian/Ubuntu (Not verified)

Install the following packages:

sudo apt install inetutils-tools wlr-randr

Fedora (Not verified)

Install the following packages:

sudo dnf install inetutils wlr-randr

Installation

Download the latest release from the releases page.

Linux installation

Install the package for your distribution's package manager.

Windows installation

Run the setup executable to install the application.

Running

Warning

The following documentation is for version 5.0.0 and above which is currently in development.

  1. To run the backend server:

    system-bridge backend

Running as a Service

Linux (systemd)

Warning

Not supported with AppImage or Flatpak. You will need to configure the service manually to the correct path.

  1. Copy the systemd service file to the systemd directory:

    sudo cp .scripts/linux/system-bridge.service /etc/systemd/system/
  2. Reload systemd daemon:

    sudo systemctl daemon-reload
  3. Enable the service to start on boot:

    sudo systemctl enable system-bridge
  4. Start the service:

    sudo systemctl start system-bridge
  5. Check the service status:

    sudo systemctl status system-bridge

Windows (service installation)

  1. Open PowerShell as Administrator

  2. Navigate to the directory containing the installation scripts

  3. Run the installation script:

    .\scripts\windows\install-service.ps1
  4. To uninstall the service:

    .\scripts\windows\uninstall-service.ps1

Development Setup

  1. Install go
  2. Set up your go workspace and make sure that your GOPATH is set correctly.
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

Build and Install

  1. Clone this repo
  2. Run go build
  3. Run go install

Packages

Allows other applications to connect to the backend. For example, in the Home Assistant integration.