20 May 2018, 16:29

To be able to create a programmatic response to flic actions from the hub, I have created a quick http listener that takes a query string and lets me run whatever scripts I want on another computer.

This takes a get request as follows:

http://flic-hub-listener/actions?hubname=one&flicname=one&action=click

The issue is that I have 4 flics on one hub, each with 3 actions therefore I need to paste a modified action in 12 times to make this work.

As mentioned in my earlier post(https://community.flic.io/post/18066) it would be much easier if I can create actions for all buttons on the hub, for example a URL with variables for hub name, flic name and action like this:

http://flic-hub-listener/actions?hubname={hub_name}&flicname={button_name}&action={button_action}

This will be much more robust and easier to manage for those of us who want to build their own scripts with the hub instead of using the supplied apps. These variables may be a benefit to other apps as well.