-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathwidgets.yaml
More file actions
1893 lines (1888 loc) · 70 KB
/
widgets.yaml
File metadata and controls
1893 lines (1888 loc) · 70 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
Layout Widgets:
description: Layout widgets are used to position other widgets on the screen.
For example, the HORIZONTAL layout widget places the widgets it encapsulates horizontally on the screen.
collection:
VERTICAL:
summary: Places the widgets it encapsulates vertically
description:
The screen defaults to a vertical layout, so if no layout widgets
are specified, all widgets will be automatically placed within a VERTICAL
layout widget. The VERTICAL widget sizes itself to fit its contents.
parameters:
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
VERTICAL 5px
LABEL "TEST"
LABEL "SCREEN"
END
VERTICALBOX:
summary: Places the widgets it encapsulates vertically inside a thin border
description: The VERTICALBOX widget sizes itself
to fit its contents vertically and to fit the screen horizontally
parameters:
- name: Title
required: false
description: Text to place within the border to label the box
values: .*
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
VERTICALBOX Info
SUBSETTING 1 RAW border "1px dashed green"
LABEL "TEST"
LABEL "SCREEN"
END
HORIZONTAL:
summary: Places the widgets it encapsulates horizontally
description: The HORIZONTAL widget sizes itself to fit its contents
parameters:
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
HORIZONTAL 100
LABEL "TEST"
LABEL "SCREEN"
END
HORIZONTALBOX:
summary: Places the widgets it encapsulates horizontally inside a thin border
description: The HORIZONTALBOX widget sizes itself to fit its contents
parameters:
- name: Title
required: false
description: Text to place within the border to label the box
values: .*
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
HORIZONTALBOX Info 10
SUBSETTING 0 RAW text-align CENTER
SUBSETTING 1 RAW border "1px solid blue"
LABEL "TEST"
LABEL "SCREEN"
END
MATRIXBYCOLUMNS:
summary: Places the widgets into a table-like matrix
description: The MATRIXBYCOLUMNS widget sizes itself to fit its contents
parameters:
- name: Columns
required: true
description: The number of columns to create
values: .*
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
MATRIXBYCOLUMNS 3 10
LABEL "COL 1"
LABEL "COL 2"
LABEL "COL 3"
LABEL "100"
LABEL "200"
LABEL "300"
END
SCROLLWINDOW:
summary: Places the widgets inside of it into a scrollable area
description: The SCROLLWINDOW widget sizes itself to fit the screen in which it is contained
parameters:
- name: Height
required: false
description: Maximum height of the scroll window in pixels (default = 200)
values: .*
- name: Margin
required: false
description: Margin between widgets (default = 0px)
values: .*
example: |
SCROLLWINDOW 100 10
VERTICAL
LABEL "100"
LABEL "200"
LABEL "300"
LABEL "400"
LABEL "500"
LABEL "600"
LABEL "700"
LABEL "800"
LABEL "900"
END
END
TABBOOK:
summary: Creates a tabbed area in which to place TABITEM widgets
TABITEM:
summary: Creates a VERTICAL layout tab into which to place widgets
parameters:
- name: Tab text
required: true
description: Text to display in the tab
values: .*
example: |
TABBOOK
TABITEM "Tab 1"
LABEL "100"
LABEL "200"
END
TABITEM "Tab 2"
LABEL "300"
LABEL "400"
END
END
IFRAME:
summary: Open external tools in an Iframe within OpenC3
parameters:
- name: URL
required: true
description: The path to the page to display in the iframe
values: .*
- name: Width
required: false
description: Width of the widget
values: .*
- name: Height
required: false
description: Height of the widget
values: .*
example: |
IFRAME https://openc3.com 900 450
Decoration Widgets:
description:
Decoration widgets are used to enhance the appearance of the screen.
They do not respond to input, nor does the output vary with telemetry.
collection:
LABEL:
summary: Displays text on the screen
description: Generally, label widgets contain a telemetry mnemonic and are placed next to the telemetry VALUE widget.
parameters:
- name: Text
required: true
description: Text to display on the label
values: .*
example: |
LABEL "Note: This is only a warning"
HORIZONTALLINE:
summary: Displays a horizontal line on the screen that can be used as a separator
since: 5.5.1
example: |
LABEL Over
HORIZONTALLINE
LABEL Under
TITLE:
summary: Displays a large centered title on the screen
parameters:
- name: Text
required: true
description: Text to display
values: .*
example: |
TITLE "Title"
HORIZONTALLINE
LABEL "Label"
SPACER:
summary: Places a fixed size spacer in between widgets
parameters:
- name: Width
required: true
description: Width of the spacer in pixels
values: .*
- name: Height
required: true
description: Height of the spacer in pixels
values: .*
example: |
VERTICAL 3
LABEL "Spacer below"
SPACER 0 100
LABEL "Spacer above"
END
FILEDISPLAY:
summary: Displays the contents of a target file with syntax highlighting
since: 6.10.3
parameters:
- name: File path
required: true
description: Path to the file relative to the target folder (e.g. "INST/procedures/file.rb")
values: .+
- name: Width
required: false
description: Width of the widget in pixels (default = 600)
values: \d+
- name: Height
required: false
description: Height of the widget in pixels (default = 300)
values: \d+
example: |
FILEDISPLAY "INST/data/sample.json" 400 200
Telemetry Widgets:
description: Telemetry widgets are used to display telemetry values.
The first parameters to each of these widgets is a telemetry mnemonic.
Depending on the type and purpose of the telemetry item, the screen designer
may select from a wide selection of widgets to display the value in the most useful format.
collection:
ARRAY:
summary: Displays ARRAY data organized into rows and space separated
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Width
required: false
description: Width of the widget (default = 200)
values: .*
- name: Height
required: false
description: Height of the widget (default = 100)
values: .*
- name: Format string
required: false
description: Format string applied to each array item (default = nil)
values: .*
- name: Items per row
required: false
description: Number of array items per row (default = 4)
values: .*
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
example: |
ARRAY INST HEALTH_STATUS ARY 250 80 "0x%x" 6 FORMATTED
ARRAY INST HEALTH_STATUS ARY2 200 100 nil 4 WITH_UNITS
ARRAYPLOT:
summary: Plot an array of values.
description:
The item can either be a simple array or a 2D array of x values and y values, e.g. [[x1, x2, x3], [y1, y2, y3]].
If the X_AXIS setting is not specified, the X axis starts with 0 and increments by 1.
If the X_AXIS setting is used the x values of a 2D array will be ignored.
settings:
TITLE:
summary: Title of the plot
parameters:
- name: Title
required: true
description: Title of the plot
values: .+
X_AXIS:
summary: Define the x-axis parameters for the plot
parameters:
- name: Start
required: true
description: Start value for the x-axis
values: .+
- name: Step
required: true
description: Step value for the x-axis
values: .+
# Inject the graph settings
<%= MetaConfigParser.load('graph_settings.yaml').to_meta_config_yaml(8) %>
example: |
ARRAYPLOT
SETTING TITLE "Array Data"
SETTING ITEM INST HEALTH_STATUS ARY
SETTING ITEM INST HEALTH_STATUS ARY2
SETTING SIZE 600 400
SETTING X_AXIS 10 10
BLOCK:
summary: Displays BLOCK data organized into rows and space separated
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Width
required: false
description: Width of the widget (default = 200)
values: .*
- name: Height
required: false
description: Height of the widget (default = 100)
values: .*
- name: Format string
required: false
description: Format string applied to each array item (default = nil)
values: .*
- name: Bytes per word
required: false
description: Number of bytes per word (default = 4)
values: .*
- name: Words per row
required: false
description: Number of words per row (default = 4
values: .*
- name: Address format
required: false
description:
Format for the address printed at the beginning of each line
(default = nil which means do not print an address)
values: .*
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
example: |
BLOCK INST IMAGE IMAGE 620 200 "%02X" 4 4 "0x%08X:"
# FORMATFONTVALUE:
# summary: Displays a box with a value printed inside
# that is formatted by the specified string rather than by a format string given
# in the telemetry definition files. Additionally, this widget can use a specified
# font. The white portion of the box darkens to gray while the value remains
# stagnant, then brightens to white each time the value changes. Additionally
# the value is colored based on the items limits state (Red for example if it is out of limits).
# parameters:
# - name: Target name
# required: true
# description: The target name
# values: .+
# - name: Packet name
# required: true
# description: The packet name
# values: .+
# - name: Item name
# required: true
# description: The item name
# values: .+
# - name: Format string
# required: false
# description: Printf style format string to apply to the telemetry item
# values: .*
# - name: Value type
# required: false
# description: The type of the value to display. Default is CONVERTED.
# values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
# - name: Number of characters
# required: false
# description: The number of characters wide to make the value box (default = 12)
# values: .*
# - name: Font name
# required: false
# description: The font to use. (default = arial)
# values: .*
# - name: Font size
# required: false
# description: The font size. (default = 100)
# values: .*
# example: |
# FORMATFONTVALUE INST LATEST TIMESEC %012u CONVERTED 12 arial 30
FORMATVALUE:
summary: Displays a box with a formatted value
description:
Data is formatted by the specified string rather than by a format string given in
the telemetry definition files. The white portion of the box darkens to gray
while the value remains stagnant, then brightens to white each time the value
changes. Additionally the value is colored based on the items limits state
(Red for example if it is out of limits).
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Format string
required: false
description: Printf style format string to apply to the telemetry item
values: .*
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
example: |
FORMATVALUE INST LATEST TIMESEC %012u CONVERTED 20
FORMATVALUE INST LATEST TEMP1 %.2f CONVERTED 20
LABELLED:
summary: Displays a LABEL followed by a LED
description: See the LED widget for more information
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Width
required: false
description: Width of the LED circle (default = 15)
values: .*
- name: Height
required: false
description: Height of the LED circle (default = 15)
values: .*
- name: Justification
required: false
description: How to justify the label and LED together. The default of
'SPLIT' aligns the label to the left and the LED to the right with any
additional space going between them. 'CENTER' pushes the label and LED
together with any additional space to the left and right. 'LEFT' or 'RIGHT'
pushes them to the respective side with the space going on the opposite.
values: ["SPLIT", "CENTER", "LEFT", "RIGHT"]
example: |
LABELLED INST PARAMS VALUE1
SETTING LED_COLOR GOOD GREEN
SETTING LED_COLOR BAD RED
settings:
LED_COLOR:
summary: Map a state or value to a color
parameters:
- name: Value
required: true
description: State or value. ANY used to match any value or state not declared.
values: .+
- name: LED color
required: true
description: Color of the LED
values: .+
LABELPROGRESSBAR:
summary: Displays a LABEL with the item name followed by a PROGRESSBAR
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Scale factor
required: false
description: Value to multiply the telemetry item by before displaying
in the progress bar. Final value should be in the range of 0 to 100. Default is 1.0.
values: .*
- name: Width
required: false
description: Width of the progress bar (default = 80 pixels
values: .*
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
example: |
LABELPROGRESSBAR INST ADCS POSPROGRESS 2 200 RAW
LABELPROGRESSBAR INST ADCS POSPROGRESS
LABELVALUE:
summary: Displays a LABEL with the item name followed by a VALUE
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
example: |
LABELVALUE INST LATEST TIMESEC CONVERTED 18
LABELVALUE INST LATEST COLLECT_TYPE
LABELVALUEDESC:
summary: Displays a LABEL with the items description followed by a VALUE
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Description
required: false
description:
The description to display in the label (default is to display
the description text associated with the telemetry item)
values: .*
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
example: |
LABELVALUEDESC INST HEALTH_STATUS TEMP1 "Temperature number 1" RAW 18
LABELVALUEDESC INST HEALTH_STATUS COLLECT_TYPE
# LABELFORMATVALUE:
# summary: Displays a LABEL widget to show the telemetry
# items name followed by a formatted VALUE widget to display the items value.
# parameters:
# - name: Target name
# required: true
# description: The target name
# values: .+
# - name: Packet name
# required: true
# description: The packet name
# values: .+
# - name: Item name
# required: true
# description: The item name
# values: .+
# - name: Format String
# required: true
# description: Printf style format string, for example %0.6f
# values: .*
# - name: Value type
# required: false
# description: The type of the value to display. Default is CONVERTED.
# values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
# - name: Number of characters
# required: false
# description: The number of characters wide to make the value box (default = 12)
# values: .*
LABELVALUELIMITSBAR:
summary: Displays a LABEL with the item name followed by VALUE and LIMITSBAR widgets
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
examples: |
LABELVALUELIMITSBAR INST HEALTH_STATUS TEMP1 RAW 18
LABELVALUELIMITSBAR INST HEALTH_STATUS TEMP1
LABELVALUELIMITSCOLUMN:
summary: Displays a LABEL with the item name followed by VALUE and LIMITSCOLUMN widgets
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
example: |
LABELVALUELIMITSCOLUMN INST HEALTH_STATUS TEMP1 CONVERTED 18
LABELVALUELIMITSCOLUMN INST HEALTH_STATUS TEMP1
LABELVALUERANGEBAR:
summary: Displays a LABEL with the item name followed by VALUE and RANGEBAR widgets
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Low Value
required: true
description:
Minimum value to display on the range bar. If the telemetry
item goes below this value the bar is “pegged” on the low end.
values: .+
- name: High Value
required: true
description:
Maximum value to display on the range bar. If the telemetry
item goes above this value the bar is “pegged” on the high end.
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
- name: Width
required: false
description: Width of the range bar (default = 160)
values: .*
- name: Height
required: false
description: Height of the range bar (default = 25)
values: .*
example: |
LABELVALUERANGEBAR INST HEALTH_STATUS TEMP1 0 100000 RAW 18 200 40
LABELVALUERANGEBAR INST HEALTH_STATUS TEMP1 -120 120
# LABELVALUERANGECOLUMN:
# summary: Displays a LABEL widget to show the telemetry item's name,
# followed by a VALUE widget to display the item's value, followed by a RANGECOLUMN widget.
# parameters:
# - name: Target name
# required: true
# description: The target name
# values: .+
# - name: Packet name
# required: true
# description: The packet name
# values: .+
# - name: Item name
# required: true
# description: The item name
# values: .+
# - name: Low Value
# required: true
# description: Minimum value to display on the range bar. If the telemetry
# item goes below this value the bar is “pegged” on the low end.
# values: .+
# - name: High Value
# required: true
# description: Maximum value to display on the range bar. If the telemetry
# item goes above this value the bar is “pegged” on the high end.
# values: .+
# - name: Value type
# required: false
# description: The type of the value to display. Default is CONVERTED.
# values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
# - name: Number of characters
# required: false
# description: The number of characters wide to make the value box (default = 12)
# values: .*
# - name: Width
# required: false
# description: Width of the range bar (default = 160)
# values: .*
# - name: Height
# required: false
# description: Height of the range bar (default = 25)
# values: .*
# example: |
# LABELVALUERANGECOLUMN INST HEALTH_STATUS TEMP1 0 100000 RAW 18 200 40
# LABELVALUERANGECOLUMN INST HEALTH_STATUS TEMP1 -120 120
LED:
summary: Displays a LED which changes color based on telemetry values
description:
By default TRUE is green and FALSE is red and all other values are black.
Additional values can be added by using the LED_COLOR setting. For example
LED INST PARAMS VALUE3 RAW can be followed by SETTING LED_COLOR 0 GREEN,
SETTING LED_COLOR 1 RED, and SETTING LED_COLOR ANY ORANGE.
See LIMITSCOLOR for a widget that displays a circle depicting the limits color of an item.
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Width
required: false
description: Width of the LED circle (default = 20)
values: .*
- name: Height
required: false
description: Height of the LED circle (default = 20)
values: .*
example: |
LED INST PARAMS VALUE5 RAW 25 20 # Ellipse
SETTING LED_COLOR 0 GREEN
SETTING LED_COLOR 1 RED
SETTING LED_COLOR ANY YELLOW
settings:
LED_COLOR:
summary: Map a state or value to a color
parameters:
- name: Value
required: true
description: State or value. ANY used to match any value or state not declared.
values: .+
- name: LED color
required: true
description: Color of the LED
values: .+
LIMITSBAR:
summary: Displays an item's current value within its colored limits horizontally
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Width
required: false
description: Width of the range bar (default = 160)
values: .*
- name: Height
required: false
description: Height of the range bar (default = 25)
values: .*
example: |
LIMITSBAR INST HEALTH_STATUS TEMP1 CONVERTED 200 50
LIMITSBAR INST HEALTH_STATUS TEMP1
LIMITSCOLUMN:
summary: Displays an item's current value within its colored limits vertically
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Width
required: false
description: Width of the range bar (default = 160)
values: .*
- name: Height
required: false
description: Height of the range bar (default = 25)
values: .*
example: |
LIMITSCOLUMN INST HEALTH_STATUS TEMP1 CONVERTED 50 200
LIMITSCOLUMN INST HEALTH_STATUS TEMP1
LIMITSCOLOR:
summary: Displays a circle depicting the limits color of an item.
See LED for a widget that displays a circle which changes to an arbitrary color based on telemetry values.
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Radius
required: false
description: Radius of the circle (default is 10)
values: .*
- name: Item Name Display
required: false
description: Show the full item name, e.g. TGT PKT ITEM (true), no item name (nil or none) or just the item name (false). Default is false.
values: .*
example: |
HORIZONTAL
LIMITSCOLOR INST HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
LABEL '1st Temp'
END
LIMITSCOLOR INST HEALTH_STATUS TEMP2 # Default is label with just item name
LIMITSCOLOR INST HEALTH_STATUS TEMP3 CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
VALUELIMITSBAR:
summary: Displays an item VALUE followed by LIMITSBAR
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
example: |
VALUELIMITSBAR INST HEALTH_STATUS TEMP1 CONVERTED 18
VALUELIMITSBAR INST HEALTH_STATUS TEMP1
VALUELIMITSCOLUMN:
summary: Displays an item VALUE followed by LIMITSCOLUMN
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 8)
values: .*
example: |
VALUELIMITSCOLUMN INST HEALTH_STATUS TEMP1 CONVERTED 18
VALUELIMITSCOLUMN INST HEALTH_STATUS TEMP1
VALUERANGEBAR:
summary: Displays an item VALUE followed by RANGEBAR
parameters:
- name: Target name
required: true
description: The target name
values: .+
- name: Packet name
required: true
description: The packet name
values: .+
- name: Item name
required: true
description: The item name
values: .+
- name: Low Value
required: true
description:
Minimum value to display on the range bar. If the telemetry
item goes below this value the bar is “pegged” on the low end.
values: .+
- name: High Value
required: true
description:
Maximum value to display on the range bar. If the telemetry
item goes above this value the bar is “pegged” on the high end.
values: .+
- name: Value type
required: false
description: The type of the value to display. Default is CONVERTED.
values: <%= %w(RAW CONVERTED FORMATTED WITH_UNITS) %>
- name: Number of characters
required: false
description: The number of characters wide to make the value box (default = 12)
values: .*
- name: Width
required: false
description: Width of the range bar (default = 160)
values: .*
- name: Height
required: false
description: Height of the range bar (default = 25)
values: .*
example: |
VALUERANGEBAR INST HEALTH_STATUS TEMP1 0 100000 RAW 18 200 40
VALUERANGEBAR INST HEALTH_STATUS TEMP1 -120 120
# VALUERANGECOLUMN:
# summary: Displays a graphical representation of where
# an item's value falls within a range vertically and its value in a VALUE widget.
# parameters:
# - name: Target name
# required: true
# description: The target name
# values: .+
# - name: Packet name
# required: true
# description: The packet name
# values: .+
# - name: Item name
# required: true
# description: The item name
# values: .+
# - name: Low Value
# required: true