C-Gate C Library Linux

Discussion in 'C-Gate Developers' started by andrew12, Jun 1, 2017.

  1. andrew12

    andrew12

    Joined:
    Mar 23, 2017
    Messages:
    14
    Likes Received:
    5
    Location:
    Australia
    Just thought I would share a library I've been working on.

    There are various methods to access C-Bus and cgate such as CBM library, MQTT and DBUS but I wanted a wanted to access C-Gate directly and not tie up a PCI with the CBM library. I do really like the the CBM library though.

    So here it is, a C Library for Linux to access C-Bus through C-Gate, It only supports lighting and measurement events through a callback, similar to cbm. I am no expert programmer so probably a bit rough, constructive criticism welcome.

    Documentation is lacking and I will try to add some in the next few days plus provide an example. I use it successfully to control some RF blinds I got from spotlight.

    https://github.com/Andrewt12/libcgate
     
    andrew12, Jun 1, 2017
    #1
  2. andrew12

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    daniel, Jun 5, 2017
    #2
  3. andrew12

    andrew12

    Joined:
    Mar 23, 2017
    Messages:
    14
    Likes Received:
    5
    Location:
    Australia
    Thanks Daniel,

    I have added a licence and a few updates also, I added an example on how I use it to control RF motorised roller blinds I got from spotlight on the cheap and a simple measurement device using a ds18b20 and a OrangePI-Zero and have it display on my eDLT.

    The demos are in there own repository https://github.com/Andrewt12/libcbus-demos
    Hope someone finds it useful.

    Cheers
     
    andrew12, Jun 17, 2017
    #3
  4. andrew12

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    I found this library on Github from a post here

    https://github.com/micolous/cbus - so I am not sure if it is the same repository as indicated above.

    I want to create a Docker container for it, and I followed the instructions on the readme but the build failed

    "docker build" requires exactly 1 argument.

    How do I build the Docker container for this?

    Thanks
     
    znelbok, Jun 15, 2020
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.