openc3 5.5.0 → 5.5.2.pre.beta0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of openc3 might be problematic. Click here for more details.

Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/data/config/_canvas_values.yaml +42 -0
  3. data/data/config/_graph_params.yaml +25 -0
  4. data/data/config/command.yaml +8 -3
  5. data/data/config/command_modifiers.yaml +26 -21
  6. data/data/config/graph_settings.yaml +54 -0
  7. data/data/config/interface_modifiers.yaml +8 -2
  8. data/data/config/item_modifiers.yaml +2 -2
  9. data/data/config/microservice.yaml +8 -1
  10. data/data/config/plugins.yaml +1 -0
  11. data/data/config/screen.yaml +45 -50
  12. data/data/config/settings.yaml +144 -0
  13. data/data/config/target.yaml +4 -0
  14. data/data/config/telemetry.yaml +15 -13
  15. data/data/config/telemetry_modifiers.yaml +9 -4
  16. data/data/config/tool.yaml +1 -0
  17. data/data/config/widgets.yaml +1745 -1493
  18. data/lib/openc3/api/settings_api.rb +12 -18
  19. data/lib/openc3/models/interface_model.rb +5 -2
  20. data/lib/openc3/models/microservice_model.rb +6 -5
  21. data/lib/openc3/models/plugin_model.rb +3 -1
  22. data/lib/openc3/models/scope_model.rb +5 -3
  23. data/lib/openc3/models/{settings_model.rb → setting_model.rb} +1 -1
  24. data/lib/openc3/models/tool_config_model.rb +6 -2
  25. data/lib/openc3/operators/microservice_operator.rb +2 -2
  26. data/lib/openc3/script/api_shared.rb +4 -0
  27. data/lib/openc3/utilities/authentication.rb +1 -1
  28. data/lib/openc3/utilities/aws_bucket.rb +6 -6
  29. data/lib/openc3/utilities/bucket.rb +1 -1
  30. data/lib/openc3/utilities/local_mode.rb +62 -7
  31. data/lib/openc3/utilities/redis_secrets.rb +4 -4
  32. data/lib/openc3/utilities/secrets.rb +5 -5
  33. data/lib/openc3/version.rb +6 -6
  34. data/templates/target/targets/TARGET/lib/target.rb +1 -1
  35. data/templates/target/targets/TARGET/screens/status.txt +1 -2
  36. metadata +9 -6
  37. data/lib/openc3/models/traefik_model.rb +0 -47
