openc3 7.5.1 → 7.6.0

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.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -0
  3. data/bin/openc3cli +82 -5
  4. data/data/config/_params.yaml +3 -0
  5. data/data/config/command_modifiers.yaml +5 -3
  6. data/data/config/default_plugins.yaml +1 -0
  7. data/data/config/interface_modifiers.yaml +17 -1
  8. data/data/config/item_modifiers.yaml +24 -1
  9. data/data/config/microservice.yaml +15 -1
  10. data/data/config/parameter_modifiers.yaml +4 -4
  11. data/data/config/plugins.yaml +511 -3
  12. data/data/config/settings.yaml +17 -0
  13. data/data/config/target.yaml +53 -0
  14. data/data/config/telemetry.yaml +58 -2
  15. data/data/config/widgets.yaml +30 -0
  16. data/lib/openc3/accessors/accessor.rb +14 -2
  17. data/lib/openc3/accessors/binary_accessor.rb +25 -5
  18. data/lib/openc3/api/CLAUDE.md +1 -0
  19. data/lib/openc3/api/api.rb +1 -0
  20. data/lib/openc3/api/cmd_api.rb +9 -1
  21. data/lib/openc3/api/interface_api.rb +7 -2
  22. data/lib/openc3/api/limits_api.rb +93 -41
  23. data/lib/openc3/api/router_api.rb +7 -2
  24. data/lib/openc3/api/settings_api.rb +4 -1
  25. data/lib/openc3/api/shared_resource_api.rb +107 -0
  26. data/lib/openc3/api/tlm_api.rb +10 -0
  27. data/lib/openc3/interfaces/http_client_interface.rb +84 -27
  28. data/lib/openc3/interfaces/protocols/preidentified_protocol.rb +6 -2
  29. data/lib/openc3/interfaces/tcpip_server_interface.rb +205 -125
  30. data/lib/openc3/io/json_api.rb +2 -10
  31. data/lib/openc3/io/json_api_object.rb +2 -10
  32. data/lib/openc3/logs/packet_log_writer.rb +8 -3
  33. data/lib/openc3/microservices/decom_common.rb +4 -1
  34. data/lib/openc3/microservices/decom_microservice.rb +52 -6
  35. data/lib/openc3/microservices/interface_decom_common.rb +13 -0
  36. data/lib/openc3/microservices/interface_microservice.rb +50 -11
  37. data/lib/openc3/microservices/limits_group_microservice.rb +513 -0
  38. data/lib/openc3/microservices/log_microservice.rb +22 -8
  39. data/lib/openc3/microservices/microservice.rb +8 -2
  40. data/lib/openc3/microservices/multi_microservice.rb +76 -22
  41. data/lib/openc3/microservices/queue_microservice.rb +29 -24
  42. data/lib/openc3/migrations/20260704000000_default_bridge.rb +1 -2
  43. data/lib/openc3/migrations/20261103000001_limits_group_backfill.rb +193 -0
  44. data/lib/openc3/models/bridge_model.rb +3 -3
  45. data/lib/openc3/models/cvt_model.rb +3 -1
  46. data/lib/openc3/models/host_interface_microservice_model.rb +4 -4
  47. data/lib/openc3/models/interface_model.rb +27 -7
  48. data/lib/openc3/models/microservice_group.rb +167 -0
  49. data/lib/openc3/models/microservice_model.rb +88 -2
  50. data/lib/openc3/models/panel_model.rb +109 -0
  51. data/lib/openc3/models/plugin_model.rb +1006 -26
  52. data/lib/openc3/models/plugin_store_model.rb +6 -1
  53. data/lib/openc3/models/protected_storage_model.rb +64 -0
  54. data/lib/openc3/models/queue_model.rb +19 -10
  55. data/lib/openc3/models/scope_model.rb +80 -3
  56. data/lib/openc3/models/setting_model.rb +2 -2
  57. data/lib/openc3/models/shared_resource_model.rb +381 -0
  58. data/lib/openc3/models/target_model.rb +324 -68
  59. data/lib/openc3/operators/microservice_operator.rb +76 -9
  60. data/lib/openc3/operators/operator.rb +29 -0
  61. data/lib/openc3/packets/commands.rb +16 -16
  62. data/lib/openc3/packets/limits.rb +2 -0
  63. data/lib/openc3/packets/packet.rb +75 -4
  64. data/lib/openc3/packets/packet_config.rb +152 -13
  65. data/lib/openc3/packets/packet_item.rb +35 -14
  66. data/lib/openc3/packets/packet_item_limits.rb +67 -6
  67. data/lib/openc3/packets/parsers/limits_parser.rb +69 -2
  68. data/lib/openc3/packets/parsers/packet_item_parser.rb +6 -0
  69. data/lib/openc3/packets/parsers/packet_parser.rb +45 -0
  70. data/lib/openc3/packets/parsers/state_parser.rb +1 -1
  71. data/lib/openc3/script/CLAUDE.md +1 -0
  72. data/lib/openc3/script/api_shared.rb +17 -9
  73. data/lib/openc3/script/calendar.rb +18 -6
  74. data/lib/openc3/script/commands.rb +11 -9
  75. data/lib/openc3/script/critical_cmd.rb +22 -2
  76. data/lib/openc3/script/metadata.rb +30 -4
  77. data/lib/openc3/script/plugins.rb +8 -0
  78. data/lib/openc3/script/script.rb +8 -24
  79. data/lib/openc3/script/web_socket_api.rb +23 -17
  80. data/lib/openc3/system/system.rb +9 -3
  81. data/lib/openc3/top_level.rb +17 -0
  82. data/lib/openc3/topics/command_topic.rb +7 -1
  83. data/lib/openc3/topics/decom_interface_topic.rb +9 -3
  84. data/lib/openc3/topics/discovery_topic.rb +84 -0
  85. data/lib/openc3/topics/limits_event_topic.rb +236 -17
  86. data/lib/openc3/topics/telemetry_decom_topic.rb +12 -3
  87. data/lib/openc3/topics/topic.rb +2 -1
  88. data/lib/openc3/utilities/authentication.rb +67 -16
  89. data/lib/openc3/utilities/cli_generator.rb +117 -25
  90. data/lib/openc3/utilities/client_ip_header_filter.rb +38 -0
  91. data/lib/openc3/utilities/config_overlay.rb +24 -1
  92. data/lib/openc3/utilities/cosmos_rails_formatter.rb +18 -10
  93. data/lib/openc3/utilities/hardware_discovery.rb +279 -0
  94. data/lib/openc3/utilities/limits_rollup.rb +81 -0
  95. data/lib/openc3/utilities/local_mode.rb +48 -5
  96. data/lib/openc3/utilities/questdb_client.rb +130 -22
  97. data/lib/openc3/utilities/reingest_job.rb +12 -3
  98. data/lib/openc3/utilities/running_script.rb +206 -49
  99. data/lib/openc3/utilities/script.rb +24 -12
  100. data/lib/openc3/utilities/script_env.rb +164 -0
  101. data/lib/openc3/utilities/script_message_signing.rb +133 -0
  102. data/lib/openc3/utilities/store_autoload.rb +32 -1
  103. data/lib/openc3/utilities/store_queued.rb +5 -1
  104. data/lib/openc3/version.rb +6 -6
  105. data/templates/command_validator/command_validator.py +9 -9
  106. data/templates/{tool_react/pnpm-workspace.yaml → panel/.prettierrc.cjs} +7 -5
  107. data/templates/panel/Rakefile +24 -0
  108. data/templates/panel/package.json +17 -0
  109. data/templates/{tool_angular → panel}/pnpm-workspace.yaml +5 -0
  110. data/templates/panel/src/Panel.js +52 -0
  111. data/templates/panel/src/Panel.vue +60 -0
  112. data/templates/panel/src/panelSdk.js +24 -0
  113. data/templates/panel/vite-Panel.config.js +43 -0
  114. data/templates/tool_vue/package.json +3 -3
  115. data/templates/widget/package.json +2 -2
  116. metadata +24 -56
  117. data/templates/tool_angular/.editorconfig +0 -16
  118. data/templates/tool_angular/.gitignore +0 -44
  119. data/templates/tool_angular/.vscode/extensions.json +0 -4
  120. data/templates/tool_angular/.vscode/launch.json +0 -20
  121. data/templates/tool_angular/.vscode/tasks.json +0 -42
  122. data/templates/tool_angular/angular.json +0 -111
  123. data/templates/tool_angular/extra-webpack.config.js +0 -8
  124. data/templates/tool_angular/package.json +0 -48
  125. data/templates/tool_angular/src/app/app-routing.module.ts +0 -15
  126. data/templates/tool_angular/src/app/app.component.html +0 -22
  127. data/templates/tool_angular/src/app/app.component.scss +0 -18
  128. data/templates/tool_angular/src/app/app.component.spec.ts +0 -29
  129. data/templates/tool_angular/src/app/app.component.ts +0 -52
  130. data/templates/tool_angular/src/app/app.module.ts +0 -30
  131. data/templates/tool_angular/src/app/custom-overlay-container.ts +0 -17
  132. data/templates/tool_angular/src/app/empty-route/empty-route.component.ts +0 -7
  133. data/templates/tool_angular/src/app/openc3-api.d.ts +0 -1
  134. data/templates/tool_angular/src/assets/.gitkeep +0 -0
  135. data/templates/tool_angular/src/environments/environment.prod.ts +0 -3
  136. data/templates/tool_angular/src/environments/environment.ts +0 -16
  137. data/templates/tool_angular/src/favicon.ico +0 -0
  138. data/templates/tool_angular/src/index.html +0 -13
  139. data/templates/tool_angular/src/main.single-spa.ts +0 -40
  140. data/templates/tool_angular/src/single-spa/asset-url.ts +0 -12
  141. data/templates/tool_angular/src/single-spa/single-spa-props.ts +0 -8
  142. data/templates/tool_angular/src/styles.scss +0 -1
  143. data/templates/tool_angular/tsconfig.app.json +0 -13
  144. data/templates/tool_angular/tsconfig.json +0 -33
  145. data/templates/tool_angular/tsconfig.spec.json +0 -14
  146. data/templates/tool_react/.eslintrc +0 -7
  147. data/templates/tool_react/.gitignore +0 -71
  148. data/templates/tool_react/.prettierignore +0 -8
  149. data/templates/tool_react/babel.config.json +0 -29
  150. data/templates/tool_react/jest.config.js +0 -12
  151. data/templates/tool_react/package.json +0 -51
  152. data/templates/tool_react/src/openc3-tool_name.js +0 -24
  153. data/templates/tool_react/src/root.component.js +0 -88
  154. data/templates/tool_react/src/root.component.test.js +0 -9
  155. data/templates/tool_react/webpack.config.js +0 -27
  156. data/templates/tool_svelte/.gitignore +0 -71
  157. data/templates/tool_svelte/.prettierignore +0 -8
  158. data/templates/tool_svelte/.prettierrc.js +0 -5
  159. data/templates/tool_svelte/babel.config.js +0 -12
  160. data/templates/tool_svelte/build/smui.css +0 -1
  161. data/templates/tool_svelte/jest.config.js +0 -9
  162. data/templates/tool_svelte/package.json +0 -49
  163. data/templates/tool_svelte/pnpm-workspace.yaml +0 -20
  164. data/templates/tool_svelte/rollup.config.js +0 -74
  165. data/templates/tool_svelte/src/App.svelte +0 -42
  166. data/templates/tool_svelte/src/App.test.js +0 -9
  167. data/templates/tool_svelte/src/theme/_smui-theme.scss +0 -25
  168. data/templates/tool_svelte/src/tool_name.js +0 -17
  169. data/templates/widget/LICENSE.md +0 -20
