Comments (3)
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.
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.
Yup, that's exactly right.
from blink1.
Related Issues (20)
- "certificate has expired" HOT 1
- How to send POST or GET to control blink(1)? HOT 4
- Some notes regarding blink(1) mk3 powered by Mac keyboard USB hub HOT 1
- Failed to compile the blink1mk2 firmware HOT 2
- Cannot Add Pattern with API HOT 1
- blink1control2 can't find device HOT 3
- cannot install as directory blink1/commandline does not exist
- how can i upgrade the firmware?
- What's the `Set ledn` for? HOT 1
- Availability and Status of blink(1) product in Far East HOT 2
- FeatureReportByteLength of blink(1) is 9 instead of 8 HOT 3
- confusing ledn definition for read current color cmd
- what's `Test command format: { 1, '!', 0,0,0, 0,0, 0 }` and how to use it?
- Differentiating between blink(1) Devices (mk1, mk2, mk3) in a C++ Application
- Inconsistent Position Definition for Serverdown Tickle and PlayLoop HOT 2
- Fail to Set Individual LED RGB Color (command: 'n') for mk2 Devices HOT 1
- blink1-tool folder in openwrt is empty HOT 1
- Question about blink(1) durability with high speed color cycling? HOT 1
- Concurrent HID Instructions - Any Issues? HOT 1
- Issue with 'W' Command "Save color patterns" on blink(1) device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blink1.