@@ -0,0 +1,144 @@
1
+ WIDTH:
2
+ summary: Sets the widget width
3
+ description: WIDTH supports [css units](https://www.w3schools.com/cssref/css_units.php) with the default (no units) of px (pixels)
4
+ parameters:
5
+ - name: Width
6
+ required: true
7
+ description: Width in pixels or explicitly declared with units
8
+ values: .+
9
+ example: |
10
+ LABEL "THIS IS A TEST"
11
+ SETTING WIDTH 50
12
+ LABEL "THIS IS A TEST"
13
+ SETTING WIDTH 20em
14
+ HEIGHT:
15
+ summary: Sets the widget height
16
+ description: HEIGHT supports [css units](https://www.w3schools.com/cssref/css_units.php) with the default (no units) of px (pixels)
17
+ parameters:
18
+ - name: Height
19
+ required: true
20
+ description: Height in pixels or explicitly declared with units
21
+ values: .+
22
+ example: |
23
+ LABEL "THIS IS A TEST"
24
+ SETTING BACKCOLOR BLUE
25
+ SETTING HEIGHT 50
26
+ LABEL "THIS IS A TEST"
27
+ SETTING BACKCOLOR GREY
28
+ SETTING HEIGHT 2em
29
+ MARGIN:
30
+ summary: Sets the widget margin
31
+ description: MARGIN supports [css units](https://www.w3schools.com/cssref/css_units.php) with the default (no units) of px (pixels)
32
+ parameters:
33
+ - name: Size
34
+ required: true
35
+ description: Size in pixels or explicitly declared with units
36
+ values: .+
37
+ example: |
38
+ LABEL "THIS IS A TEST"
39
+ SETTING BACKCOLOR BLUE
40
+ LABEL "THIS IS A TEST"
41
+ SETTING BACKCOLOR GREY
42
+ SETTING MARGIN 10
43
+ LABEL "THIS IS A TEST"
44
+ SETTING BACKCOLOR GREEN
45
+ PADDING:
46
+ summary: Sets the widget padding
47
+ description: PADDING supports [css units](https://www.w3schools.com/cssref/css_units.php) with the default (no units) of px (pixels)
48
+ parameters:
49
+ - name: Size
50
+ required: true
51
+ description: Size in pixels or explicitly declared with units
52
+ values: .+
53
+ example: |
54
+ LABEL "THIS IS A TEST"
55
+ SETTING BACKCOLOR BLUE
56
+ LABEL "THIS IS A TEST"
57
+ SETTING BACKCOLOR GREY
58
+ SETTING PADDING 10
59
+ LABEL "THIS IS A TEST"
60
+ SETTING BACKCOLOR GREEN
61
+ BACKCOLOR:
62
+ summary: The BACKCOLOR setting sets the background color for a widget
63
+ parameters:
64
+ - name: Color name or Red value
65
+ required: true
66
+ description: Common name for the color, e.g. 'black', 'red', etc.
67
+ Alternatively if two more parameters are passed this is the
68
+ Red value of the RGB value
69
+ values: .+
70
+ - name: Green value
71
+ required: false
72
+ description: Green value of the RGB value
73
+ values: .+
74
+ - name: Blue value
75
+ required: false
76
+ description: Blue value of the RGB value
77
+ values: .+
78
+ example: |
79
+ LABEL "THIS IS A TEST"
80
+ SETTING BACKCOLOR red
81
+ LABEL "THIS IS A TEST"
82
+ SETTING BACKCOLOR 155 50 155
83
+ TEXTCOLOR:
84
+ summary: The TEXTCOLOR setting sets the text color for a widget
85
+ parameters:
86
+ - name: Color name or Red value
87
+ required: true
88
+ description: Common name for the color, e.g. 'black', 'red', etc.
89
+ Alternatively if two more parameters are passed this is the
90
+ Red value of the RGB value
91
+ values: .+
92
+ - name: Green value
93
+ required: false
94
+ description: Green value of the RGB value
95
+ values: .+
96
+ - name: Blue value
97
+ required: false
98
+ description: Blue value of the RGB value
99
+ values: .+
100
+ example: |
101
+ LABEL "THIS IS A TEST"
102
+ SETTING TEXTCOLOR red
103
+ LABEL "THIS IS A TEST"
104
+ SETTING TEXTCOLOR 155 50 155
105
+ BORDERCOLOR:
106
+ summary: The BORDERCOLOR setting sets the border color for a layout widget
107
+ parameters:
108
+ - name: Color name or Red value
109
+ required: true
110
+ description: Common name for the color, e.g. 'black', 'red', etc.
111
+ Alternatively if two more parameters are passed this is the
112
+ Red value of the RGB value
113
+ values: .+
114
+ - name: Green value
115
+ required: false
116
+ description: Green value of the RGB value
117
+ values: .+
118
+ - name: Blue value
119
+ required: false
120
+ description: Blue value of the RGB value
121
+ values: .+
122
+ example: |
123
+ HORIZONTAL
124
+ LABEL "Label 1"
125
+ END
126
+ SETTING BORDERCOLOR red
127
+ VERTICAL
128
+ LABEL "Label 2"
129
+ END
130
+ SETTING BORDERCOLOR 155 50 155
131
+ RAW:
132
+ summary: Apply a raw CSS stylesheet key and value
133
+ parameters:
134
+ - name: Key
135
+ required: true
136
+ description: CSS key like font-size, max-width, etc
137
+ values: .+
138
+ - name: Value
139
+ required: true
140
+ description: CSS Value
141
+ values: .+
142
+ example: |
143
+ LABEL "Label 1"
144
+ SETTING RAW font-size 30px
@@ -16,6 +16,7 @@ TARGET:
16
16
  modifiers:
17
17
  CMD_BUFFER_DEPTH:
18
18
  summary: Number of commands to buffer to ensure logged in order
19
+ since: 5.2.0
19
20
  parameters:
20
21
  - name: Buffer Depth
21
22
  required: true
@@ -65,6 +66,7 @@ TARGET:
65
66
  values: \d+
66
67
  TLM_BUFFER_DEPTH:
67
68
  summary: Number of telemetry packets to buffer to ensure logged in order
69
+ since: 5.2.0
68
70
  parameters:
69
71
  - name: Buffer Depth
70
72
  required: true
@@ -160,6 +162,7 @@ TARGET:
160
162
  Can be used to give more resources to processing that is falling behind.
161
163
  If defined multiple times for the same type, will create multiple processes.
162
164
  Each process can be given specific packets to process with the PACKET keyword.
165
+ since: 5.2.0
163
166
  parameters:
164
167
  - name: Type
165
168
  required: true
@@ -168,6 +171,7 @@ TARGET:
168
171
  values: .*
169
172
  PACKET:
170
173
  summary: Packet Name to allocate to the current TARGET_MICROSERVICE.
174
+ since: 5.2.0
171
175
  parameters:
172
176
  - name: Packet Name
173
177
  required: true
@@ -5,7 +5,6 @@ TELEMETRY:
5
5
  modifiers:
6
6
  <%= MetaConfigParser.load('telemetry_modifiers.yaml').to_meta_config_yaml(4) %>
7
7
  summary: Defines a new telemetry packet
8
- example: TELEMETRY SYSTEM LIMITS_CHANGE BIG_ENDIAN "OpenC3 limits change"
9
8
  parameters:
10
9
  - name: Target
11
10
  required: true
@@ -25,6 +24,7 @@ TELEMETRY:
25
24
  required: false
26
25
  description: Description of this telemetry packet which must be enclosed with quotes
27
26
  values: '[''"].*[''"]'
27
+ example: TELEMETRY INST HEALTH_STATUS BIG_ENDIAN "Instrument health and status"
28
28
  SELECT_TELEMETRY:
29
29
  # prettier-ignore
30
30
  modifiers:
@@ -32,17 +32,22 @@ SELECT_TELEMETRY:
32
32
  summary: Selects an existing telemetry packet for editing
33
33
  description:
34
34
  Typically used in a separate configuration file from where the original
35
- telemetry is defined to override or add to the existing telemetry definition
36
- example: SELECT_TELEMETRY SYSTEM LIMITS_CHANGE
35
+ telemetry is defined to override or add to the existing telemetry definition.
36
+ Must be used in conjunction with SELECT_ITEM to change an individual item.
37
37
  parameters:
38
38
  - name: Target Name
39
39
  required: true
40
40
  description: Name of the target this telemetry packet is associated with
41
41
  values: .+
42
- - name: Command Name
42
+ - name: Packet Name
43
43
  required: true
44
44
  description: Name of the telemetry packet to select
45
45
  values: .+
46
+ example: |
47
+ SELECT_TELEMETRY INST HEALTH_STATUS
48
+ SELECT_ITEM TEMP1
49
+ # Define limits for this item, overrides or replaces any existing
50
+ LIMITS DEFAULT 3 ENABLED -90.0 -80.0 80.0 90.0 -20.0 20.0
46
51
  LIMITS_GROUP:
47
52
  summary: Defines a group of related limits Items
48
53
  description:
@@ -63,15 +68,7 @@ LIMITS_GROUP_ITEM:
63
68
  summary: Adds the specified telemetry item to the last defined LIMITS_GROUP
64
69
  description:
65
70
  Limits group information is typically kept in a separate configuration
66
- file in the config/TARGET/cmd_tlm folder named limits_groups.txt. If you want to
67
- configure multiple target items in a particular group you should put this information
68
- in the config/SYSTEM/cmd_tlm/limits_groups.txt file. The SYSTEM target is processed
69
- last and contains information that crosses target boundaries.
70
- example: |
71
- LIMITS_GROUP SUBSYSTEM
72
- LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP1
73
- LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP2
74
- LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP3
71
+ file in the config/TARGET/cmd_tlm folder named limits_groups.txt.
75
72
  parameters:
76
73
  - name: Target Name
77
74
  required: true
@@ -85,3 +82,8 @@ LIMITS_GROUP_ITEM:
85
82
  required: true
86
83
  description: Name of the telemetry item to add to the group
87
84
  values: .+
85
+ example: |
86
+ LIMITS_GROUP SUBSYSTEM
87
+ LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP1
88
+ LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP2
89
+ LIMITS_GROUP_ITEM INST HEALTH_STATUS TEMP3
@@ -91,9 +91,14 @@ SELECT_ITEM:
91
91
  modifiers:
92
92
  <%= MetaConfigParser.load('item_modifiers.yaml').to_meta_config_yaml(4) %>
93
93
  summary: Selects an existing telemetry item for editing
94
+ description: Must be used in conjunction with SELECT_TELEMETRY to first select
95
+ the packet. Typically used to override generated values or make specific changes
96
+ to telemetry that only affect a particular instance of a target used multiple times.
94
97
  example: |
95
- SELECT_TELEMETRY SYSTEM LIMITS_CHANGE
96
- SELECT_ITEM ITEM
98
+ SELECT_TELEMETRY INST HEALTH_STATUS
99
+ SELECT_ITEM TEMP1
100
+ # Define limits for this item, overrides or replaces any existing
101
+ LIMITS DEFAULT 3 ENABLED -90.0 -80.0 80.0 90.0 -20.0 20.0
97
102
  parameters:
98
103
  - name: Item
99
104
  required: true
@@ -106,8 +111,8 @@ DELETE_ITEM:
106
111
  will be a "hole" in the packet where the data is not accessible. You can
107
112
  use SELECT_TELEMETRY and then ITEM to define a new item.
108
113
  example: |
109
- SELECT_TELEMETRY SYSTEM LIMITS_CHANGE
110
- DELETE_ITEM ITEM
114
+ SELECT_TELEMETRY INST HEALTH_STATUS
115
+ DELETE_ITEM TEMP4
111
116
  since: 4.4.1
112
117
  parameters:
113
118
  - name: Item
@@ -64,6 +64,7 @@ TOOL:
64
64
  POSITION:
65
65
  summary: Position of the tool in the nav bar
66
66
  description: Position of the tool as an integer starting at 1. Tools without a position are appended to the end as they are installed.
67
+ since: 5.0.8
67
68
  parameters:
68
69
  - name: Position
69
70
  required: true