Experimental Physics and Industrial Control System
Hi Kay,
Thanks for the prompt response.
> In an interactive session, open the desired display(s).
> Maybe use the "Window" menu to hide toolbar and status bar, and maybe select the full-screen mode.
> Use Window, Save Layout As .. to save that layout.
> By default, it will end in a file $HOME/.phoebus/NameOfLayout.memento, for details see https://control-system-studio.readthedocs.io/en/latest/locations.html
> From now on you can start phoebus with the
> -layout /path/to/Example.memento
> option to open that saved layout.
I indeed tried saving as a memento file and loaded as you suggest, but it doesn't seem to work and I get the following.
2021-03-26 17:19:42 WARNING [org.phoebus.ui.application.PhoebusApplication] Ignoring launch parameter '-layout'
2021-03-26 17:19:42 WARNING [org.phoebus.ui.application.PhoebusApplication] Ignoring launch parameter '/home/user/opi/simple.memento'
Am I missing something here? I ran it as:
./phoebus.sh -layout /home/user/opi/simple.memento
> Have you looked at the display builder web runtime, https://github.com/kasemir/dbwr?
I wasn't aware of this - thanks for sharing - it looks useful. I will take a further look.
Tom Stainer
-----Original Message-----
From: Kasemir, Kay <kasemirk at ornl.gov>
Sent: Friday, March 26, 2021 5:12 PM
To: tech-talk at aps.anl.gov; Stainer Tom <Tom.Stainer at sckcen.be>
Subject: Re: Phoebus lock down BOB
In an interactive session, open the desired display(s).
Maybe use the "Window" menu to hide toolbar and status bar, and maybe select the full-screen mode.
Use Window, Save Layout As .. to save that layout.
By default, it will end in a file $HOME/.phoebus/NameOfLayout.memento, for details see https://control-system-studio.readthedocs.io/en/latest/locations.html
From now on you can start phoebus with the
-layout /path/to/Example.memento
option to open that saved layout.
> Ideally I would just like to ship a single binary which can be loaded by a user (given the have the JVM) and they see a simple read-only screen.
You can include the JVM in your package.
The example launch scripts look for "../jdk".
The SNS-specific packages use that.
BUT: That's a large package to download, just to offer you users with a crippled read-only screen.
Have you looked at the display builder web runtime, https://github.com/kasemir/dbwr?
That allows your users to see (by default: read only) displays in a web browser.
There are some limitations to what you can do in that display, mostly: No scripts, but many screens will "just work" with zero installation effort on the user end.
-Kay
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Stainer Tom via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, March 26, 2021 12:00 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Phoebus lock down BOB
Dear,
I have a Display builder (.bob) file which I would like to "lock down" in the sense that I can provide a stand-alone application just showing this OPI without the ability to edit or play with it, and hide from the user that it is CS-Studio/Phoebus.
Ideally I would just like to ship a single binary which can be loaded by a user (given the have the JVM) and they see a simple read-only screen.
I am sure this is possible to do, I just am struggling to find any documentation or examples on how to do this.
I've been trying things like this with no success:
./phoebus.sh -resource file:/home/user/opi/simple.bob?app=display_runtime
Any pointers or advice on this would be much appreciated.
Kind regards,
Tom
- Replies:
- Re: Phoebus lock down BOB Kasemir, Kay via Tech-talk
- References:
- Phoebus lock down BOB Stainer Tom via Tech-talk
- Re: Phoebus lock down BOB Kasemir, Kay via Tech-talk
- Navigate by Date:
- Prev:
Re: Phoebus lock down BOB Kasemir, Kay via Tech-talk
- Next:
Re: Possible to Populate CSS text fields with JDBC calls? Hu, Yong 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
2024
- Navigate by Thread:
- Prev:
Re: Phoebus lock down BOB Kasemir, Kay via Tech-talk
- Next:
Re: Phoebus lock down BOB 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
2024