Skip to content
Application allowing to control Yoctopuce actuators from Flic buttons
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cdll
Yocto-flic.py
fliclib.py
index.html
readme.md
yocto_api.py
yocto_buzzer.py
yocto_currentloopoutput.py
yocto_relay.py
yocto_servo.py
yocto_voltageoutput.py

readme.md

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 install the Fliclib SDK for Linux, 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

$ ./flicd -f flic.sqlite3

Download and install the Yocto-Flic files, 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

You can’t perform that action at this time.