Skip to content

yoctopuce/Yocto-Flic

Repository files navigation

Yocto-Flic

Yocto-Flic is a small python application which leverages the Fliclib SDK to interface Yoctopuce devices with Flic buttons. More info on Yoctopuce's web site

Screenshot example

Supported functions are

Requirement

This application as been developed on a Raspberry PI 3 B+, it might work on other systems, as long as they feature a bluetooth adapter, but we didn't try.

Installation

Download and copy the Fliclib SDK for Linux files whenever you want. Read the readme.md file. Position yourself in the bin/armv6l/ folder and make sure the Flic server can access the Bluetooth stack (you only need to do that once) by typing

$ sudo setcap cap_net_admin=ep ./flicd

then start the Flic server from bin directory

$ ./flicd -f flic.sqlite3

To make sure that the Flic button server if working properly, start the new_scan_wizard python script and follow instructions

$ python3 fliclib/clientlib/python/new_scan_wizard.py

Note : flicd will create a flic.sqlite3 file, make sure that file permissions are properly set, especially if you plan to start the server at boot up.

Download and copy the Yocto-Flic files when ever you want, and start the Yocto-Flic Script

$ python3 Yocto-flic.py

Then use a web browser to connect the Raspberry running the script (port 8081).

Usage

Usage is supposed to be pretty straight forward: just pair some button, add addresses of some YoctoHub or VirtualHub connected to compatible devices, compatible functions will be automatically listed. Then configure buttons Click, Double click and Hold actions. Here are the main points of the user interface:

UI description

About

Application allowing to control Yoctopuce actuators from Flic buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published