Skip to content

Commit 071dff8

Browse files
authored
Merge pull request #3588 from minijackson/markdown-properties-docs
Document Phoebus preferences in Markdown
2 parents 80c61ac + 9575479 commit 071dff8

File tree

54 files changed

+1128
-662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1128
-662
lines changed

app/3d-viewer/src/main/resources/3d_viewer_preferences.properties

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ read_timeout=10000
99
default_dir=$(user.home)
1010

1111
# Cone is approximated with these many faces.
12-
# 3: Triangular base, most minimalistic
13-
# 8: Looks pretty good
14-
# Higher: Approaches circular base,
15-
# but adds CPU & memory usage
16-
# and doesn't really look much better
17-
cone_faces=8
12+
#
13+
# :3: Triangular base, most minimalistic
14+
# :8: Looks pretty good
15+
# :higher:
16+
# Approaches circular base,
17+
# but adds CPU & memory usage
18+
# and doesn't really look much better
19+
cone_faces=8

app/alarm/audio-annunciator/src/main/resources/audio_annunciator_preferences.properties

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,29 @@
33
# ----------------------------------------
44

55
# The audio annunciator will play the audio files specified for the associated alarm severity levels.
6-
# Currently supported formats are AIFF and WAV files.
7-
# examples of audio file URL's, they can be local or remote files.
6+
#
7+
# Currently supported formats are AIFF and WAV files,
8+
# which can be local or remote.
9+
#
10+
# ```{code-block}
11+
# :caption: Examples
12+
#
813
# file:/C:/tmp/audio/AudioFileWithWavFormat.wav
914
# https://wavlist.com/wav/brass1.wav
15+
# ```
1016

11-
# default alarm sound, if we don't want severity specific sounds only setting this one preference is enough
17+
# Default alarm sound.
18+
#
19+
# If we don't want severity specific sounds only setting this one preference is enough.
1220
alarm_sound_url=
1321

1422
minor_alarm_sound_url=
1523
major_alarm_sound_url=
1624
invalid_alarm_sound_url=
1725
undefined_alarm_sound_url=
1826

19-
# audio clip volume (0-100)
27+
# Audio clip volume (0-100).
2028
volume=100
2129

22-
# max alarm Duration in seconds.
23-
max_alarm_duration=10
30+
# Max alarm Duration in seconds.
31+
max_alarm_duration=10

app/alarm/logging-ui/src/main/resources/alarm_logging_preferences.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# Package org.phoebus.applications.alarm.logging.ui
33
# -------------------------------------------------
44

5-
# The URL of the REST API exposed by the alarm logger service (not the elasticsearch port as it was prior to Phoebus 4.0)
5+
# The URL of the REST API exposed by the alarm logger service.
6+
#
7+
# :::{versionchanged} 4.0
8+
# Prior to the 4.0 release, this was the elasticsearch port.
9+
# :::
610
service_uri = http://localhost:9000
711

812
results_max_size = 10000

app/alarm/model/src/main/resources/alarm_preferences.properties

Lines changed: 71 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ server=localhost:9092
99
kafka_properties=
1010

1111
# Name of alarm tree root.
12+
#
1213
# Configures the alarm configuration used by the alarm server.
1314
# For the UI, it sets the default alarm configuration.
1415
config_name=Accelerator
1516

1617
# Names of selectable alarm configurations for UI.
17-
# The `config_name` will be used as the default for newly opened tools,
18-
# and if `config_names` is empty, it remains the only option.
18+
#
19+
# The {prefs:pref}`config_name` will be used as the default for newly opened tools,
20+
# and if {prefs:pref}`config_names` is empty, it remains the only option.
21+
#
1922
# When one or more comma-separated configurations are listed,
2023
# the UI shows the selected name and allows switching
2124
# between them.
@@ -27,45 +30,59 @@ connection_timeout=30
2730
# Timeout in seconds for "sevrpv:" updates
2831
severity_pv_timeout=5
2932

30-
## Area Panel
33+
# :::{rubric} Area Panel
34+
# :::
3135

3236
# Item level for alarm area view:
33-
# 1 - Root element
34-
# 2 - Top-level "area" elements just below root
35-
# 3 - Show all the items at level 3
37+
#
38+
# :1: Root element
39+
# :2: Top-level "area" elements just below root
40+
# :3: Show all the items at level 3
3641
alarm_area_level=2
3742

38-
# Number of columns in the alarm area view
43+
# Number of columns in the alarm area view.
3944
alarm_area_column_count=3
4045

41-
# Gap between alarm area panel items
46+
# Gap between alarm area panel items.
4247
alarm_area_gap=5
4348

44-
# Font size for the alarm area view
49+
# Font size for the alarm area view.
4550
alarm_area_font_size=15
4651

4752
# Limit for the number of context menu items.
53+
#
4854
# Separately applied to the number of 'guidance',
49-
# 'display' and 'command' menu entries.
55+
# 'display' and 'command' menu entries.
5056
alarm_menu_max_items=10
5157

