Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blocks:app-note:flic [2024-03-22 13:46] – [Configure the Flic buttons action] mattias | blocks:app-note:flic [2024-03-22 14:03] (current) – [Configure the button action] mattias | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| - | The Flic2 buttons is a Swedish crowdfunded project by [[https:// | + | The Flic2 buttons is a Swedish crowdfunded project by [[https:// |
| The buttons communicate over BLE (bluetooth low energy) using a mobile device or a Flic hub as the reciever. | The buttons communicate over BLE (bluetooth low energy) using a mobile device or a Flic hub as the reciever. | ||
| A button can trigger three different commands depending on if it is a Push, a long Push and Hold or a Double Push. | A button can trigger three different commands depending on if it is a Push, a long Push and Hold or a Double Push. | ||
| Line 31: | Line 31: | ||
| Set the method to GET. | Set the method to GET. | ||
| - | Enter your server details in the URL like in the exampel below: | + | Enter your server details in the URL in this format: |
| < | < | ||
| - | http://< | + | http(s)://< |
| </ | </ | ||
| Example: | Example: | ||
| Line 47: | Line 47: | ||
| =====Trigger a task==== | =====Trigger a task==== | ||
| - | The user script exposes the lastMessage in blocks. If a message is received the property' | + | The user script exposes the //lastMessage// property |
| Add a task and use the lastMessage property as a trigger like in the example screen shot. | Add a task and use the lastMessage property as a trigger like in the example screen shot. | ||
| - | We can also use some if statement to perform different actions depending on what message was recieved. | + | We can also use some if statement to perform different actions depending on what message was received. |
| {{: | {{: | ||