Skip to content

Commit 0aeed56

Browse files
committed
add readme, update ci stuff
1 parent 3efc095 commit 0aeed56

3 files changed

Lines changed: 49 additions & 5 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717

1818
- name: Setup .NET
19-
uses: actions/setup-dotnet@v4
19+
uses: actions/setup-dotnet@v5
2020
with:
2121
dotnet-version: '10.0.x'
2222

@@ -27,7 +27,7 @@ jobs:
2727
run: dotnet publish LocalRelay/LocalRelay.csproj --configuration Release -o publish
2828

2929
- name: Upload module artifact
30-
uses: actions/upload-artifact@v4
30+
uses: actions/upload-artifact@v5
3131
with:
3232
name: OpenShock.LocalRelay.module
3333
path: publish/OpenShock.LocalRelay.module.zip

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
contents: write
2020
steps:
2121
- name: Download module artifact
22-
uses: actions/download-artifact@v4
22+
uses: actions/download-artifact@v5
2323
with:
2424
name: OpenShock.LocalRelay.module
2525
path: artifacts/

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
# Local Relay
1+
# OpenShock Local Relay
2+
3+
A module for [OpenShock Desktop](https://github.com/OpenShock/Desktop) that relays shock, vibrate, and sound commands from the OpenShock cloud to locally-connected hubs over a serial (USB) connection — letting you use OpenShock without putting your hub on Wi-Fi.
4+
5+
## What it does
6+
7+
`LocalRelay` registers as a desktop module and:
8+
9+
- Authenticates with the OpenShock API using a token with the `Devices_Auth` permission.
10+
- Subscribes to the OpenShock live control stream for your account.
11+
- Forwards incoming commands to a physical OpenShock hub connected over a serial port.
12+
13+
The module adds two tabs to OpenShock Desktop:
14+
15+
- **Hub** — pair the relay with a hub registered to your account.
16+
- **Serial** — pick the serial port for the connected hub and monitor the link.
17+
18+
## Requirements
19+
20+
- Windows, Linux, or macOS with [OpenShock Desktop](https://github.com/OpenShock/Desktop) installed.
21+
- .NET 10 runtime (bundled with OpenShock Desktop).
22+
- An OpenShock hub flashed with firmware that supports serial control, connected via USB.
23+
- An OpenShock account and an API token with the `Devices_Auth` permission.
24+
25+
## Installation
26+
27+
1. Grab the latest `OpenShock.LocalRelay.module.zip` from the [Releases](../../releases) page.
28+
2. Drop it into your OpenShock Desktop modules folder (or install it via the Desktop app's module manager).
29+
3. Restart OpenShock Desktop.
30+
4. Open the **Local Relay** module, pair your hub on the **Hub** tab, then select its port on the **Serial** tab.
31+
32+
## Building from source
33+
34+
```bash
35+
dotnet restore LocalRelay.slnx
36+
dotnet publish LocalRelay/LocalRelay.csproj --configuration Release -o publish
37+
```
38+
39+
The packed module ends up at `publish/OpenShock.LocalRelay.module.zip`.
40+
41+
During local development, `copy-module-dll.cmd` can copy the built assemblies into your OpenShock Desktop module directory for quick iteration.
42+
43+
## License
44+
45+
See [LICENSE](LICENSE).

0 commit comments

Comments
 (0)