Creating a User Set Timer in Perspective

I'm new to this and trying to create my first Perspective pages. I need to put in a timer that can be set by the user with a timer. I have the tags for it and try inserting them, but get false or null, so I'm sure I'm missing something. How do I get this to work?

  1. Don't use tags. Those are shared globally across all users.

  2. Don't use timers--jython's Timer class doesn't play well with Ignition.

Instead, use a Perspective session custom property to hold an expiration timestamp (computed from system.date.now() and system.date.addSeconds(), typically) and use an expression binding with now() and dateIsAfter() to get a boolean expired flag.

1 Like