[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

set patterns in blink(1)

I bought a blink(1) http://blink1.thingm.com/ and am playing with it. Does anyone have one of these? I'm trying to figure out how to set and play patterns. There is NO documentation and I can find no examples by surfing. The "help" gives the syntax as:

  --setpattline <pos>         Write pattern RGB val at pos (--rgb/hsb to set)
  --getpattline <pos>         Read pattern RGB value at pos
  --savepattern               Save color pattern to flash (mk2)
  --play <1/0,pos>            Start playing color sequence (at pos)
  --play <1/0,start,end,cnt>  Playing color sequence sub-loop (mk2)

I've tried a bunch of things, but nothing works. No idea what <pos> means, no idea what start, end, cnt, or for that matter 1/0 mean.

Any idea how to make it blink forever without the blink1-tool having to run forever (I was hoping maybe the --play would do that)

Any idea how to use --servertickle? `blink1-tool --servertickle 1` turns on apparently random leds  forever, but trying args e.g. 1,0,1 doesn't seem to have any effect. If I could get this to alternate color/off I could do my blinking light thing.

I'm running this on Linux using the command line tool: blink1-tool. If anyone has one of these nifty little devices I'd like some help. Thanks
0
jmarkfoley
Asked:
jmarkfoley
  • 2
2 Solutions
 
David Johnson, CD, MVPOwnerCommented:
are you using the mac osx installer? did you download and compile the binaries from https://github.com/todbot/blink1/releases/tag/v1.94 ?
0
 
jmarkfoleyAuthor Commented:
Hmmm, don't recall checking the MAC OS and Apple topics; I intended to check Misc Hardware and Linux.

This is installed on a Linux OS and I did successfully get, and make from source. The device and software work OK, I just can't find any docs on the pattern/play commands and I'm not figuring it out from the `blink1-tool` command help, nor by experimentation.

I've tested --blink -1, and --blink 1024, but 512 seems to be the max value allowed. This give a little over 4 minutes of blinkage. Changing the millisecond fade time still does not let it exceed the 4+ minute time.
0
 
serialbandCommented:
Seems quite proprietary.  Is there a man page for blink?  Have you tried contacting them?  http://blink1.thingm.com/contact/
0
 
jmarkfoleyAuthor Commented:
Did contact them and received the reply below. Will try to pursue information ASAP.
Hi Mark,

We have a list of various help resources here:
  http://blink1.thingm.com/help/

There's a sub-reddit as a forum but if you have a specific bug/issue you might
want to open an issue on github (which also often functions as a forum)

To address your specific concerns about blink1-tool: you're right, the docs are
sparse and scattered.  blink1-tool can do a lot of stuff (it's what I use
primarily to exercise blink(1)s) and it should be better documented.

I've started collating the docs in one place here:
  https://github.com/todbot/blink1/blob/master/docs/blink1-tool-tips.md
and I'll eventually put it up on blink1.thingm.com.

Let me know if you have any questions,

-=tod
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now