0

Safety day counter?



Is there an easy way to do an accident free day counter and have it display the correct number of accident free days? I would like the counter to automatically update each day with the ability to reset the counter.

Thanks

17 comments

  • 0
    Avatar
    RokuLyndon


    What else would be on the screen with the counter?  The only way I can think to do it currently is with a script, either using images, or a text zone.
  • 0
    Avatar
    jesse belcher

    Hello i was just asked about this.. I would hope in the last 7 years we can do something like this with ease... 

  • 0
    Avatar
    Davide Botta

    Hello, do you have some news about this counter?

    regards

  • 0
    Avatar
    Bright Scripters

    Can you clarify the requirements?

    Where is the information that you wish to present, is coming from?

     

  • 0
    Avatar
    Davide Botta

    I'd like to understand if now there is the possibility to do the counter described by Damianc

    regards

  • 0
    Avatar
    Bright Scripters

    Let me see if I understand the requirements:

    A counter automatically increments once per day.

    Manual reset of the counter if accident occurs. 

     

    Incrementing a counter once a day, and reseting the counter is very easy.

    Ingredients:

    User Variable,

    Time/Clock Event

    Command to increment the variable

    Event to reset the counter (GPIO, touch, UDP, ...)

    Command to reset the counter

  • 0
    Avatar
    Davide Botta

    PERFECT!!!!

  • 0
    Avatar
    jesse belcher

    I used https://www.tickcounter.com/ used the embed code to create a page on my presentation. Been running for a while now and it lets you pick a start date.. also change the colors. 

     

  • 0
    Avatar
    Cage Nut

    Tick Counter looks very interesting.

    Does their code work when hosted locally, in a standalone configuration? (Without internet)

  • 0
    Avatar
    jesse belcher

    I am not 100% sure.. you would have to look at the code and try it.. I would think its using system time after you set it up.. But am not sure. I set ours up about a year ago and had to reset it a few times but it seems to keep track of the days just fine. our BS devices are connected to the internet via wifi. 

  • 0
    Avatar
    JRB Technical

    If you need a standalone solution (local network), one thing you can do is use a Raspberry Pi (model 2 or 3). Add Apache web server to it. Then you could either do a simple script for a web page or XML file with the counter data with a cron job to increment daily. If you wanted to go the extra mile you could add a push button to reset the counter to zero. Probably about $50-$60 total cost for the RasPi, case, power supply, and SD card. I have done some similar things with the RasPi's and local BrightSign setups.

  • 0
    Avatar
    Erik Franzen

    can this be done with BSNEE and live text.  I would like to use the the date/time event to update once aday by updating the live text feed by 1.  but i would also like to be able to log into the webpage and reset that number back to 0 or maybe another number as sometimes over the weekend we don't reset the timer and we might have to reset to 1 or 2.  

     

    I can get it to work by using a variable but it is the live text I am trying to figure out as the person updating this sign might not be on property. 

  • 0
    Avatar
    Brandon

    Live Data comes down, but it doesn't go back up.

    I would use a variable for the count, and use a Live Data-driven Shared.variable as a flag to reset the count to zero.

    Then the manager could edit the flag on BSN, wait until the player resets, then reset the flag back to normal so the count can increment later.

    You could add another variable and flag to set the count to a specific value as well, to make adjustments if the player misses the incrementing Time/Clock event or schedule from being powered down, etc.

  • 0
    Avatar
    Erik Franzen

    I was kind of thinking about this

    2 live data Var.  1 - how many days and 2- the trigger 0 do nothing, 1 rest to Var 1 value 

    so I would put what day it should be and then put a 1 in the second Var.

    set a trigger to look every 30 secs for the trigger in Var 2. And then pull Var 1 as the new count

    after a min or so reset back to a 0.  I was just hoping to be able to push back the var to live text that way the person resting the sign would know if was reset.

     

  • 0
    Avatar
    Brandon

    You could have player send a UDP message or make a HTTP query but yeah, not an invite way to know.
    Things open up a lot if you have your own web server.

  • 0
    Avatar
    Erik Franzen

    We do have our own BSNEE server onsite. 

  • 0
    Avatar
    Brandon

    Then you could provide a web page that allows updating the content of a simple (non-BSN) feed, or even a submit to the player's Local Web Server to update variables. Securing it against misuse would be the challenge.

Please sign in to leave a comment.