Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    FlicHub configuration for HTTP request

    Developers
    flic hub htt
    3
    5
    2541
    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.
    • abhay
      abhay last edited by abhay

      Hello,
      I'm about to invest in a FlicHub and several Flics. Wish to clarify some doubts first:

      1. How to configure the actions of the individual buttons connected to the Hub? Do I need to use the iOS/Android apps? Is there any other way to do this programmatically?
      2. Is it possible to make an HTTPS POST request or is it only HTTP?
      3. Is it possible to invoke an AWS Lambda function using Flic action?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • home.assistant.2020
        home.assistant.2020 last edited by

        I am attempting to integrate the flic button using the flic hub with noonlight API.

        This is what I need to pass to noonlight using the flic hub:

        curl --request POST
        --url https://api-sandbox.noonlight.com/dispatch/v1/alarms
        --header 'Accept: application/json'
        --header 'Authorization: Bearer AO3yovlMivKQrNLp72cH5QRLoazSbMxS'
        --header 'Content-Type: application/json'
        --data '{"location":{"address":{"line1":"1234 Street Ave.","city":"East City name","state":"AL","zip":"92310"}},"services":{"police":true,"fire":true,"medical":true},"instructions":{"entry":"0000"},"name":"John Smith","phone":"15555555555","pin":"0000"}'

        How would I format this in the flic internet request ?

        1 Reply Last reply Reply Quote 0
        • home.assistant.2020
          home.assistant.2020 @oskar last edited by

          @oskar I am attempting to integrate the flic button using the flic hub with noonlight API.

          This is what I need to pass to noonlight using the flic hub:

          curl --request POST
          --url https://api-sandbox.noonlight.com/dispatch/v1/alarms
          --header 'Accept: application/json'
          --header 'Authorization: Bearer AO3yovlMivKQrNLp72cH5QRLoazSbMxS'
          --header 'Content-Type: application/json'
          --data '{"location":{"address":{"line1":"1234 Street Ave.","city":"East City name","state":"AL","zip":"92310"}},"services":{"police":true,"fire":true,"medical":true},"instructions":{"entry":"0000"},"name":"John Smith","phone":"15555555555","pin":"0000"}'

          How would I format this in the flic internet request ?

          Thank you

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

            Thank you, @oskar. Will give it a shot.

            On a slightly unrelated note, is the Hub still on backorder? It seems not immediately available ...

            1 Reply Last reply Reply Quote 0
            • oskar
              oskar FlicTeam last edited by

              Hi!

              1. Right now, the only way to configure the hub and its buttons is through the mobile apps.
                However, we are working on a more programatic approach for this to enable people to create more dynamic setups, which will enable you to configure the hub without the use of a phone.

              2. Both HTTP and HTTPS is supported!

              3. I'm not sure about AWS Lambda, but if it has a HTTP/S REST API, you should be able to replicate this request with the action HTPP Request.

              Regards
              Oskar Öberg

              home.assistant.2020 1 Reply Last reply Reply Quote 0
              • First post
                Last post