Skip to content

Commit

Permalink
SINQ: Added sensors.py to Gerrit
Browse files Browse the repository at this point in the history
In patch https://forge.frm2.tum.de/review/c/frm2/nicos/nicos/+/34803, I
added "sensors" as includes in a Neutra setup, but forgot to add the
actual "sensors.py" setup. This patch adds this setup.

Change-Id: Icf7467df0a50becc2e60c8496984f60f483adf29
Reviewed-on: https://forge.frm2.tum.de/review/c/frm2/nicos/nicos/+/34928
Tested-by: Jenkins Automated Tests <[email protected]>
Reviewed-by: Jens Krueger <[email protected]>
  • Loading branch information
smathis authored and Jens Krueger committed Nov 6, 2024
1 parent 894fd71 commit 98100ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nicos_sinq/neutra/setups/sensors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
description = 'Beam line environmental sensors'

group = 'lowlevel'

display_order = 95

pvprefix = 'SQ:NEUTRA:sensors:'

devices = dict(
temperature = device('nicos.devices.epics.pyepics.EpicsReadable',
description = 'Beam line temperature',
readpv = pvprefix + 'TEMP',
unit = 'degC',
),
humidity = device('nicos.devices.epics.pyepics.EpicsReadable',
description = 'Beam line relative humidity',
readpv = pvprefix + 'RH',
unit = '%',
),
)

0 comments on commit 98100ab

Please sign in to comment.