CoRE - Variables 101

Case Study - Turnstile

This example will demonstrate the use of both a local variable ‘count’ and a global variable ‘@totalCount’. We use a global variable so that the total number of people who have opened the door or tripped a sensor will be carried over from day to day.

The daily ‘count’ variable is reset to 0 each day at midnight or whenever you wish. A push notification indicating how many customers you had that day and a total number of customers so far.

Requires:
1 contact or motion sensor

Before starting, set for expert mode: Settings->ExpertFeatures turn ON Expert Mode