Display info in perspective screen

Hi all,
I have a perspective screen on which I want to display the following details. Is it possible to do it?

  1. Gateway version
  2. version no. of an installed module(sepasoft)
  3. dateTime of when project was last updated
  4. current browser on which the session is running
  5. OS on which session is running

I went through session.props and couldn't find these properties

You would have to get this information from the Gateway, which would probably require getting a GatewayContext.

You would need to use Javascript to get this, I don't know the exact code.

Good luck. Browsers purposefully prevent access to the client machine for security. Why exactly do you need this information? The clients OS should make zero difference for Perspective.

The first 4 I can understand, and honestly, this sounds like a job for a custom component.

1 Like

You might be able to derive 4 and 5 from the device.userAgent Session Prop, but it won’t be entirely reliable.


I'm not really aware how GatewayContext works. Is there documentation for it?
I could only find this link:GatewayContext

the below code throws an error

	from com.inductiveautomation.ignition.gateway import IgnitionGateway
	context = IgnitionGateway.getGatewayModules()

only context = IgnitionGateway.get() works, which gives the information on the state

GatewayContext is documented, but note that it is an interface, not a class. The one Implementation is an internal resource and if you use it, do not expect any support.

You obtain the one implementation (it uses the singleton pattern) with the static method .get(), like so:

from com.inductiveautomation.ignition.gateway import IgnitionGateway
context = IgnitionGateway.get()

Then, you can use the interface methods on context.

But again, don't ever bother IA support with anything you get, or any breakage you cause.