Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Web app connection with Flic HUB

    Developers
    2
    2
    1081
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • restauraid.mx
      restauraid.mx last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ruffCode
        ruffCode last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post