This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Visualization, Pin code after wakeup
#1
Hello

Is it possible to somehow to get it to ask pin code after device has been inactive for x minutes in visualization. Like you can set it to dim and on wake up it would ask for pincode after that time
Reply
#2
Enable "Visualization pin code" in User access settings. Add this to Custom JavaScript. Inactivity timeout is 60 seconds, adjust as needed.

Code:
$(function() {
  var timeout = 60 * 1000;
  var oldfn = $.stopEvent;

  function ontimeout() {
    window.location = '/scada-vis/pin?return=index';
  }
  
  $.stopEvent = function(event) {
    clearTimeout(timer);
    timer = setTimeout(ontimeout, timeout);
    return oldfn(event);
  };
  
  timer = setTimeout(ontimeout, timeout);
});
Reply
#3
Thanks, Works Smile
Reply
#4
We have customer that control installation from computer, smartphone.... and there is also 2 big touch sreen in showroom with specific page only for this showroom. 3 pages: light, shutter and temp. Temp page is pin protected. However if someone use the pin to change temperature, then there is no need to put the pin again. They need to close Chrome webapp (android shortcut on desktop), to have the pin asked again.

I would use the trick you mention above, however, all other person using the LMĀ  (secretary, director...) in their office will have the same behaviour.

I can't find an option to ask everytime we click on the buton link of the link page.

I precise there is user access enable (one for direction one for showroom)
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply
#5
One option is to add pin code protection to objects instead of a whole plan.

You can also modify this script so it runs only for certain users: https://forum.logicmachine.net/showthrea...5#pid33255

Line 6 (window.location...) can be changed to showPlan(1); so a certain plan is shown instead of the global pin input when timeout happens. Change 1 to the default plan ID.
Reply
#6
thks for your help
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply


Forum Jump: