Giter VIP home page Giter VIP logo

Comments (3)

todbot avatar todbot commented on August 18, 2024

It's a way of having the blink(1) automatically play its saved light sequence unless it is continuously commanded. The designed use case is a server that you want to visually monitor if it ever crashes, so you have a script that does something like this:

while [ 1 ] ; do
  blink1-tool -t 2000 --servertickle 1
  sleep 1
done

What this does is set the servertickle timeout to 2 seconds and enables it. If the server doesn't issue a "--servertickle 1" command within 2 seconds, the light sequence will play. To turn off servertickle, do "--servertickle 0".

To set your own light sequence, see this wiki page:
https://github.com/todbot/blink1/wiki/Using-blink%281%29-as-a-programmable-nightlight

from blink1.

JohnnyBlocks avatar JohnnyBlocks commented on August 18, 2024

So you would issue this command to ensure that the application doesnt stop communicating.

An application would instruct the blink(1) to do colors, then the last instruction would be the servertickle for n time so if the app doesnt communicate within that time, it would go into the pattern letting you know it's not working anymore.

Am I understanding that correctly?

Example - You have a weather app that will instruct the blink to be a color based on the conditions. The app does the weather to color instructions ever 10 minutes. After setting blink(1) to the proper color based on conditions, it would then issue "blink1-tool -t 10000 --servertickle 1" so that if the app doesnt talk to blink(1) within 10 minutes, that means the app has failed and go into blink pattern to notify user the application is stopped.

Do I have the idea correct?

from blink1.

todbot avatar todbot commented on August 18, 2024

Yup, that's exactly right.

from blink1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.