Difference between play and servertickle

  • Question
  • Updated 3 years ago
Besides being able to start the sequence at any index with play and being able to set a start delay with servertickle, both commands seem to play the sequence of saved RGBs in a loop.

Is there anything else I'm missing or are they both virtually doing the same with only these two parameters being different?

PS. Also what is the maximum position for a saved RGB?
Photo of David Dossot

David Dossot

  • 9 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of David Dossot

David Dossot

  • 9 Posts
  • 0 Reply Likes
Answering my PS: I've found ./src/hardware/firmware/blink1.c:#define patt_max 12 so I reckon the maximum position is 12.

My main question stays open :)
Photo of todbot

todbot, Official Rep

  • 611 Posts
  • 155 Reply Likes
Yes, there are 12 color slots. Some more info along those lines are here:

The "servertickle" function is for when you want to use blink(1) as a kind of dead-man's switch light. It starts playing the color pattern only if you stop using servertickle.

For example, let's say you have a script on your server that runs every 5 seconds checking on things, and one of the things that script does is:
  blink1-tool -t 6000 --servertickle 1 

then if the script hangs (or the OS crashes) after 6000 milliseconds (6 seconds), the color pattern in blink(1) will start playing.