52-
# Initial Alarm Tree UI update delay [ms]
58+
# Initial Alarm Tree UI update delay, in milliseconds.
5359
#
5460
# The initial flurry of alarm tree updates can be slow
5561
# to render. By allowing the alarm client to accumulate
5662
# alarm tree information for a little time and then
5763
# performing an initial bulk representation, the overall
5864
# alarm tree startup can be faster, especially when
59-
# the UI is viewed via a remote desktop
65+
# the UI is viewed via a remote desktop.
6066
#
61-
# Set to 0 for original implementation where
67+
# Set to `0` for original implementation where
6268
# all alarm tree items are added to the model
6369
# as they are received in initial flurry of updates.
6470
alarm_tree_startup_ms=2000
6571

66-
# Order of columns in alarm table
72+
# Order of columns in alarm table.
73+
#
6774
# Allows re-ordering as well as omitting columns
68-
# The supported columns are: Icon, PV, Description, Alarm Severity, Alarm Message, Alarm Time, Alarm Value, PV Severity, PV Message
75+
#
76+
# The supported columns are:
77+
# - `Icon`
78+
# - `PV`
79+
# - `Description`
80+
# - `Alarm Severity`
81+
# - `Alarm Message`
82+
# - `Alarm Time`
83+
# - `Alarm Value`
84+
# - `PV Severity`
85+
# - `PV Message`
6986
alarm_table_columns=Icon, PV, Description, Alarm Severity, Alarm Message, Alarm Time, Alarm Value, PV Severity, PV Message
7087

7188
# By default, the alarm table uses the common alarm severity colors
@@ -77,70 +94,86 @@ alarm_table_columns=Icon, PV, Description, Alarm Severity, Alarm Message, Alarm
7794
# based on brightness.
7895
alarm_table_color_legacy_background=true
7996

80-
# Alarm table row limit
97+
# Alarm table row limit.
98+
#
8199
# If there are more rows, they're suppressed
82100
alarm_table_max_rows=2500
83101

84-
# Directory used for executing commands
85-
# May use Java system properties like this: $(prop_name)
102+
# Directory used for executing commands.
103+
#
104+
# May use Java system properties like this: `$(prop_name)`
86105
command_directory=$(user.home)
87106

88-
# The threshold of messages that must accumulate before the annunciator begins to simply state: "There are X Alarm messages."
107+
# The threshold of messages that must accumulate before the annunciator begins to simply state:
108+
# "There are X Alarm messages."
89109
annunciator_threshold=3
90110

91-
# The number of messages the annunciator will retain before popping messages off the front of the message queue.
111+
# The number of messages the annunciator will retain
112+
# before popping messages off the front of the message queue.
92113
annunciator_retention_count=100
93114

94115
# Timeout in seconds at which server sends idle state updates
95116
# for the 'root' element if there's no real traffic.
117+
#
96118
# Client will wait 3 times this long and then declare a timeout.
97119
idle_timeout=10
98120

99-
# Name of the sender, the 'from' field of automated email actions
121+
# Name of the sender, the 'from' field of automated email actions.
100122
automated_email_sender=Alarm Notifier <[email protected]>
101123

102-
# Comma-separated list of automated actions on which to follow up
103-
# Options include mailto:, cmd:
124+
# Comma-separated list of automated actions on which to follow up.
125+
#
126+
# Options include `mailto:`, `cmd:`
104127
automated_action_followup=mailto:, cmd:, infopv:
105128

106-
# Optional heartbeat PV
129+
# Optional heartbeat PV.
130+
#
107131
# When defined, alarm server will set it to 1 every heartbeat_secs
108-
#heartbeat_pv=Demo:AlarmServerHeartbeat
132+
#
133+
# ```{code-block} properties
134+
# :caption: Example
135+
#
136+
# heartbeat_pv=Demo:AlarmServerHeartbeat
137+
# ```
109138
heartbeat_pv=
110139

111-
# Heartbeat PV period in seconds
140+
# Heartbeat PV period in seconds.
112141
heartbeat_secs=10
113142

114-
# Period for repeated annunciation
143+
# Period for repeated annunciation.
144+
#
145+
# If there are active alarms, i.e. alarms that have not been acknowledged,
146+
# a message "There are 47 active alarms" will be issued.
115147
#
116-
# If there are active alarms, i.e. alarms that have not been acknowleded,
117-
# a message "There are 47 active alarms" will be issued
148+
# :format: `HH:MM:SS`, for example `00:15:00` to nag every 15 minutes.
118149
#
119-
# Format is HH:MM:SS, for example 00:15:00 to nag every 15 minutes.
120-
# Set to 0 to disable
150+
# Set to 0 to disable
121151
nag_period=00:15:00
122152