@@ -26,12 +26,305 @@ VARIABLE_DESCRIPTION:
26
26
  - name: Description
27
27
  required: true
28
28
  description: Human-readable description of the variable's purpose
29
+ VARIABLE_LABEL:
30
+ summary: Set the label of a plugin variable in the plugin installation dialog
31
+ description: The VARIABLE_LABEL keyword sets the label shown for the previously defined VARIABLE in the plugin
32
+ installation dialog instead of the variable name. The variable name is still used in ERB and is shown when
33
+ hovering over the field. Must follow a VARIABLE definition.
34
+ since: 7.6.0
35
+ example: |
36
+ VARIABLE port_tgt 8080
37
+ VARIABLE_LABEL "Target Port"
38
+ parameters:
39
+ - name: Label
40
+ required: true
41
+ description: Label shown in the plugin installation dialog
42
+ values: .+
43
+ VARIABLE_TYPE:
44
+ summary: Set the input type of a plugin variable in the plugin installation dialog
45
+ description: The VARIABLE_TYPE keyword sets how the previously defined VARIABLE is entered and checked in the
46
+ plugin installation dialog. BOOLEAN is a switch that sets true or false (and can be cleared to blank unless required).
47
+ INTEGER and NUMBER must be numbers. PASSWORD hides the value while typing.
48
+ JSON is a full width monospace field that must hold valid JSON. SECRET picks the name of a COSMOS secret from the
49
+ scope's secrets, and a new secret can be created from the dialog. TARGET_NAME is the name of a target the plugin
50
+ installs, which must be a valid target name not used by another target. On a new install, a TARGET_NAME whose
51
+ default is already taken defaults to the next free name instead (INST_2, INST_3 and so on), so a plugin can be
52
+ installed more than once. Changing or upgrading an install keeps its name. TEXT is the default.
53
+ Blank values are allowed unless the variable is required (see VARIABLE_REQUIRED and VARIABLE_STATE_REQUIRED).
54
+ The plugin installation dialog won't install with invalid values. The value is still passed to ERB as a string.
55
+ Must follow a VARIABLE definition.
56
+ since: 7.6.0
57
+ example: |
58
+ VARIABLE hostname localhost
59
+ VARIABLE_TYPE TEXT
60
+ VARIABLE port 8080
61
+ VARIABLE_TYPE INTEGER
62
+ VARIABLE poll_rate 0.5
63
+ VARIABLE_TYPE NUMBER
64
+ VARIABLE use_ssl false
65
+ VARIABLE_TYPE BOOLEAN
66
+ VARIABLE password ""
67
+ VARIABLE_TYPE PASSWORD
68
+ VARIABLE options '{"timeout": 5, "retries": 3}'
69
+ VARIABLE_TYPE JSON
70
+ VARIABLE api_key_secret API_KEY
71
+ VARIABLE_TYPE SECRET
72
+ VARIABLE inst_target_name INST
73
+ VARIABLE_TYPE TARGET_NAME
74
+ parameters:
75
+ - name: Type
76
+ required: true
77
+ description: Input type of the variable
78
+ values: ['TEXT', 'BOOLEAN', 'INTEGER', 'NUMBER', 'PASSWORD', 'JSON', 'SECRET', 'TARGET_NAME']
79
+ VARIABLE_GROUP:
80
+ summary: Show a plugin variable in a titled section of the plugin installation dialog
81
+ description: The VARIABLE_GROUP keyword puts the previously defined VARIABLE in a titled section of the plugin
82
+ installation dialog, e.g. Connection or Authentication. Variables without a group are shown first, then each
83
+ group in the order it is first used. VARIABLE_ADVANCED variables are shown in the collapsed Advanced section
84
+ whatever their group. Must follow a VARIABLE definition.
85
+ since: 7.6.0
86
+ example: |
87
+ VARIABLE hostname localhost
88
+ VARIABLE_GROUP Connection
89
+ VARIABLE port 8080
90
+ VARIABLE_GROUP Connection
91
+ VARIABLE username ""
92
+ VARIABLE_GROUP Authentication
93
+ parameters:
94
+ - name: Group Name
95
+ required: true
96
+ description: Title of the section
97
+ values: .+
98
+ VARIABLE_REQUIRED:
99
+ summary: Require a value for a plugin variable in the plugin installation dialog
100
+ description: The VARIABLE_REQUIRED keyword marks the previously defined VARIABLE as required. The plugin installation
101
+ dialog won't install while the variable is shown and blank. Required variables are marked with *.
102
+ Use VARIABLE_STATE_REQUIRED to require a variable only while a state is selected. Must follow a VARIABLE definition.
103
+ since: 7.6.0
104
+ example: |
105
+ VARIABLE hostname ""
106
+ VARIABLE_REQUIRED
107
+ VARIABLE_PATTERN:
108
+ summary: Check the value of a plugin variable against a regular expression
109
+ description: The VARIABLE_PATTERN keyword gives a regular expression that the whole value of the previously defined
110
+ VARIABLE must match in the plugin installation dialog. Blank values aren't checked (see VARIABLE_REQUIRED).
111
+ The plugin installation dialog won't install while a shown variable doesn't match, and shows the error message.
112
+ The pattern is checked in the browser so use regular expressions that JavaScript supports.
113
+ Must follow a VARIABLE definition.
114
+ since: 7.6.0
115
+ example: |
116
+ VARIABLE inst_target_name INST
117
+ VARIABLE_PATTERN "[A-Z][A-Z0-9_]*" "Use capital letters, numbers and underscores"
118
+ parameters:
119
+ - name: Regular Expression
120
+ required: true
121
+ description: Regular expression the whole value must match
122
+ values: .+
123
+ - name: Error Message
124
+ required: false
125
+ description: Message shown when the value doesn't match. Defaults to showing the regular expression.
126
+ values: .+
127
+ VARIABLE_HIDDEN:
128
+ summary: Hide a plugin variable from the plugin installation dialog
129
+ description: The VARIABLE_HIDDEN keyword hides the previously defined VARIABLE in the plugin installation dialog.
130
+ Its value is set by the VARIABLE_STATE_SET and VARIABLE_DISCOVERY_SET keywords of other variables and can be used
131
+ in ERB and as a VARIABLE_DISCOVERY parameter, for example to pass per state parameters to a discovery.
132
+ Since it can't be edited, a hidden variable always takes the values set by the selected states of the installed
133
+ plugin.txt, including when upgrading. Must follow a VARIABLE definition.
134
+ since: 7.6.0
135
+ example: |
136
+ VARIABLE device shelly
137
+ VARIABLE_STATE Shelly shelly
138
+ VARIABLE_STATE_SET mdns_types _shelly._tcp.local.
139
+ VARIABLE_STATE "Philips Hue" hue
140
+ VARIABLE_STATE_SET mdns_types _hue._tcp.local.
141
+ VARIABLE mdns_types ""
142
+ VARIABLE_HIDDEN
143
+ VARIABLE host ""
144
+ VARIABLE_DISCOVERY openc3/discovery/zeroconf_discovery.py ${mdns_types}
145
+ VARIABLE_ADVANCED:
146
+ summary: Show a plugin variable in the advanced section of the plugin installation dialog
147
+ description: The VARIABLE_ADVANCED keyword marks the previously defined VARIABLE as advanced. Advanced variables are
148
+ shown in a section of the plugin installation dialog that is collapsed by default, for settings that normally
149
+ don't need to change. VARIABLE_STATE_SHOW still controls whether an advanced variable is shown.
150
+ Must follow a VARIABLE definition.
151
+ since: 7.6.0
152
+ example: |
153
+ VARIABLE host 127.0.0.1
154
+ VARIABLE timeout 10
155
+ VARIABLE_DESCRIPTION "Connection timeout in seconds"
156
+ VARIABLE_ADVANCED
157
+ VARIABLE_MULTIPLE:
158
+ summary: Let the user select any number of a plugin variable's states
159
+ description: The VARIABLE_MULTIPLE keyword makes the previously defined VARIABLE a multi-select of its VARIABLE_STATEs,
160
+ which are the only values it can have. In ERB its value is an Array of the selected state values, in the order of
161
+ the states (e.g. `<%%= sensors.join(',') %>`), which is empty when none are selected. The VARIABLE default is the
162
+ initially selected state values separated by commas, and each must be a VARIABLE_STATE value. The VARIABLE_STATE_SHOW,
163
+ VARIABLE_STATE_REQUIRED and VARIABLE_TEXT_START of every selected state apply, and the VARIABLE_STATE_SET keywords of a
164
+ state are applied when it is selected, so two of its states can't set the same variable. A VARIABLE_STATE_SET or
165
+ VARIABLE_DISCOVERY_SET of another variable selects its states with values separated by commas. VARIABLE_REQUIRED
166
+ requires at least one state to be selected. It can't be used with VARIABLE_TYPE, VARIABLE_PATTERN,
167
+ VARIABLE_DISCOVERY, VARIABLE_FILE or VARIABLE_BRIDGE, or as a `${name}` parameter of a VARIABLE_DISCOVERY.
168
+ Must follow a VARIABLE definition.
169
+ since: 7.6.0
170
+ example: |
171
+ VARIABLE sensors TEMP,PRESS
172
+ VARIABLE_LABEL Sensors
173
+ VARIABLE_MULTIPLE
174
+ VARIABLE_STATE Temperature TEMP
175
+ VARIABLE_STATE_SHOW temp_rate
176
+ VARIABLE_STATE Pressure PRESS
177
+ VARIABLE_STATE Humidity HUM
178
+ VARIABLE temp_rate 10
179
+ <%% sensors.each do |sensor| %>
180
+ TARGET SENSOR <%%= sensor %>
181
+ <%% end %>
182
+ VARIABLE_BRIDGE:
183
+ summary: Let the user select which bridge the plugin uses
184
+ description: The VARIABLE_BRIDGE keyword defines a variable named bridge_name whose value is selected from the
185
+ bridges available in COSMOS when the plugin is installed. Bridges connect COSMOS to openc3-cosmos-app running on a host
186
+ computer, so this chooses which host the plugin's bridged interfaces and VARIABLE_DISCOVERY run on.
187
+ Use bridge_name in ERB like any other variable, for example with the BRIDGE interface modifier.
188
+ VARIABLE_DESCRIPTION, VARIABLE_STATE and the other VARIABLE modifiers can follow it.
189
+ Defining VARIABLE bridge_name in the same plugin.txt is an error.
190
+ since: 7.6.0
191
+ example: |
192
+ VARIABLE_BRIDGE
193
+ VARIABLE_DESCRIPTION "Bridge to the computer the serial device is connected to"
194
+ VARIABLE serial_port /dev/ttyUSB0
195
+ VARIABLE_DISCOVERY openc3/discovery/serial_discovery.py
196
+ INTERFACE SERIAL_INT serial_interface.py <%%= serial_port %> <%%= serial_port %> 115200 NONE 1 10.0 nil
197
+ BRIDGE <%%= bridge_name %>
198
+ parameters:
199
+ - name: Default Bridge Name
200
+ required: false
201
+ description: Bridge selected by default. Defaults to DEFAULT, the bridge every scope has.
202
+ values: .+
203
+ VARIABLE_FILE:
204
+ summary: Let the user upload a file into the plugin when installing it
205
+ description: The VARIABLE_FILE keyword defines a variable whose value is a file the user uploads in the plugin
206
+ dialog, such as a calibration table, a certificate or an interface control document. The file is stored with
207
+ the plugin so upgrades keep it, and is copied to the destination path in the plugin before anything is
208
+ installed from it. In ERB the variable is the destination path, or blank if no file was uploaded, so
209
+ plugin.txt can include the file conditionally. Uploading a file again replaces it.
210
+ VARIABLE_DESCRIPTION, VARIABLE_LABEL, VARIABLE_REQUIRED and the other VARIABLE modifiers except VARIABLE_TYPE
211
+ can follow it. A PRE_INSTALL_SCRIPT can read the file to generate the rest of the plugin.
212
+ Files can be up to 100 MB. List file extensions after the destination path to only accept files with one of
213
+ them, e.g. .csv .xlsx. Extensions aren't case sensitive.
214
+ since: 7.6.0
215
+ example: |
216
+ VARIABLE_FILE icd targets/INST/data/icd.csv .csv
217
+ VARIABLE_LABEL "Interface control document"
218
+ VARIABLE_REQUIRED
219
+ PRE_INSTALL_SCRIPT scripts/generate_target.py <%%= icd %>
220
+ TARGET INST INST
221
+ parameters:
222
+ - name: Variable Name
223
+ required: true
224
+ description: The name of the variable
225
+ values: .+
226
+ - name: Destination Path
227
+ required: true
228
+ description: Path the uploaded file is copied to, relative to the top of the plugin. It must stay inside the
229
+ plugin and is created if needed.
230
+ values: .+
231
+ - name: File Extensions
232
+ required: false
233
+ description: Any number of file extensions the uploaded file must have one of, e.g. .csv .xlsx. The leading
234
+ dot is optional. Any file is accepted if none are given.
235
+ values: .+
236
+ VARIABLE_DISCOVERY:
237
+ summary: Discover the possible values of a plugin variable from the host computer
238
+ description: The VARIABLE_DISCOVERY keyword runs a Python discovery class on the host computer paired with
239
+ COSMOS through openc3-cosmos-app, using the bridge selected by VARIABLE_BRIDGE (or the DEFAULT bridge). The values it finds are added to the dropdown for the
240
+ previously defined VARIABLE in the plugin installation dialog, after any VARIABLE_STATE options.
241
+ Discovery runs when the dialog opens and can be refreshed. When installing a new plugin, the first available
242
+ discovered value is selected automatically unless a value was already chosen. If openc3-cosmos-app is not running the variable can
243
+ still be typed in by hand. Discovery classes subclass openc3/discovery/discovery.py and implement discover(), or scan() and match().
244
+ Parameters can include the value of another variable as `${name}`. A variable holding several space separated values passes
245
+ each as a parameter. The discovery reruns when a referenced variable changes, and is skipped when they are all blank.
246
+ COSMOS provides openc3/discovery/serial_discovery.py (lists serial ports, optionally limited to USB VID:PID parameters (the PID can be omitted)
247
+ like `10C4:EA60`), openc3/discovery/hid_discovery.py (lists the serial numbers of USB HID devices, optionally limited by
248
+ Vendor ID and Product ID, and requires the hidapi package on the host), openc3/discovery/zeroconf_discovery.py
249
+ (lists the IP addresses of devices advertising the mDNS service types given as parameters, each optionally followed by
250
+ `|name=glob` or `|property=glob` filters, e.g. `_http._tcp.local.|name=shelly*`) and openc3/discovery/bluetooth_discovery.py
251
+ (lists the addresses of Bluetooth LE devices matching any of the matchers given as parameters, each made of
252
+ `local_name=glob`, `service_uuid=uuid`, `service_data_uuid=uuid`, `manufacturer_id=id` or `manufacturer_data_start=hex` (the start of that manufacturer's data) joined with `|`).
253
+ It also provides openc3/discovery/usb_discovery.py (lists USB devices other than hubs by serial number, or by location like `1-2.3`
254
+ when they have none, matching any of the parameters, each a hex `VID:PID` (the PID can be omitted) or conditions joined with `|`
255
+ from `vid=hex`, `pid=hex`, `class=hex` (the device class or that of any interface, optionally with `/subclass` and `/protocol`,
256
+ e.g. `class=0E` for cameras or `class=FE/03` for USB test instruments), `manufacturer=glob`, `product=glob` and `serial=glob`,
257
+ and requires the pyusb and libusb-package packages on the host), openc3/discovery/ssdp_discovery.py (lists the IP addresses of
258
+ network devices advertising themselves with SSDP / UPnP, matching any of the parameters, each `key=glob` conditions joined with `|`
259
+ where the keys are the search response headers `st`, `usn` and `server` and the device description fields `devicetype`,
260
+ `friendlyname`, `manufacturer`, `manufacturerurl`, `modelname`, `modelnumber`, `modeldescription`, `modelurl`, `serialnumber`, `udn`,
261
+ `upc` and `presentationurl`, e.g. `manufacturer=Sonos*|modelname=Sonos?Era*`) and openc3/discovery/neighbor_discovery.py
262
+ (lists the IP addresses in the host's ARP table, i.e. devices it has recently communicated with, matching any of the parameters,
263
+ each `mac=glob` (hex digits with or without separators, e.g. `mac=00D02D*`), `hostname=glob` (from reverse DNS) or `ip=glob`
264
+ conditions joined with `|`). Globs are case-insensitive. Use `?` for a space in a glob since parameters are separated by spaces.
265
+ A variable can have multiple VARIABLE_DISCOVERY keywords and their results are combined. Each can be followed by
266
+ VARIABLE_DISCOVERY_SET keywords that set other variables when a value it found is selected.
267
+ Discovered values are claimed by the plugin that uses them. Once a plugin is installed, the value it chose
268
+ for a VARIABLE_DISCOVERY variable (for example a serial port) is no longer offered to other plugins
269
+ discovering with the same class on the same bridge, and the dialog notes which plugin is using it.
270
+ The claim is released when the plugin is uninstalled. Upgrading or editing the plugin still offers the values it holds.
271
+ Must follow a VARIABLE definition.
272
+ since: 7.6.0
273
+ example: |
274
+ VARIABLE serial_port /dev/ttyUSB0
275
+ VARIABLE_DISCOVERY openc3/discovery/serial_discovery.py
276
+ VARIABLE controller_serial nil
277
+ VARIABLE_STATE "First controller found" nil
278
+ VARIABLE_DISCOVERY openc3.discovery.hid_discovery 0x054C 0x0CE6
279
+ VARIABLE light_host ""
280
+ VARIABLE_DISCOVERY openc3/discovery/zeroconf_discovery.py _hue._tcp.local.
281
+ parameters:
282
+ - name: Discovery Class Filename or Module
283
+ required: true
284
+ description: Python filename (e.g. openc3/discovery/serial_discovery.py) or module name
285
+ (e.g. openc3.discovery.serial_discovery) of the discovery class, relative to the Python path on the host.
286
+ The class is named after the file, e.g. SerialDiscovery.
287
+ values: .+
288
+ - name: Discovery Parameters
289
+ required: false
290
+ description: Additional parameters are passed to the discovery class constructor
291
+ values: .+
292
+ VARIABLE_DISCOVERY_SET:
293
+ summary: Set another plugin variable when a value found by this discovery is selected
294
+ description: The VARIABLE_DISCOVERY_SET keyword applies to the previously defined VARIABLE_DISCOVERY.
295
+ When the user selects a value in the plugin installation dialog that this discovery found, the named variable
296
+ is set to the given value. This lets one variable configure others based on the kind of device found,
297
+ for example the controller model. If several discoveries find the same value, the first one's sets apply.
298
+ The user can still change the value afterwards. Multiple VARIABLE_DISCOVERY_SET keywords can be used.
299
+ Must follow a VARIABLE_DISCOVERY definition.
300
+ since: 7.6.0
301
+ example: |
302
+ VARIABLE dual_sense_version 5
303
+ VARIABLE_STATE 5 5
304
+ VARIABLE_STATE 4 4
305
+ VARIABLE dual_sense_serial_num None
306
+ VARIABLE_DISCOVERY openc3.discovery.hid_discovery 0x054C 0x05C4
307
+ VARIABLE_DISCOVERY_SET dual_sense_version 4
308
+ VARIABLE_DISCOVERY openc3.discovery.hid_discovery 0x054C 0x0CE6
309
+ VARIABLE_DISCOVERY_SET dual_sense_version 5
310
+ parameters:
311
+ - name: Variable Name
312
+ required: true
313
+ description: Name of the variable to set when a value found by this discovery is selected
314
+ values: .+
315
+ - name: Value
316
+ required: true
317
+ description: Value to set the variable to
29
318
  values: .+
30
319
  VARIABLE_STATE:
31
320
  summary: Add a selectable state for a plugin variable
32
321
  description: The VARIABLE_STATE keyword defines a selectable state for a previously defined VARIABLE.
33
322
  When states are defined for a variable, it renders as a dropdown/combobox in the plugin installation dialog instead of a text field.
34
323
  Users can still type custom values if needed. Multiple VARIABLE_STATE keywords can be used to define multiple states.
324
+ The dropdown is searched by typing words in any order, allowing small typos, with the closest matches first.
325
+ Text left in the field that doesn't name a state is kept as a custom value, unless it was a search that found
326
+ states without one being picked. That is text with spaces, or any such search when the variable's states show, set or
327
+ require other variables (or have VARIABLE_TEXT). Enter picks the closest match for those searches.
35
328
  Must follow a VARIABLE definition.
36
329
  since: 7.0.0
37
330
  example: |
@@ -48,12 +341,216 @@ VARIABLE_STATE:
48
341
  required: true
49
342
  description: The value that will be used when this state is selected
50
343
  values: .+
344
+ VARIABLE_STATE_SHOW:
345
+ summary: Show other plugin variables when this state is selected
346
+ description: The VARIABLE_STATE_SHOW keyword applies to the previously defined VARIABLE_STATE.
347
+ The listed variables are only displayed in the plugin installation dialog when this state is selected.
348
+ Variables listed in any VARIABLE_STATE_SHOW of a variable are hidden unless the selected state lists them,
349
+ or when the controlling variable is itself hidden. Variables never listed by a VARIABLE_STATE_SHOW are always shown. If a custom value is typed that doesn't match a state, all variables are shown.
350
+ Hidden variables keep their current values and are still passed to the plugin.
351
+ Multiple VARIABLE_STATE_SHOW keywords can be used and each can list multiple variables.
352
+ Must follow a VARIABLE_STATE definition.
353
+ since: 7.6.0
354
+ example: |
355
+ VARIABLE interface_type tcp
356
+ VARIABLE_STATE "TCP/IP Client" tcp
357
+ VARIABLE_STATE_SHOW hostname port
358
+ VARIABLE_STATE "Serial" serial
359
+ VARIABLE_STATE_SHOW serial_port baud_rate
360
+ VARIABLE_STATE "Simulated" sim # hostname, port, serial_port, baud_rate all hidden
361
+ VARIABLE hostname 127.0.0.1
362
+ VARIABLE port 8080
363
+ VARIABLE serial_port /dev/ttyUSB0
364
+ VARIABLE baud_rate 115200
365
+ parameters:
366
+ - name: Variable Name
367
+ required: true
368
+ description: Name of a variable to show when this state is selected. Additional variable names can follow.
369
+ values: .+
370
+ VARIABLE_STATE_SET:
371
+ summary: Set the value of another plugin variable when this state is selected
372
+ description: The VARIABLE_STATE_SET keyword applies to the previously defined VARIABLE_STATE.
373
+ When this state is selected in the plugin installation dialog, the named variable is set to the given value.
374
+ The user can still change the value afterwards. If the variable's new value selects a state that has its own
375
+ VARIABLE_STATE_SET keywords, those are applied as well. The VARIABLE_STATE_SET values of the initially selected state are
376
+ applied when the dialog opens, except for variables that already have a value from a previous install.
377
+ Often used together with VARIABLE_STATE_SHOW. Must follow a VARIABLE_STATE definition.
378
+ since: 7.6.0
379
+ example: |
380
+ VARIABLE interface_type tcp
381
+ VARIABLE_STATE "TCP/IP Client" tcp
382
+ VARIABLE_STATE_SHOW port
383
+ VARIABLE_STATE_SET port 8080
384
+ VARIABLE_STATE "Serial" serial
385
+ VARIABLE_STATE_SHOW port baud_rate
386
+ VARIABLE_STATE_SET port /dev/ttyUSB0
387
+ VARIABLE_STATE_SET baud_rate 9600
388
+ VARIABLE port 8080
389
+ VARIABLE baud_rate 115200
390
+ parameters:
391
+ - name: Variable Name
392
+ required: true
393
+ description: Name of the variable to set when this state is selected
394
+ values: .+
395
+ - name: Value
396
+ required: true
397
+ description: Value to set the variable to
398
+ values: .+
399
+ VARIABLE_STATE_DESCRIPTION:
400
+ summary: Describe a VARIABLE_STATE in the plugin installation dialog dropdown
401
+ description: The VARIABLE_STATE_DESCRIPTION keyword adds a line of text below the previously defined VARIABLE_STATE
402
+ in the plugin installation dialog dropdown. The dropdown can be searched by it as well as the state's text.
403
+ Must follow a VARIABLE_STATE definition.
404
+ since: 7.6.0
405
+ example: |
406
+ VARIABLE interface_type tcp
407
+ VARIABLE_STATE "TCP/IP" tcp
408
+ VARIABLE_STATE_DESCRIPTION "Ethernet or Wi-Fi"
409
+ VARIABLE_STATE_ICON mdi-lan
410
+ VARIABLE_STATE Serial serial
411
+ VARIABLE_STATE_DESCRIPTION "RS-232 or USB serial adapter"
412
+ VARIABLE_STATE_ICON mdi-serial-port
413
+ parameters:
414
+ - name: Description
415
+ required: true
416
+ description: Text shown below the state
417
+ values: .+
418
+ VARIABLE_STATE_ICON:
419
+ summary: Show an icon for a VARIABLE_STATE in the plugin installation dialog dropdown
420
+ description: The VARIABLE_STATE_ICON keyword shows an icon beside the previously defined VARIABLE_STATE in the plugin
421
+ installation dialog dropdown. Use a [Material Design Icons](https://pictogrammers.com/library/mdi/) name like
422
+ mdi-lan. Must follow a VARIABLE_STATE definition.
423
+ since: 7.6.0
424
+ example: |
425
+ VARIABLE interface_type tcp
426
+ VARIABLE_STATE "TCP/IP" tcp
427
+ VARIABLE_STATE_ICON mdi-lan
428
+ parameters:
429
+ - name: Icon Name
430
+ required: true
431
+ description: Material Design Icons name, e.g. mdi-lan
432
+ values: .+
433
+ VARIABLE_STATE_REQUIRED:
434
+ summary: Require values for plugin variables while this state is selected
435
+ description: The VARIABLE_STATE_REQUIRED keyword applies to the previously defined VARIABLE_STATE.
436
+ While this state is selected (and its variable is shown) the listed variables are required in the plugin
437
+ installation dialog, like VARIABLE_REQUIRED. Useful when a variable is shown by several states but only some need it.
438
+ Multiple VARIABLE_STATE_REQUIRED keywords can be used. Must follow a VARIABLE_STATE definition.
439
+ since: 7.6.0
440
+ example: |
441
+ VARIABLE interface_type tcp
442
+ VARIABLE_STATE "TCP/IP Client" tcp
443
+ VARIABLE_STATE_SHOW hostname port
444
+ VARIABLE_STATE_REQUIRED hostname
445
+ VARIABLE_STATE "TCP/IP Server" server
446
+ VARIABLE_STATE_SHOW hostname port
447
+ VARIABLE hostname ""
448
+ VARIABLE port 8080
449
+ parameters:
450
+ - name: Variable Name
451
+ required: true
452
+ description: Name of a variable required while this state is selected. Multiple names can be given.
453
+ values: .+
454
+ PLUGIN_TEXT_START:
455
+ summary: Start a block of markdown text shown in the plugin installation dialog
456
+ description: The PLUGIN_TEXT_START keyword begins a block of Markdown that is displayed at the top of the
457
+ Variables tab in the plugin installation dialog. Use it to explain how to configure the plugin, for example
458
+ which VARIABLE_STATE to choose for your hardware. All lines up to PLUGIN_TEXT_END are taken as-is
459
+ (keywords, quotes and markdown headings are not processed as plugin.txt syntax) and the common leading indentation is removed.
460
+ ERB is not evaluated in the text, but avoid ERB tags since the whole plugin.txt is still processed with ERB at install.
461
+ Multiple PLUGIN_TEXT_START / PLUGIN_TEXT_END blocks are joined together. The text can be hidden in the dialog,
462
+ which is remembered for the plugin.
463
+ since: 7.6.0
464
+ example: |
465
+ PLUGIN_TEXT_START
466
+ # Power Supply Plugin
467
+ Supports both **TCP/IP** and **Serial** power supplies.
468
+ 1. Choose the `interface_type` for your hardware
469
+ 2. Fill in the connection settings that appear
470
+ PLUGIN_TEXT_END
471
+ PLUGIN_TEXT_END:
472
+ summary: Complete a block of markdown text started by PLUGIN_TEXT_START
473
+ since: 7.6.0
474
+ VARIABLE_TEXT_START:
475
+ summary: Start a block of markdown text shown when a VARIABLE_STATE is selected
476
+ description: The VARIABLE_TEXT_START keyword begins a block of Markdown that belongs to the previous VARIABLE_STATE.
477
+ While that state is selected (and its variable is shown) the text is displayed in the plugin installation dialog
478
+ below the PLUGIN_TEXT (or beside the variables on wide screens), for directions specific to the choice made. The text of each variable's selected state is
479
+ shown in the order the variables are defined. The lines up to VARIABLE_TEXT_END are taken as-is like PLUGIN_TEXT,
480
+ and multiple blocks for the same state are joined together. Must follow a VARIABLE_STATE definition.
481
+ since: 7.6.0
482
+ example: |
483
+ VARIABLE interface_type tcp
484
+ VARIABLE_STATE "TCP/IP" tcp
485
+ VARIABLE_STATE_SHOW hostname port
486
+ VARIABLE_TEXT_START
487
+ Enter the power supply's **hostname** and **port** from its network settings menu.
488
+ VARIABLE_TEXT_END
489
+ VARIABLE_STATE Serial serial
490
+ VARIABLE_STATE_SHOW serial_port
491
+ VARIABLE_TEXT_START
492
+ Connect the power supply's RS-232 port and select the **serial_port**.
493
+ VARIABLE_TEXT_END
494
+ VARIABLE hostname 127.0.0.1
495
+ VARIABLE port 8080
496
+ VARIABLE serial_port /dev/ttyUSB0
497
+ VARIABLE_TEXT_END:
498
+ summary: Complete a block of markdown text started by VARIABLE_TEXT_START
499
+ since: 7.6.0
51
500
  NEEDS_DEPENDENCIES:
52
- summary: Indicates the plugin needs dependencies and sets the GEM_HOME environment variable
53
- description: If the plugin has a top level lib folder or lists runtime dependencies in the gemspec,
54
- NEEDS_DEPENDENCIES is effectively already set. Note that in Enterprise, having
501
+ summary: Indicates the plugin needs dependencies and sets up the Ruby and Python environment of its microservices
502
+ description: If the plugin has a top level lib folder, lists runtime dependencies in the gemspec,
503
+ or has a pyproject.toml or (deprecated) requirements.txt, NEEDS_DEPENDENCIES is effectively already set.
504
+ The keyword sets the GEM_HOME environment variable for the plugin's microservices. It also
505
+ sets up their Python environment. A plugin with a per-plugin venv gets the venv's packages
506
+ first on PYTHONPATH, and a plugin without one uses the shared /gems/python_packages folder.
507
+ Without NEEDS_DEPENDENCIES, the plugin's Python microservices get no PYTHONPATH and can only
508
+ import the packages in the COSMOS image. Note that in Enterprise, having
55
509
  NEEDS_DEPENDENCIES adds the NFS volume mount to the Kubernetes pod.
56
510
  since: 5.5.0
511
+ PRE_INSTALL_SCRIPT:
512
+ summary: Run a script in the plugin before the plugin is installed
513
+ description: The PRE_INSTALL_SCRIPT keyword runs a Ruby (.rb) or Python (.py) script from the plugin after its
514
+ files (including any VARIABLE_FILE uploads) and Python packages are in place, but before any target, interface
515
+ or other part of the plugin is installed, so it can generate or change those files. It runs in a copy of the
516
+ plugin's files with that folder as its working directory. Python scripts use the plugin's Python packages and
517
+ Ruby scripts can require the plugin's lib folders.
518
+ The script's environment has OPENC3_SCOPE, OPENC3_PLUGIN_NAME, OPENC3_PLUGIN_PATH (the plugin's folder) and
519
+ OPENC3_PLUGIN_VARIABLES (the plugin variables as a JSON object). Validating a plugin or checking an upgrade
520
+ also runs it, with OPENC3_PLUGIN_DRY_RUN set to true, so it should only change files in the plugin's folder
521
+ then. Its output is logged, and the install fails if it exits with an error or runs longer than 10 minutes.
522
+ Multiple PRE_INSTALL_SCRIPTs run in the order they appear, wherever they are in plugin.txt.
523
+ since: 7.6.0
524
+ example: |
525
+ PRE_INSTALL_SCRIPT scripts/generate_target.py <%%= icd %>
526
+ parameters:
527
+ - name: Script Path
528
+ required: true
529
+ description: Path of the .rb or .py script, relative to the top of the plugin
530
+ values: .+
531
+ - name: Arguments
532
+ required: false
533
+ description: Arguments passed to the script
534
+ values: .+
535
+ POST_INSTALL_SCRIPT:
536
+ summary: Run a script in the plugin after the plugin is installed
537
+ description: The POST_INSTALL_SCRIPT keyword runs a Ruby (.rb) or Python (.py) script from the plugin after
538
+ every part of the plugin has been installed, for example to load initial settings. It runs the same way as a
539
+ PRE_INSTALL_SCRIPT, with the same environment, but not when validating a plugin or checking an upgrade.
540
+ The install fails if it exits with an error or runs longer than 10 minutes.
541
+ Multiple POST_INSTALL_SCRIPTs run in the order they appear, wherever they are in plugin.txt.
542
+ since: 7.6.0
543
+ example: |
544
+ POST_INSTALL_SCRIPT scripts/initialize.rb
545
+ parameters:
546
+ - name: Script Path
547
+ required: true
548
+ description: Path of the .rb or .py script, relative to the top of the plugin
549
+ values: .+
550
+ - name: Arguments
551
+ required: false
552
+ description: Arguments passed to the script
553
+ values: .+
57
554
  INTERFACE:
58
555
  modifiers:
59
556
  <%= MetaConfigParser.load('interface_modifiers.yaml').to_meta_config_yaml(4) %>
@@ -124,6 +621,17 @@ WIDGET:
124
621
  required: false
125
622
  description: Regex to match against filenames. If match, then no ERB processing
126
623
  values: .+
624
+ PANEL:
625
+ summary: Define a custom Dashboards panel type
626
+ example: PANEL BATTERY
627
+ description: Defines a custom panel type that can be used in Dashboards, alongside the built-in panel types.
628
+ since: 7.6.0
629
+ parameters:
630
+ - name: Panel Type
631
+ description: The panel type, used in dashboard files as `PANEL <Panel Type> ...`. It is also used to build a path to the panel implementation. For example, `PANEL BATTERY` will find the as-built file tools/panels/BATTERY/BATTERY.js. Only letters, numbers, '_' and '-' are allowed. See the [Custom Panels](../guides/custom-panels.md)
632
+ guide for more details.
633
+ required: true
634
+ values: .+
127
635
  SCRIPT_ENGINE:
128
636
  summary: Define a script engine to add language support to Script Runner
129
637
  example: SCRIPT_ENGINE .print print_script_engine.py
@@ -128,6 +128,23 @@ BORDERCOLOR:
128
128
  LABEL "Label 2"
129
129
  END
130
130
  SETTING BORDERCOLOR 155 50 155
131
+ TEXTALIGN:
132
+ summary: Aligns the text within a widget
133
+ description: Sets the CSS text-align property. When applied to a layout
134
+ widget like VERTICAL it is inherited by the widgets inside it, which also
135
+ aligns buttons and other inline widgets.
136
+ parameters:
137
+ - name: Alignment
138
+ required: true
139
+ description: How to align the text
140
+ values: ["LEFT", "CENTER", "RIGHT"]
141
+ example: |
142
+ LABEL "Centered Text"
143
+ SETTING TEXTALIGN CENTER
144
+ VERTICAL
145
+ SETTING TEXTALIGN CENTER
146
+ BUTTON 'Centered' "api.cmd('INST ABORT')"
147
+ END
131
148
  RAW:
132
149
  summary: Apply a raw CSS stylesheet key and value
133
150
  parameters:
@@ -125,6 +125,20 @@ TARGET:
125
125
  required: true
126
126
  description: Number of seconds between flushing rows to the TSDB (default = 5.0)
127
127
  values: .+
128
+ DECOM_UPDATE_INTERVAL:
129
+ summary: Number of seconds the decom microservice waits before writing decommutated packets to Redis
130
+ description:
131
+ The decom microservice queues the decommutated packet stream and Current Value Table (CVT) writes
132
+ and flushes them to Redis in a single pipelined batch every update interval. Raising this value
133
+ reduces processor utilization for high rate data at the cost of slower updates. Lowering it gives
134
+ faster updates but increases processor utilization. Setting it to 0 disables queuing and writes
135
+ every packet to Redis immediately. This is the decom equivalent of the interface UPDATE_INTERVAL option.
136
+ since: 7.6.0
137
+ parameters:
138
+ - name: Interval
139
+ required: true
140
+ description: Number of seconds between writes to Redis (default = 0.1, 0 = write immediately)
141
+ values: .+
128
142
  LOG_RETAIN_TIME:
129
143
  summary: How long to keep all regular telemetry logs in seconds.
130
144
  parameters:
@@ -151,6 +165,30 @@ TARGET:
151
165
  required: true
152
166
  description: The target microservice type. Must be one of DECOM, COMMANDLOG, PACKETLOG, or CLEANUP
153
167
  values: .*
168
+ MICROSERVICE_GROUP:
169
+ summary: Runs the target's microservices in processes shared with other targets
170
+ description:
171
+ By default every target runs its decom, logging, and cleanup microservices in
172
+ its own process and its TSDB microservice in another. Targets that declare the
173
+ same group name keep their own microservices but run them as threads in two
174
+ processes shared by the whole group, one for Ruby and one for Python, which uses
175
+ much less memory when there are many targets. Targets from different plugins can
176
+ share a group. All targets in a group must use the same SHARD and DB_SHARD, and
177
+ Python targets in a group must come from one plugin. The decoms in each process
178
+ share one write queue that flushes at the fastest DECOM_UPDATE_INTERVAL of its
179
+ targets. Adding or removing a target
180
+ restarts the group's processes. Cannot be combined with TARGET_MICROSERVICE.
181
+ since: 7.6.0
182
+ parameters:
183
+ - name: Group Name
184
+ required: true
185
+ description: Name of the microservice group
186
+ values: .+
187
+ example: |
188
+ TARGET THERMAL THERMAL
189
+ MICROSERVICE_GROUP HOUSEKEEPING
190
+ TARGET POWER POWER
191
+ MICROSERVICE_GROUP HOUSEKEEPING
154
192
  PACKET:
155
193
  summary: Packet Name to allocate to the current TARGET_MICROSERVICE.
156
194
  since: 5.2.0
@@ -208,3 +246,18 @@ TARGET:
208
246
  values: ^(PROCESS|LOG|DISABLE)$
209
247
  example: |
210
248
  STORED_LIMITS_MODE DISABLE
249
+ SHARED_RESOURCE:
250
+ summary: Only accept commands to this target in the scope where its shared resource is active
251
+ description:
252
+ Commands sent to the target in a scope where the shared resource is not active are rejected.
253
+ The target's own microservices (decom, logging, cleanup) keep running in every scope so telemetry
254
+ screens, build_cmd, inject_tlm, and historical data still work.
255
+ See [Shared Resources](plugins#shared-resources).
256
+ since: 7.6.0
257
+ parameters:
258
+ - name: Shared Resource Name
259
+ required: true
260
+ description: Name of the shared resource. Must only contain letters, numbers, and single underscores.
261
+ values: .+
262
+ example: |
263
+ SHARED_RESOURCE THERMAL_VAC_CHAMBER