

If it's "double_click" turn on, then off, blue led. If script find "click" into Pushbullet answer Raspberry turn on, then off, red led. Pushbullet API delete push notification stored on server Script verify, in the Pushbullet answer, if there are one of the three Flic button conditions: click, double_click or hold.

Pushbullet API launch a request to its server Inside the script you have only to substitute INSERT HERE with access token obtained from Pushbullet site settings page (see STEP 3).Ĭopy the script into your /home/Pi directory, then run using: sudo python piflic.py Piflic.py Python script has been created using Pushbullet API. This is just a test, useful for more complex projects. All this wirelessly just with Flic, smarphone and Raspberry Pi (and internet connection, obviously). The project is aimed to understand how it works, so Raspberry Pi is programmed to turn on different leds and play buzzer sound for each kind of Flic pressing modality.
#Smart button flic full#
For more info visit: Waiting for a full Raspberry Pi support, i've made this project that allow Pi to listen push notification when Flic is pressed. Once you press it, the smartphone receive the information then, Flic app, will perform a programmable action. Connected via bluetooth to your smarphone, it can do some actions pressing a single click, a double click or hold mode.

It's a wireless smart button that can perform various functions. I said "i must have it".Īfter several months, yesterday, Flic has been delivered to me. In august 2014 i read about an interesting Indiegogo crowdfounding campaign named "Flic the wireless smart button".
