Results 1 to 10 of 29

Thread: Blink(1)

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Posts
    103

    Default Blink(1)

    I'm trying to implement support for http://blink1.thingm.com/ in G6
    Is there anywhere an updated documentation that explains how to integrate a shared lib (dll) in G6's Lua ?
    I've read the code for the Telldus plugin, and I see how the DLL is loaded and used, but it uses telldus.dll which is some kind of stub of tellstick.dll. What's the process to create such stubbed lib? Is it open?

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    That is really cute!

    Looks like it's a HID device which we can drive with just some lua code. ( We have HID functions exposed. ) Together with their lib source we're in business:
    https://github.com/todbot/blink1/tre...er/commandline

    Or just use the commandline tool from the start. Either way I'm happy to help.
    Ron
    No support through PM

  3. #3
    Join Date
    Dec 2004
    Posts
    103

    Default

    Command Line is the "no other way" solution. That's what I did few month ago with the Tellstick, before writing my own http server controller (an in house Livestick solution)...
    What I understand from your comment is that the G6 HID functions are enough to communicate with the device, no need to directly interface with the C DLL. I'm going to investigate this way, if I can learn something new that's a plus
    But I'm still interested in the answer about integrating external DLLs...

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    About adding binaries, you run into the issue that Girder is a multi-platform system now. You'd have to build for Linux AMD64, Raspi, Windows 32, Windows 64, OSX.
    Ron
    No support through PM

  5. #5
    Join Date
    Dec 2004
    Posts
    103

    Default

    Ok, I've read the piece of doc related to the Lua HID API, it should be easy to implement a basic Lua interface on top of this. What about a plugin? From what I've read, the set of type of controls is limited to the G6 known types.
    How can we add a control that will act on the component and will be able to set the expected values (RGB level, dim level, etc.)?

  6. #6
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    You can write full plugins in Lua + Javascript. There are a few examples in the Lua directory (examples). I believe I covered a lot of the controls that would be needed. If there is any you need that we can fit in the existing bunch do let me know.
    Ron
    No support through PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •