Metadata-Version: 2.1
Name: remotivelabs-cli
Version: 0.0.1a35
Summary: 
Author: Johan Rask
Author-email: johan.rask@remotivelabs.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: plotext (>=5.2,<6.0)
Requires-Dist: pyjwt (>=2.6,<3.0)
Requires-Dist: remotivelabs-broker (>=0.1.12)
Requires-Dist: rich (>=13.6.0,<13.7.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Requires-Dist: websocket-client (>=1.6,<2.0)
Requires-Dist: zeroconf (>=0.119.0,<0.120.0)
Description-Content-Type: text/markdown

# RemotiveLabs - CLI

Use this CLI with our cloud and broker as a compliment to code and web tools.

Read more at https://docs.remotivelabs.com/docs/cloud-cli/Installation

## Cloud and broker API

You can use our CLI against both cloud and broker.

## Subscribe to signals

Output from running subscribe against our demo. You can visit https://demoo.remotivelabs.com
to start a broker and subscribe to - from the demo you can copy/paste the exact command to run.

```
remotive broker signals subscribe  \
    --namespace VehicleBus  \
    --signal ID257DIspeed.DI_vehicleSpeed \
    --signal ID129SteeringAngle.SteeringAngle129 \
    --url https://some_url --api-key some-api-key
```

```json
[{"timestamp_us": 1663574225650092, "name": "ID129SteeringAngle.SteeringAngle129", "value": -363.0}, {"timestamp_us": 1663574225650092, 
"name": "ID129SteeringAngle", "value": "0xcb2cd251fe1fff3f"}]
[{"timestamp_us": 1663574225658703, "name": "ID257DIspeed.DI_vehicleSpeed", "value": 7.200000000000003}, {"timestamp_us": 1663574225658703, 
"name": "ID257DIspeed", "value": "0xf3e9240802701201"}]
[{"timestamp_us": 1663574225658708, "name": "ID129SteeringAngle.SteeringAngle129", "value": -363.0}, {"timestamp_us": 1663574225658708, 
"name": "ID129SteeringAngle", "value": "0xd92dd251fe1fff3f"}]
[{"timestamp_us": 1663574225664791, "name": "ID129SteeringAngle.SteeringAngle129", "value": -363.0}, {"timestamp_us": 1663574225664791, 
"name": "ID129SteeringAngle", "value": "0x062ed251fe1fff3f"}]
[{"timestamp_us": 1663574225674805, "name": "ID129SteeringAngle.SteeringAngle129", "value": -363.0}, {"timestamp_us": 1663574225674805, 
"name": "ID129SteeringAngle", "value": "0xf72fd251fe1fff3f"}]
[{"timestamp_us": 1663574225678242, "name": "ID257DIspeed.DI_vehicleSpeed", "value": 7.200000000000003}, {"timestamp_us": 1663574225678242, 
"name": "ID257DIspeed", "value": "0xf4ea240802701201"}]
[{"timestamp_us": 1663574225684858, "name": "ID129SteeringAngle.SteeringAngle129", "value": -363.0}, {"timestamp_us": 1663574225684858, 
"name": "ID129SteeringAngle", "value": "0xbf20d251ff1fff3f"}]
```

## Subscribe with terminal plotting

To just make sure that your signals make sense you can plot them in terminal.

```
remotive broker signals subscribe  \
    --namespace VehicleBus  \
    --signal ID257DIspeed.DI_vehicleSpeed \
    --signal ID129SteeringAngle.SteeringAngle129 \
    --url https://some_url --api-key some-api-key \
    --x-plot --x-plot-size 1000
```

![alt text](cli-plot.png "Cli plotting")

