Using Ignition perspective 8.1.43. I have a project that is develloped on a full gateway and deployed on a Edge gateway. I want the project can be executable from both gateways. I want to prevent some components from displaying if the project is being executed on the Edge gateway.
You can try setting up security zones, but those will only work if a user is logged in.
You could make the objects default to hidden unless the user is accessing from the expected zone. You could have a session property with a binding of isAuthorized(false, "SecurityZones/Full Gateway Zone")
, and bind component visibility on that.
Otherwise you'll probably need to inspect your connected gateway address in the session props and if it doesn't match the address of the full gateway, hide the objects.
Answering purely the question in the title, you can use PlatformEdition
:
from com.inductiveautomation.ignition.common.model import PlatformEdition
print PlatformEdition.isEdge()
# or
# print PlatformEdition.isMaker()
# print PlatformEdition.isCloud()
# print PlatformEdition.isStandard()
Might be a good idea for a system tag...
6 Likes
Yes, please!
Thanks Paul. That's what I'm looking for!
1 Like