Web app connection with Flic HUB



  • Hi, how are you!
    See more, I have a flic hub and about 20 fluc buttons and I try to make a web application with connection to the hub. First, is this possible?

    My idea is the following:
    Click the button -> Connection with the hub -> From a webapp make a request to the hub -> Know which button did the action and what kind of action (one click, two clicks, etc)

    Or if there is some way to exchange information with the hub to know the details of the buttons connected.

    If possible, will you be able to guide me with some documentation to start or, if not, what could I do to obtain the aforementioned functionality?

    Thank you very much for your attention.



  • I know this is a little old, but here is one way to approach this.

    Create a webhook endpoint on the server, then use a websocket to push messages to the frontend.

    Register the buttons with the database, giving them a UUID.

    Split the API route based on button actions, passing the button's UUID as the parameter.

    Assign the URL as an action to the botton, i.e. ".../button/action/uuid

    Hope that helps


Log in to reply