123-
# Connection validation period in seconds
153+
# Connection validation period in seconds.
124154
#
125155
# Server will check the Kafka connection at this period.
126156
# After re-establishing the connection, it will
127157
# re-send the state of every alarm tree item.
158+
#
128159
# Set to 0 to disable.
129160
connection_check_secs=5
130161

131-
# To turn on disable notifications feature, set the value to true
162+
# To turn on disable notifications feature, set the value to `true`
132163
disable_notify_visible=false
133164

134-
# Options for the "Disable until.." shortcuts in the PV config dialog
165+
# Options for the "Disable until.." shortcuts in the PV config dialog.
166+
#
167+
# :format:
168+
# comma separated, each option needs to comply with `TimeParser.parseTemporalAmount()`:
135169
#
136-
# Comma separated, each option needs to comply with TimeParser.parseTemporalAmount():
137-
# 30 seconds, 5 minutes, 1 hour, 6 hours, 1 day, 30 days, ...
170+
# 30 seconds, 5 minutes, 1 hour, 6 hours, 1 day, 30 days, ...
138171
shelving_options=1 hour, 6 hours, 12 hours, 1 day, 7 days, 30 days
139172

140173
# Macros for UI display, command or web links
141174
#
142-
# Format: M1=Value1, M2=Value2
175+
# :format: `M1=Value1, M2=Value2`
143176
macros=TOP=/home/controls/displays,WEBROOT=http://localhost/controls/displays
144177

145-
# Max time in ms a producer call will block.
178+
# Max time in milliseconds a producer call will block.
146179
max_block_ms=10000

app/channel/views/src/main/resources/cv_preferences.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Package org.phoebus.channel.views.ui
33
# --------------------------------------
44

5-
# Show the active PVs only
5+
# Show the active PVs only?
66
show_active_cb=false

app/console/src/main/resources/console_preferences.properties

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,43 @@
33
# ----------------------------------------
44

55
# Number of output lines to keep.
6+
#
67
# Older output is dropped.
78
output_line_limit=100
89

910
# Number of lines to keep in input history,
11+
#
1012
# accessible via up/down cursor keys
1113
history_size=20
1214

13-
# Font name and size
15+
# Font name.
1416
font_name=Liberation Mono
17+
18+
# Font size.
1519
font_size=14
1620

17-
# Prompt (may include trailing space)
21+
# Prompt.
22+
#
23+
# May include trailing space.
1824
prompt=>>>\
1925

20-
# Prompt (input field) info
26+
# Prompt (input field) info.
2127
prompt_info=Enter console command
2228

2329
# 'Shell' to execute.
2430
#
25-
# Examples:
26-
# /usr/bin/python -i
27-
# /usr/bin/python -i /path/to/some/initial_file.py
28-
# /bin/bash
31+
# ```{code-block}
32+
# :caption: Examples
33+
#
34+
# /usr/bin/python -i
35+
# /usr/bin/python -i /path/to/some/initial_file.py
36+
# /bin/bash
37+
# ```
2938
#
3039
# Value may include properties.
3140
shell=/usr/bin/python -i
3241

33-
# Folder where the shell process should be started
42+
# Folder where the shell process should be started.
3443
#
3544
# Value may include properties.
36-
directory=$(user.home)
45+
directory=$(user.home)

app/databrowser-json/src/main/resources/archive_reader_json_preferences.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ---------------------------------------
44

55
# Shall a precision of zero for a floating-point value result in this value
6-
# using a number format without fractional digits (true) or shall it be treated
6+
# using a number format without fractional digits (`true`) or shall it be treated
77
# as an indication that the value should be rendered with a default number of
8-
# fractional digits (false)?
8+
# fractional digits (`false`)?
99
honor_zero_precision=true

app/databrowser-timescale/src/main/resources/archive_ts_preferences.properties

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
# Package org.csstudio.archive.ts
33
# -------------------------------
44

5-
# User and password for reading archived data
5+
# User for reading archived data
66
user=report
7+
# Password for reading archived data
78
password=$report
89

9-
# Timeout [seconds] for certain SQL queries, 0 to disable timeout.
10+
# Timeout in seconds for certain SQL queries, 0 to disable timeout.
11+
#
1012
# Fundamentally, the SQL queries for data take as long as they take
1113
# and any artificial timeout just breaks queries that would otherwise
1214
# have returned OK a few seconds after the timeout.
15+
#
1316
# A timeout is used for operations other than getting the actual data,
1417
# for example the channel id-by-name query which _should_ return within
1518
# a short time.
1619
timeout_secs=120
1720

1821
# JDBC Statement 'fetch size':
22+
#
1923
# Number of samples to read in one network transfer.
24+
#
2025
# Speed tends to increase with fetch size.
21-
# On the other hand, bigger numbers can result in java.lang.OutOfMemoryError.
22-
fetch_size=10000
26+
# On the other hand, bigger numbers can result in `java.lang.OutOfMemoryError`.
27+
fetch_size=10000

0 commit comments

Comments
 (0)