Allowing Q-sys to Count

Discussion space for anything related to Q-Sys.
eli_garrett
Posts: 6
Joined: November 19th, 2016, 4:51 am

Allowing Q-sys to Count

Postby eli_garrett » February 24th, 2018, 7:33 am

I want to have a Q-Sys System count how many people walk thru a door in a day, I can setup a laser sensor but I need a way to count the input. has anyone ever written something that can keep count of how many times an input has been triggered?

dgriffin
Posts: 14
Joined: June 16th, 2016, 7:55 am

Re: Allowing Q-sys to Count

Postby dgriffin » February 27th, 2018, 4:31 am

Given you have the trigger from the laser sensor already in QSYS, this is pretty simple. See attached user component.

Code: Select all

Controls.Trigger.EventHandler = function()
  Controls.Count.Value = Controls.Count.Value + 1
end
Please sign in or register to download the attached file.


Return to “Q-Sys Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests

cron