EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: Phoebus: text color based on alarm severity
From: Paul Sichta via Tech-talk <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 12 Nov 2024 11:28:40 -0500
I was applying the prefix and have used the border feature.    Kay's insight that only certain objects follow the preference clears up why it didn't work as I expected.

Regards,
-ps


On Tue, Nov 12, 2024 at 9:59 AM Kasemir, Kay <kasemirk at ornl.gov> wrote:

Michael is correct on the settings file syntax.

Still, note that those colors aren’t for everything that you might have in mind.

 

The alarm table, probe, PV table use these settings that you mention.

 

For the display builder, the “alarm sensitive” behavior is handled via a border around the widget, see

https://github.com/ControlSystemStudio/phoebus/wiki/Display-Builder-Compatibility#alarm-indication

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
Date: Monday, November 11, 2024 at 9:49
PM
To: Paul Sichta <psichta at pppl.gov>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Re: Phoebus: text color based on alarm severity

On 11/11/24 16:45, Paul Sichta via Tech-talk wrote:
> I have added the preferences below in my settings.ini file.  I expected the text color to change based on alarm sevr but it just stays the same (the color selected for the text update object) .
>
> excerpt from preferences listing:
> # Color for text and the background for 'OK' alarm severity (R,G,B or R,G,B,A values in range 0..255)
> ok_severity_text_color=0,255,0
> ok_severity_background_color=255,255,255
>
> # Color for text and the background for 'MINOR' alarm severity
> minor_severity_text_color=255,128,0

The way the phoebus settings.ini files are structured is always:

> package.name/preference_name=value

So there will _always_ be a '/' somewhere.

Parsing this from the documentation is a confusing...

https://urldefense.us/v3/__https://control-system-studio.readthedocs.io/en/latest/preference_properties.html__;!!G_uCfscf7eWS!bKdm6KbqSxWqXdi3twX47I9pcd1wJIFNMLKAtNnPI6PFr5B8cuVZsqQd0R0j-1mfa8WBgzTK2ASVnfBOfeUku9ZTaw$

the section you quote is preceded by:

> File ../../core/ui/src/main/resources/phoebus_ui_preferences.properties:
>
> # ----------------------
> # Package org.phoebus.ui
> # ----------------------

So the full name of eg. 'ok_severity_text_color' as it should appear in settings.ini is:

> org.phoebus.ui/ok_severity_text_color=0,255,0


References:
Phoebus: text color based on alarm severity Paul Sichta via Tech-talk
Re: Phoebus: text color based on alarm severity Michael Davidsaver via Tech-talk
Re: [EXTERNAL] Re: Phoebus: text color based on alarm severity Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Re: Phoebus: text color based on alarm severity Kasemir, Kay via Tech-talk
Next: Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: [EXTERNAL] Re: Phoebus: text color based on alarm severity Kasemir, Kay via Tech-talk
Next: Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
ANJ, 12 Nov 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·