# onocoy

> [!NOTE]
>
> Эта страница ещё не переведена. Вы читаете английскую версию.

> **Category:** Sensors | **Status:** Beta
>
> **Website:** [onocoy.com](<https://www.onocoy.com>)

## Description

onocoy is a decentralized GNSS (Global Navigation Satellite System) reference station network. You connect a dedicated dual-band or multi-band GNSS receiver with a clear-sky antenna to a Linux host, and stream RTK correction data outbound over NTRIP to earn ONO tokens.

## Warnings before buying hardware

- **Uptime requirement:** Stations with **under 80% uptime earn nothing**. Plan for a reliable power supply, stable internet connection, and unattended restarts.
- **Density penalty:** Rewards drop when other operators' stations sit within **50 km** of your location, most for those within 15 km. onocoy groups stations by owner and ignores the two closest, so a count alone does not decide it. Check the onocoy explorer map before purchasing hardware.
- **Hardware & liquidity:** A suitable GNSS receiver and roof/clear-sky antenna typically cost **EUR 150–300**, and ONO has thin daily trading volume. CashPilot makes no earnings promise.
- **Campaign deadline:** The European expansion campaign runs until **2027-01-02** (tracked via `campaign_ends: "2027-01-02"` in the catalog).

## Requirements

| Requirement | Value |
| --- | --- |
| Hardware | USB/ACM GNSS receiver (e.g. u-blox ZED-F9P or compatible RTK receiver) + clear-sky antenna |
| Serial device | `/dev/ttyACM0` or `/dev/ttyUSB0` (opt-in passthrough, no `--privileged`) |
| Network | Outbound NTRIP only (no inbound ports required) |
| Residential IP | No |
| VPS / Datacenter | No (requires physical GNSS receiver and sky view) |
| GPU required | No |
| Supported platforms | Docker (linux/amd64, linux/arm64, linux/arm/v7) |

## Setup Instructions

### 1\. Register your station

Create an account in the [onocoy Console](<https://console.onocoy.com>), register your GNSS reference station, and create its NTRIP credentials: a **mountpoint username** and a **password**.

### 2\. Connect your GNSS receiver

Plug your GNSS receiver into your Linux host and confirm which serial device node it appears as (usually `/dev/ttyACM0` or `/dev/ttyUSB0`):

```
ls -l /dev/ttyACM* /dev/ttyUSB*
```

CashPilot passes through **only** the explicitly configured `/dev/ttyUSB<n>` or `/dev/ttyACM<n>` device node (`rw`, without `mknod` and without `privileged: true`). Arbitrary host devices and path traversal are rejected by the worker.

### 3\. Deploy with CashPilot

If the worker runs behind the Docker socket proxy, its policy must allow serial receivers. The compose files of this release already do. An older install takes the new policy first: see [UPGRADING](<https://github.com/GeiserX/CashPilot/blob/main/UPGRADING.md#after-301-take-the-new-proxy-policy-before-you-deploy-onocoy-or-a-gpu-miner>).

1. Open **Catalog**, filter by **Sensors**, and click **Add** on **onocoy**.
2. Set **GNSS Receiver Serial Device** to your host device (for example `/dev/ttyACM0` or `/dev/ttyUSB0`).
3. Enter the **Mountpoint username** and **Mountpoint password** from the onocoy console. Leave **Receiver baud rate** at `115200` unless your receiver sits behind a USB serial adapter set to another rate.
4. Click **Deploy onocoy**.

### 4\. Validate and register the stream

The console credentials from step 1 only let the station stream. It earns once onocoy has validated the stream and you have registered it:

1. Connect a Solana wallet in the onocoy console (**Connect Wallet**, top right).
2. Wait for **Data Validation**. It can take 24 to 36 hours; the explorer shows the validation status.
3. After validation, open the **NTRIP Credentials** tab and click **Register** to link the stream to your wallet.
4. Rewards arrive in ONO with a one-day delay. Keep a small amount of SOL in the connected wallet: onocoy needs it before you can claim. Then claim with **Claim Rewards** in your NTRIP server list.

## Docker Configuration

- **Image:** `simeononsecurity/docker-rtklib-onocoy-rtkdirect:latest@sha256:dd7729971ab4c3ef8e7cadc130c7e47104b8a8329887b42a9dcf6bd866c1158e` (upstream only publishes `:latest`, so CashPilot pins it by multi-arch digest)
- **Platforms:** `linux/amd64`, `linux/arm64`, `linux/arm/v7`
- **Networking:** Outbound NTRIP only (`ports: []`, no host networking, `privileged: false`)
- **Serial device passthrough:** Opt-in via `docker.serial_devices: true`, strictly validated to `/dev/ttyUSB<n>` or `/dev/ttyACM<n>`

### Environment Variables

| Variable | Label | Required | Secret | Description |
| --- | --- | :---: | :---: | --- |
| `SERIAL_DEVICE` | GNSS Receiver Serial Device | Yes | No | Host serial device (`/dev/ttyACM0` or `/dev/ttyUSB0`) |
| `BAUD_RATE` | Receiver baud rate | No | No | Serial speed of the receiver (default `115200`). A receiver on native USB ignores it; one behind a USB serial adapter needs its own rate, often 115200 or 921600 |
| `ONOCOY_USERNAME` | Mountpoint username | Yes | No | Username of the station's NTRIP credentials in the onocoy console |
| `ONOCOY_PASSWORD` | Mountpoint password | Yes | Yes | Password of the station's NTRIP credentials in the onocoy console |

The image reads the receiver as `USB_PORT`, the device name without `/dev/`. CashPilot sets it from `SERIAL_DEVICE` when the container starts. The image always streams to onocoy's caster, `servers.onocoy.com`, over TLS, but it does not check the caster's certificate. The image prints the mountpoint password in its startup log and in each command line it retries. CashPilot passes that output through a filter that writes `[redacted]` in place of the password, so the container log does not hold it. The filter also sends the image's error output to the standard log.
