lager-cli 0.61.0__tar.gz → 0.62.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lager_cli-0.61.0/lager_cli.egg-info → lager_cli-0.62.0}/PKG-INFO +15 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/README.md +14 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/__init__.py +1 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/__init__.py +3 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/diagnose.py +1 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/hello.py +6 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/instruments.py +7 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/nets.py +35 -24
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/python.py +26 -16
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/__init__.py +3 -0
- lager_cli-0.62.0/commands/measurement/dmm.py +152 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/defaults.py +6 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/install.py +47 -6
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/update.py +216 -17
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/setup_and_deploy_box.sh +80 -4
- {lager_cli-0.61.0 → lager_cli-0.62.0/lager_cli.egg-info}/PKG-INFO +15 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/lager_cli.egg-info/SOURCES.txt +2 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/main.py +3 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/display.py +1 -1
- {lager_cli-0.61.0 → lager_cli-0.62.0}/LICENSE +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/MANIFEST.in +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/NOTICE +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/__main__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/address_utils.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/battery/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/battery/battery_tui.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/battery/websocket_client.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/box_storage.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_device_identity.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_gateway.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_host_ops.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_mount_prep.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_net_preflight.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_pip_validation.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_shim_verbs.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/_ssh.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/bench.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/box_group.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/boxes.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/config.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/drivers.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/dut.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/labjack_pins.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/lock.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/net_tui.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/ssh.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/box/ssh_setup.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/ble.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/blufi.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/i2c.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/router.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/spi.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/uart.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/usb.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/websocket_client.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/communication/wifi.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/custom.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/arm.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/commands.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/net_cache.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/rtt_websocket_client.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/service_client.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/service_helper.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/debug/tunnel.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/development/devenv.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/adc.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/dac.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/energy.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/gpi.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/gpo.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/logic.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/scope.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/thermocouple.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/measurement/watt.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/battery.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/battery_model_csv.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/eload.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/solar.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/power/supply.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/security/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/security/hsm.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/_host_cli.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/binaries.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/exec_.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/install_wheel.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/login.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/logs.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/uninstall.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/commands/utility/webcam.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/config.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/ci_detection.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/constants.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/core.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/error_handlers.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/context/session.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/custom_drivers.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/group_usage.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/matchers.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/net_group.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/net_helpers.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/net_storage.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/param_types.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/ssh_utils.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/tui_keys.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/tui_ws_bridge.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/utils.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/version_skew.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/core/ws_diagnose.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/configure_docker_dns.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/configure_docker_dns.sh +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/convert_to_sparse_checkout.sh +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/scripts/setup_ssh_key.sh +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/security/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/security/etc_lager_perms.sh +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/deployment/security/secure_box_firewall.sh +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/errors.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/exceptions.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/gateway_auth.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/gateway_tunnel.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/box_config.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/measurement/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/measurement/scope.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/measurement/scope_stream.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/power/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/impl/power/enable_disable.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/lager_cli.egg-info/dependency_links.txt +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/lager_cli.egg-info/entry_points.txt +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/lager_cli.egg-info/requires.txt +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/lager_cli.egg-info/top_level.txt +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/pyproject.toml +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/run_record.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/safe_unpickle.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/setup.cfg +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/setup.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/simple_hdlc.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/sort_utils.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/status.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/supply/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/supply/supply_tui.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/supply/websocket_client.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/core/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/core/executor.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/main.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/__init__.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/completer.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/logo.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/repl.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/terminal/ui/themes.py +0 -0
- {lager_cli-0.61.0 → lager_cli-0.62.0}/update_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lager-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.62.0
|
|
4
4
|
Summary: Lager CLI - Box and Docker connectivity
|
|
5
5
|
Home-page: https://github.com/lagerdata/lager
|
|
6
6
|
Author: Lager Data
|
|
@@ -164,6 +164,15 @@ lager scope <net> measure freq
|
|
|
164
164
|
lager logic <net> trigger edge --slope rising --level 1.8
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
+
### Multimeter
|
|
168
|
+
```bash
|
|
169
|
+
# DC volts on the 20 V range, 10 PLC
|
|
170
|
+
lager dmm <net> dcv --range 20 --nplc 10
|
|
171
|
+
|
|
172
|
+
# 4-wire resistance, JSON output
|
|
173
|
+
lager dmm <net> fres --json
|
|
174
|
+
```
|
|
175
|
+
|
|
167
176
|
### Battery & Solar Simulation
|
|
168
177
|
```bash
|
|
169
178
|
# Set battery state of charge
|
|
@@ -293,6 +302,7 @@ lager box-config apply
|
|
|
293
302
|
- Rigol DP800 series
|
|
294
303
|
- Keysight E36200/E36300 series
|
|
295
304
|
- Keithley 2200/2280 series
|
|
305
|
+
- Siglent SPD1168X (over LAN, create its net with `lager nets add-batch`)
|
|
296
306
|
|
|
297
307
|
### Battery Simulators
|
|
298
308
|
- Keithley 2281S
|
|
@@ -302,6 +312,7 @@ lager box-config apply
|
|
|
302
312
|
|
|
303
313
|
### Oscilloscopes
|
|
304
314
|
- Rigol MSO5000 series
|
|
315
|
+
- Rigol DS1000Z series (DS1054Z, DS1074Z, DS1104Z)
|
|
305
316
|
|
|
306
317
|
### I/O Hardware
|
|
307
318
|
- LabJack T7 (ADC/DAC/GPIO)
|
|
@@ -314,6 +325,9 @@ lager box-config apply
|
|
|
314
325
|
### Robotics
|
|
315
326
|
- Rotrics Dexarm
|
|
316
327
|
|
|
328
|
+
### Multimeters
|
|
329
|
+
- Siglent SDM3065X
|
|
330
|
+
|
|
317
331
|
### Temperature
|
|
318
332
|
- Phidget Thermocouples
|
|
319
333
|
|
|
@@ -110,6 +110,15 @@ lager scope <net> measure freq
|
|
|
110
110
|
lager logic <net> trigger edge --slope rising --level 1.8
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
+
### Multimeter
|
|
114
|
+
```bash
|
|
115
|
+
# DC volts on the 20 V range, 10 PLC
|
|
116
|
+
lager dmm <net> dcv --range 20 --nplc 10
|
|
117
|
+
|
|
118
|
+
# 4-wire resistance, JSON output
|
|
119
|
+
lager dmm <net> fres --json
|
|
120
|
+
```
|
|
121
|
+
|
|
113
122
|
### Battery & Solar Simulation
|
|
114
123
|
```bash
|
|
115
124
|
# Set battery state of charge
|
|
@@ -239,6 +248,7 @@ lager box-config apply
|
|
|
239
248
|
- Rigol DP800 series
|
|
240
249
|
- Keysight E36200/E36300 series
|
|
241
250
|
- Keithley 2200/2280 series
|
|
251
|
+
- Siglent SPD1168X (over LAN, create its net with `lager nets add-batch`)
|
|
242
252
|
|
|
243
253
|
### Battery Simulators
|
|
244
254
|
- Keithley 2281S
|
|
@@ -248,6 +258,7 @@ lager box-config apply
|
|
|
248
258
|
|
|
249
259
|
### Oscilloscopes
|
|
250
260
|
- Rigol MSO5000 series
|
|
261
|
+
- Rigol DS1000Z series (DS1054Z, DS1074Z, DS1104Z)
|
|
251
262
|
|
|
252
263
|
### I/O Hardware
|
|
253
264
|
- LabJack T7 (ADC/DAC/GPIO)
|
|
@@ -260,6 +271,9 @@ lager box-config apply
|
|
|
260
271
|
### Robotics
|
|
261
272
|
- Rotrics Dexarm
|
|
262
273
|
|
|
274
|
+
### Multimeters
|
|
275
|
+
- Siglent SDM3065X
|
|
276
|
+
|
|
263
277
|
### Temperature
|
|
264
278
|
- Phidget Thermocouples
|
|
265
279
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
CLI commands package.
|
|
6
6
|
|
|
7
7
|
This package contains grouped command modules organized by domain:
|
|
8
|
-
- measurement/: ADC, DAC, GPI, GPO, scope, logic, thermocouple, watt commands
|
|
8
|
+
- measurement/: ADC, DAC, GPI, GPO, scope, logic, dmm, thermocouple, watt commands
|
|
9
9
|
- power/: Power supply, battery, solar, eload commands
|
|
10
10
|
- communication/: UART, BLE, WiFi, USB commands
|
|
11
11
|
- development/: Debug, ARM, Python commands
|
|
@@ -20,6 +20,7 @@ from .measurement import (
|
|
|
20
20
|
gpo,
|
|
21
21
|
scope,
|
|
22
22
|
logic,
|
|
23
|
+
dmm,
|
|
23
24
|
thermocouple,
|
|
24
25
|
watt,
|
|
25
26
|
)
|
|
@@ -53,6 +54,7 @@ __all__ = [
|
|
|
53
54
|
"gpo",
|
|
54
55
|
"scope",
|
|
55
56
|
"logic",
|
|
57
|
+
"dmm",
|
|
56
58
|
"thermocouple",
|
|
57
59
|
"watt",
|
|
58
60
|
# Communication commands
|
|
@@ -40,7 +40,7 @@ NET_ROLE_CHOICES = [
|
|
|
40
40
|
'auto', 'battery', 'power-supply', 'eload', 'scope', 'debug', 'usb',
|
|
41
41
|
'uart', 'webcam', 'adc', 'dac', 'gpio', 'thermocouple', 'i2c', 'spi',
|
|
42
42
|
'watt-meter', 'energy-analyzer', 'router', 'rotation', 'arm', 'actuate',
|
|
43
|
-
'power-supply-2q', 'wifi', 'analog', 'logic', 'waveform', 'hsm',
|
|
43
|
+
'power-supply-2q', 'wifi', 'analog', 'logic', 'waveform', 'hsm', 'dmm',
|
|
44
44
|
]
|
|
45
45
|
|
|
46
46
|
|
|
@@ -32,10 +32,16 @@ def _ref_suffix(box_ref, box_version=None):
|
|
|
32
32
|
Returns '' for a box that reports no ref -- one that predates
|
|
33
33
|
/etc/lager/ref -- so an older box reads exactly as it did before rather
|
|
34
34
|
than gaining a scary-looking blank.
|
|
35
|
+
|
|
36
|
+
A box deployed with ``--fork`` records ``<owner>/<repo>:<ref>@<sha>`` and
|
|
37
|
+
is always flagged, even on a release-shaped ref: a fork's ``v0.52.0`` is
|
|
38
|
+
whatever that fork tagged, not the release.
|
|
35
39
|
"""
|
|
36
40
|
if not box_ref:
|
|
37
41
|
return ''
|
|
38
42
|
ref_name = str(box_ref).split('@', 1)[0]
|
|
43
|
+
if ':' in ref_name:
|
|
44
|
+
return ' ' + click.style(f'({box_ref} -- fork build, not a release)', fg='yellow')
|
|
39
45
|
if looks_like_release_tag(ref_name):
|
|
40
46
|
if box_version and ref_name == f'v{str(box_version).lstrip("v")}':
|
|
41
47
|
return ' (release)'
|
|
@@ -99,9 +99,15 @@ def instruments(ctx, box: str | None) -> None:
|
|
|
99
99
|
else:
|
|
100
100
|
channels_str = "—"
|
|
101
101
|
|
|
102
|
+
# Every camera the box has no name for is listed as UVC_Camera, so
|
|
103
|
+
# its product string is what tells them apart.
|
|
104
|
+
name = dev.get("name", "—")
|
|
105
|
+
if name == "UVC_Camera" and dev.get("product"):
|
|
106
|
+
name = f"{name}\n{dev['product']}"
|
|
107
|
+
|
|
102
108
|
table.add_row(
|
|
103
109
|
[
|
|
104
|
-
|
|
110
|
+
name,
|
|
105
111
|
channels_str,
|
|
106
112
|
dev.get("address", "—"),
|
|
107
113
|
]
|
|
@@ -511,6 +511,7 @@ INSTRUMENT_NET_MAP: dict[str, list[str]] = {
|
|
|
511
511
|
"KEYSIGHT_E36233A": ["power-supply"],
|
|
512
512
|
"KEYSIGHT_E36312A": ["power-supply"],
|
|
513
513
|
"KEYSIGHT_E36313A": ["power-supply"],
|
|
514
|
+
"Siglent_SPD1168X": ["power-supply"],
|
|
514
515
|
|
|
515
516
|
# battery
|
|
516
517
|
"Keithley_2281S": ["battery", "power-supply"],
|
|
@@ -525,6 +526,7 @@ INSTRUMENT_NET_MAP: dict[str, list[str]] = {
|
|
|
525
526
|
|
|
526
527
|
# scope
|
|
527
528
|
"Rigol_MSO5204": ["scope", "scope-channel", "logic"],
|
|
529
|
+
"Rigol_DS1000Z": ["scope", "scope-channel"],
|
|
528
530
|
"Picoscope_2000": ["scope", "scope-channel"],
|
|
529
531
|
# Every PicoScope other than the 2204A/2205A, which the scanner matches by
|
|
530
532
|
# Pico's vendor id rather than per model.
|
|
@@ -579,6 +581,9 @@ INSTRUMENT_NET_MAP: dict[str, list[str]] = {
|
|
|
579
581
|
# eload
|
|
580
582
|
"Rigol_DL3021": ["eload"],
|
|
581
583
|
|
|
584
|
+
# dmm
|
|
585
|
+
"Siglent_SDM3065X": ["dmm"],
|
|
586
|
+
|
|
582
587
|
# webcam
|
|
583
588
|
"Logitech_BRIO_HD": ["webcam"],
|
|
584
589
|
"Logitech_BRIO": ["webcam"],
|
|
@@ -593,6 +598,7 @@ INSTRUMENT_NET_MAP: dict[str, list[str]] = {
|
|
|
593
598
|
"Logitech_StreamCam": ["webcam"],
|
|
594
599
|
"ELP_Global_Shutter_AR0234": ["webcam"],
|
|
595
600
|
"IPEVO_V4K_PRO": ["webcam"],
|
|
601
|
+
"UVC_Camera": ["webcam"],
|
|
596
602
|
|
|
597
603
|
# (robot) arm
|
|
598
604
|
"Rotrix_Dexarm": ["arm"],
|
|
@@ -1978,6 +1984,32 @@ def assign_cmd(ctx, device, list_, usb_serial, port_path, baud, remove_, as_net,
|
|
|
1978
1984
|
click.echo(f" lager nets add <name> {net_role} {channel} '{address}'")
|
|
1979
1985
|
|
|
1980
1986
|
|
|
1987
|
+
# Name prefixes for roles whose first hyphenated word is not the prefix. A
|
|
1988
|
+
# `scope` net stands for the whole instrument and would otherwise share the
|
|
1989
|
+
# `scope` prefix with its `scope-channel` nets; the channels keep `scope<N>`.
|
|
1990
|
+
_NET_NAME_PREFIX = {
|
|
1991
|
+
"power-supply": "supply",
|
|
1992
|
+
"scope": "oscilloscope",
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
def _net_name_prefix(role: str) -> str:
|
|
1997
|
+
"""The prefix `nets add-all` puts before the index in a role's net names."""
|
|
1998
|
+
return _NET_NAME_PREFIX.get(role, role.split("-")[0])
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
def _next_free_net_name(prefix: str, taken: set[str]) -> str:
|
|
2002
|
+
"""`prefix` plus the lowest index from 1 up whose name is not in `taken`.
|
|
2003
|
+
|
|
2004
|
+
Indices are free per name, not per role, so two roles that share a prefix
|
|
2005
|
+
can never produce the same name.
|
|
2006
|
+
"""
|
|
2007
|
+
idx = 1
|
|
2008
|
+
while f"{prefix}{idx}" in taken:
|
|
2009
|
+
idx += 1
|
|
2010
|
+
return f"{prefix}{idx}"
|
|
2011
|
+
|
|
2012
|
+
|
|
1981
2013
|
@nets.command("add-all", help="Add all possible nets that can be created on the box")
|
|
1982
2014
|
@click.option("--box", help="Lager Box name or IP")
|
|
1983
2015
|
@click.option("--yes", is_flag=True, help="Skip confirmation prompt")
|
|
@@ -1989,13 +2021,6 @@ def create_all_cmd(ctx: click.Context, box: str | None, yes: bool) -> None:
|
|
|
1989
2021
|
"""
|
|
1990
2022
|
resolved_box = _resolve_box(ctx, box)
|
|
1991
2023
|
|
|
1992
|
-
def _first_word(role: str) -> str:
|
|
1993
|
-
"""Return the first part of a hyphenated role name."""
|
|
1994
|
-
# Special case: power-supply nets use 'supply' prefix instead of 'power'
|
|
1995
|
-
if role == "power-supply":
|
|
1996
|
-
return "supply"
|
|
1997
|
-
return role.split("-")[0]
|
|
1998
|
-
|
|
1999
2024
|
# Get available instruments and existing nets
|
|
2000
2025
|
inst_list = _fetch_instruments(ctx, resolved_box)
|
|
2001
2026
|
saved_nets = _fetch_saved_nets(ctx, resolved_box)
|
|
@@ -2244,24 +2269,10 @@ def create_all_cmd(ctx: click.Context, box: str | None, yes: bool) -> None:
|
|
|
2244
2269
|
filtered_nets.append(net)
|
|
2245
2270
|
|
|
2246
2271
|
# Assign names to filtered nets (only now that we know which will be created)
|
|
2247
|
-
|
|
2248
|
-
used_indices: dict[str, set[int]] = defaultdict(set)
|
|
2249
|
-
|
|
2250
|
-
# Collect used indices from existing nets
|
|
2251
|
-
for saved_net in saved_nets:
|
|
2252
|
-
m = idx_re.match(saved_net.get("name", ""))
|
|
2253
|
-
if m and _first_word(saved_net.get("role", "")) == m.group(1):
|
|
2254
|
-
used_indices[saved_net.get("role", "")].add(int(m.group(2)))
|
|
2255
|
-
|
|
2256
|
-
# Assign names to new nets
|
|
2272
|
+
taken = {saved_net.get("name", "") for saved_net in saved_nets}
|
|
2257
2273
|
for net in filtered_nets:
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
idx = 1
|
|
2261
|
-
while idx in used_indices[role]:
|
|
2262
|
-
idx += 1
|
|
2263
|
-
used_indices[role].add(idx)
|
|
2264
|
-
net["net"] = f"{_first_word(role)}{idx}"
|
|
2274
|
+
net["net"] = _next_free_net_name(_net_name_prefix(net["type"]), taken)
|
|
2275
|
+
taken.add(net["net"])
|
|
2265
2276
|
|
|
2266
2277
|
# Generate warnings
|
|
2267
2278
|
for inst in sorted(duplicate_hubs, key=_natural_sort_key):
|
|
@@ -424,6 +424,16 @@ _SIGNAL_MAP = {
|
|
|
424
424
|
_SIGNAL_CHOICES = click.Choice(list(_SIGNAL_MAP.keys()), case_sensitive=False)
|
|
425
425
|
|
|
426
426
|
|
|
427
|
+
def _box_error_detail(resp):
|
|
428
|
+
"""The ``error`` the box put in an error response's JSON body, or None."""
|
|
429
|
+
try:
|
|
430
|
+
data = resp.json()
|
|
431
|
+
except ValueError:
|
|
432
|
+
return None
|
|
433
|
+
error = data.get('error') if isinstance(data, dict) else None
|
|
434
|
+
return str(error) if error else None
|
|
435
|
+
|
|
436
|
+
|
|
427
437
|
def _get_signal_number(name):
|
|
428
438
|
return _SIGNAL_MAP[name.upper()]
|
|
429
439
|
|
|
@@ -669,36 +679,36 @@ def run_python_internal(ctx, runnable, box, env, passenv, kill, download, allow_
|
|
|
669
679
|
|
|
670
680
|
# Check for HTTP errors before trying to parse streaming response
|
|
671
681
|
if resp.status_code >= 400:
|
|
682
|
+
# What the box said is the diagnosis; the generic hints below are only
|
|
683
|
+
# a fallback. A collected-mode box refusing a run it cannot record
|
|
684
|
+
# answers 503 with the cause and the fix, and printing "try again
|
|
685
|
+
# later" over that sent people chasing an outage that did not exist.
|
|
686
|
+
detail = _box_error_detail(resp)
|
|
672
687
|
if resp.status_code == 401:
|
|
673
688
|
click.secho('Error: Authentication failed (HTTP 401)', fg='red', err=True)
|
|
674
|
-
|
|
689
|
+
hint = 'Check box connectivity with: lager hello'
|
|
675
690
|
elif resp.status_code == 403:
|
|
676
691
|
click.secho('Error: Access forbidden (HTTP 403)', fg='red', err=True)
|
|
677
|
-
|
|
692
|
+
hint = 'You do not have permission to access this box.'
|
|
678
693
|
elif resp.status_code == 404:
|
|
679
694
|
click.secho('Error: Resource not found (HTTP 404)', fg='red', err=True)
|
|
680
|
-
|
|
695
|
+
hint = 'The box endpoint does not exist. Check that the box is set up correctly.'
|
|
681
696
|
elif resp.status_code == 500:
|
|
682
697
|
click.secho('Error: Internal server error on box (HTTP 500)', fg='red', err=True)
|
|
683
|
-
|
|
698
|
+
hint = 'Check box logs with: lager logs --box [BOX_NAME]'
|
|
684
699
|
elif resp.status_code == 502:
|
|
685
700
|
click.secho('Error: Bad gateway (HTTP 502)', fg='red', err=True)
|
|
686
|
-
|
|
701
|
+
hint = 'The box service can be restarting. Try again in a few seconds.'
|
|
687
702
|
elif resp.status_code == 503:
|
|
688
703
|
click.secho('Error: Service unavailable (HTTP 503)', fg='red', err=True)
|
|
689
|
-
|
|
704
|
+
hint = 'The box service is temporarily unavailable. Try again later.'
|
|
690
705
|
else:
|
|
691
706
|
click.secho(f'Error: Box returned HTTP {resp.status_code}', fg='red', err=True)
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
else:
|
|
698
|
-
click.echo(resp.text, err=True)
|
|
699
|
-
except Exception:
|
|
700
|
-
if resp.text:
|
|
701
|
-
click.echo(resp.text, err=True)
|
|
707
|
+
hint = resp.text.strip() or None
|
|
708
|
+
if detail:
|
|
709
|
+
click.echo(detail, err=True)
|
|
710
|
+
elif hint:
|
|
711
|
+
click.echo(hint, err=True)
|
|
702
712
|
ctx.exit(1)
|
|
703
713
|
|
|
704
714
|
# Handle detached mode: parse JSON response and return immediately
|
|
@@ -11,6 +11,7 @@ This package groups measurement-related CLI commands:
|
|
|
11
11
|
- gpo: Set GPIO output level
|
|
12
12
|
- scope: Control oscilloscope settings
|
|
13
13
|
- logic: Control logic analyzer channels and triggers
|
|
14
|
+
- dmm: Take a bench multimeter reading
|
|
14
15
|
- thermocouple: Read thermocouple temperature
|
|
15
16
|
- watt: Read power from watt meter net
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ from .gpi import gpi
|
|
|
24
25
|
from .gpo import gpo
|
|
25
26
|
from .scope import scope
|
|
26
27
|
from .logic import logic
|
|
28
|
+
from .dmm import dmm
|
|
27
29
|
from .thermocouple import thermocouple
|
|
28
30
|
from .watt import watt
|
|
29
31
|
|
|
@@ -34,6 +36,7 @@ __all__ = [
|
|
|
34
36
|
"gpo",
|
|
35
37
|
"scope",
|
|
36
38
|
"logic",
|
|
39
|
+
"dmm",
|
|
37
40
|
"thermocouple",
|
|
38
41
|
"watt",
|
|
39
42
|
]
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Copyright 2024-2026 Lager Data
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Bench digital multimeter (DMM) commands.
|
|
6
|
+
|
|
7
|
+
One command takes one reading: ``lager dmm NET [FUNCTION]`` with optional
|
|
8
|
+
range, NPLC and temperature sensor. The box validates the request against
|
|
9
|
+
the meter and answers an unsupported setting with an error instead of
|
|
10
|
+
reading with something close to it.
|
|
11
|
+
"""
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import json
|
|
15
|
+
|
|
16
|
+
import click
|
|
17
|
+
|
|
18
|
+
from ...context import get_default_net
|
|
19
|
+
from ...core.net_group import NetCommand
|
|
20
|
+
from ...core.net_helpers import (
|
|
21
|
+
display_nets,
|
|
22
|
+
fetch_nets,
|
|
23
|
+
post_net_command,
|
|
24
|
+
resolve_box_locked,
|
|
25
|
+
validate_net_exists,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
DMM_ROLE = "dmm"
|
|
29
|
+
|
|
30
|
+
# Same tokens as box/lager/measurement/dmm/dmm_net.py FUNCTIONS.
|
|
31
|
+
FUNCTIONS = (
|
|
32
|
+
"dcv", "acv", "dci", "aci", "res", "fres", "cont", "diode",
|
|
33
|
+
"freq", "period", "cap", "temp",
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# Past the box's 60 s hardware_service budget for one reading (slow NPLC,
|
|
37
|
+
# auto-range, large capacitors), so the client never gives up first.
|
|
38
|
+
_HTTP_TIMEOUT_S = 75.0
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse_range(value: str | None) -> float | str | None:
|
|
42
|
+
"""``--range`` as a float, or "auto"."""
|
|
43
|
+
if value is None or value.strip().lower() == "auto":
|
|
44
|
+
return None
|
|
45
|
+
try:
|
|
46
|
+
return float(value)
|
|
47
|
+
except ValueError as exc:
|
|
48
|
+
raise click.BadParameter(f"'{value}' is not a number or 'auto'",
|
|
49
|
+
param_hint="--range") from exc
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _split_function_from_net(ctx, box_ip: str, netname: str | None,
|
|
53
|
+
function: str | None) -> tuple[str | None, str | None]:
|
|
54
|
+
"""Read ``lager dmm res`` as the default net and function ``res``.
|
|
55
|
+
|
|
56
|
+
NET_NAME and FUNCTION are both optional positionals, so a lone function
|
|
57
|
+
token lands in NET_NAME. It is taken as the function when a default DMM
|
|
58
|
+
net is set and no DMM net has that name; a net named like a function
|
|
59
|
+
still wins.
|
|
60
|
+
"""
|
|
61
|
+
if function is not None or netname is None:
|
|
62
|
+
return netname, function
|
|
63
|
+
if netname.strip().lower() not in FUNCTIONS:
|
|
64
|
+
return netname, function
|
|
65
|
+
default = get_default_net(ctx, "dmm")
|
|
66
|
+
if default is None:
|
|
67
|
+
return netname, function
|
|
68
|
+
token = netname.strip()
|
|
69
|
+
nets = fetch_nets(box_ip)
|
|
70
|
+
if any(n.get("name") == token and n.get("role") == DMM_ROLE for n in nets):
|
|
71
|
+
return netname, function
|
|
72
|
+
return default, token
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@click.command(name="dmm", cls=NetCommand,
|
|
76
|
+
help="Take one bench multimeter reading (default function: dcv)")
|
|
77
|
+
@click.pass_context
|
|
78
|
+
@click.option("--box", required=False, help="Lager Box name or IP")
|
|
79
|
+
@click.option("--range", "range_", default=None, metavar="FULL_SCALE",
|
|
80
|
+
help="Full-scale range in base units (20 = 20 V, 2e-6 = 2 uF), or 'auto' "
|
|
81
|
+
"(default)")
|
|
82
|
+
@click.option("--nplc", type=float, default=None,
|
|
83
|
+
help="Integration time in power-line cycles (dcv, dci, res, fres only)")
|
|
84
|
+
@click.option("--sensor", default=None,
|
|
85
|
+
help="Temperature probe for 'temp': rtd:pt100, rtd:pt1000, ther:k, ...")
|
|
86
|
+
@click.option("--errors", "show_errors", is_flag=True, default=False,
|
|
87
|
+
help="Read and clear the meter's error queue instead of measuring")
|
|
88
|
+
@click.option("--idn", "show_idn", is_flag=True, default=False,
|
|
89
|
+
help="Print the meter's *IDN? reply instead of measuring")
|
|
90
|
+
@click.option("--json", "as_json", is_flag=True, default=False,
|
|
91
|
+
help="Emit a machine-readable JSON object instead of formatted text")
|
|
92
|
+
@click.argument("netname", required=False, metavar="[NET_NAME]")
|
|
93
|
+
@click.argument("function", required=False, default=None,
|
|
94
|
+
type=click.Choice(FUNCTIONS, case_sensitive=False))
|
|
95
|
+
def dmm(ctx, box, range_, nplc, sensor, show_errors, show_idn, as_json, netname, function):
|
|
96
|
+
if show_errors and show_idn:
|
|
97
|
+
raise click.UsageError("--errors and --idn cannot be combined")
|
|
98
|
+
|
|
99
|
+
if netname is None:
|
|
100
|
+
netname = get_default_net(ctx, "dmm")
|
|
101
|
+
|
|
102
|
+
box_ip = resolve_box_locked(ctx, box, "dmm")
|
|
103
|
+
netname, function = _split_function_from_net(ctx, box_ip, netname, function)
|
|
104
|
+
|
|
105
|
+
if netname is None:
|
|
106
|
+
display_nets(ctx, box_ip, None, DMM_ROLE, "dmm")
|
|
107
|
+
return
|
|
108
|
+
|
|
109
|
+
netname = netname.strip()
|
|
110
|
+
if validate_net_exists(ctx, box_ip, netname, DMM_ROLE) is None:
|
|
111
|
+
return # Error already displayed
|
|
112
|
+
|
|
113
|
+
if show_errors or show_idn:
|
|
114
|
+
action = "errors" if show_errors else "identify"
|
|
115
|
+
result = post_net_command(ctx, box_ip, netname, action, role=DMM_ROLE, quiet=True)
|
|
116
|
+
if as_json:
|
|
117
|
+
key = "errors" if show_errors else "idn"
|
|
118
|
+
click.echo(json.dumps({"netname": netname, key: result.get("value")}))
|
|
119
|
+
else:
|
|
120
|
+
click.echo(result.get("message"))
|
|
121
|
+
return
|
|
122
|
+
|
|
123
|
+
function = (function or "dcv").lower()
|
|
124
|
+
result = post_net_command(
|
|
125
|
+
ctx, box_ip, netname, "measure", role=DMM_ROLE, quiet=True,
|
|
126
|
+
http_timeout=_HTTP_TIMEOUT_S,
|
|
127
|
+
function=function, range=_parse_range(range_), nplc=nplc, sensor=sensor,
|
|
128
|
+
)
|
|
129
|
+
overload = bool(result.get("overload"))
|
|
130
|
+
if as_json:
|
|
131
|
+
click.echo(json.dumps({
|
|
132
|
+
"netname": netname,
|
|
133
|
+
"function": function,
|
|
134
|
+
"value": None if overload else result.get("value"),
|
|
135
|
+
"unit": result.get("unit"),
|
|
136
|
+
"overload": overload,
|
|
137
|
+
}))
|
|
138
|
+
elif overload:
|
|
139
|
+
click.secho(result.get("message", "OVERLOAD"), fg="yellow")
|
|
140
|
+
else:
|
|
141
|
+
click.secho(result.get("message", ""), fg="green")
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
dmm.net_examples = [
|
|
145
|
+
"lager dmm dmm1 --box <BOX> (DC volts, auto-range)",
|
|
146
|
+
"lager dmm dmm1 acv --range 20 --box <BOX>",
|
|
147
|
+
"lager dmm dmm1 res --nplc 100 --json --box <BOX>",
|
|
148
|
+
"lager dmm dmm1 temp --sensor rtd:pt100 --box <BOX>",
|
|
149
|
+
"lager dmm dmm1 --errors --box <BOX>",
|
|
150
|
+
"lager dmm res --box <BOX> (default net, resistance)",
|
|
151
|
+
"lager dmm --box <BOX> (list dmm nets)",
|
|
152
|
+
]
|
|
@@ -70,6 +70,7 @@ def defaults(ctx):
|
|
|
70
70
|
@click.option('--webcam-net', required=False, help='Set default webcam net name')
|
|
71
71
|
@click.option('--watt-meter-net', required=False, help='Set default watt meter net name')
|
|
72
72
|
@click.option('--thermocouple-net', required=False, help='Set default thermocouple net name')
|
|
73
|
+
@click.option('--dmm-net', required=False, help='Set default multimeter net name')
|
|
73
74
|
@click.option('--uart-net', required=False, help='Set default UART net name')
|
|
74
75
|
@click.option('--arm-net', required=False, help='Set default robotic arm net name')
|
|
75
76
|
@click.option('--user', required=False,
|
|
@@ -78,7 +79,7 @@ def defaults(ctx):
|
|
|
78
79
|
'set this to that email.')
|
|
79
80
|
def add(box, serial_port, supply_net, battery_net, solar_net, scope_net, logic_net,
|
|
80
81
|
adc_net, dac_net, gpio_net, debug_net, eload_net, usb_net, webcam_net,
|
|
81
|
-
watt_meter_net, thermocouple_net, uart_net, arm_net, user):
|
|
82
|
+
watt_meter_net, thermocouple_net, dmm_net, uart_net, arm_net, user):
|
|
82
83
|
"""
|
|
83
84
|
Set default values
|
|
84
85
|
"""
|
|
@@ -86,6 +87,7 @@ def add(box, serial_port, supply_net, battery_net, solar_net, scope_net, logic_n
|
|
|
86
87
|
if all(v is None for v in [box, serial_port, supply_net, battery_net, solar_net,
|
|
87
88
|
scope_net, logic_net, adc_net, dac_net, gpio_net, debug_net,
|
|
88
89
|
eload_net, usb_net, webcam_net, watt_meter_net, thermocouple_net,
|
|
90
|
+
dmm_net,
|
|
89
91
|
uart_net, arm_net, user]):
|
|
90
92
|
click.secho("Error: You must specify at least one setting", fg='red', err=True)
|
|
91
93
|
click.echo("\nAvailable options:", err=True)
|
|
@@ -105,6 +107,7 @@ def add(box, serial_port, supply_net, battery_net, solar_net, scope_net, logic_n
|
|
|
105
107
|
click.echo(" --webcam-net [NET_NAME] Set default webcam net", err=True)
|
|
106
108
|
click.echo(" --watt-meter-net [NET_NAME] Set default watt meter net", err=True)
|
|
107
109
|
click.echo(" --thermocouple-net [NET_NAME] Set default thermocouple net", err=True)
|
|
110
|
+
click.echo(" --dmm-net [NET_NAME] Set default multimeter net", err=True)
|
|
108
111
|
click.echo(" --uart-net [NET_NAME] Set default UART net", err=True)
|
|
109
112
|
click.echo(" --arm-net [NET_NAME] Set default robotic arm net", err=True)
|
|
110
113
|
click.echo(" --user [USERNAME] Set default username for box locking", err=True)
|
|
@@ -161,6 +164,7 @@ def add(box, serial_port, supply_net, battery_net, solar_net, scope_net, logic_n
|
|
|
161
164
|
'webcam_net': ('net_webcam', webcam_net),
|
|
162
165
|
'watt_meter_net': ('net_watt_meter', watt_meter_net),
|
|
163
166
|
'thermocouple_net': ('net_thermocouple', thermocouple_net),
|
|
167
|
+
'dmm_net': ('net_dmm', dmm_net),
|
|
164
168
|
'uart_net': ('net_uart', uart_net),
|
|
165
169
|
'arm_net': ('net_arm', arm_net),
|
|
166
170
|
}
|
|
@@ -339,6 +343,7 @@ _net_types = [
|
|
|
339
343
|
('webcam-net', 'net_webcam', 'webcam net'),
|
|
340
344
|
('watt-meter-net', 'net_watt_meter', 'watt meter net'),
|
|
341
345
|
('thermocouple-net', 'net_thermocouple', 'thermocouple net'),
|
|
346
|
+
('dmm-net', 'net_dmm', 'multimeter net'),
|
|
342
347
|
('uart-net', 'net_uart', 'UART net'),
|
|
343
348
|
('arm-net', 'net_arm', 'robotic arm net'),
|
|
344
349
|
]
|