I have posted to github a pair of blynk libraries to control the Raspberry Pi from the Blynk APP on smartphone:
One version operates on nodejs (if upgraded to V6, and only on armV7).
The other runs on any Pi with python or python3. (ie good for RPi-zero-W)
These are independent libraries. But both have the same design targets and almost the same functionality. They are both tagged as being “PiBlynk”, just one in python and one in javascript!
Design targets:
- stability in connection to server
- full suite of interfacing functions
- similarity of functions/functionality in the two versions, as far as the languages allow
- easy compatibility with Raspberry Pi GPIO and PiCamera
Features:
- Automatic connecting to Blynk server, and maintaining that connection.
- Full suite of functions for interfacing to GPIO and virtual pins of the Blynk protocol.
- Nil custom coding for simplest GPIO in/out
- Widget object for LCD
- Widget for GPS (with distance and direction),
- Widget for accelerometer (with pitch and roll)
- Generic buffering widget for any sensor pushing data from APP (eg lightmeter)
- Send email, tweet, smartphone notification.
- Change phone widget properties (colour, label)
- Widget for a “bridge”, ie gpio or virtual commands to another hardware device.
- Compatible with PiCamera
- Works on Android, iPhone, tablets
- Access your RPi from anywhere on the internet
- Extensive example files.
The PiBlynk-py library was inspired by, and leveraged from, the work of the WIPY project. https://github.com/wipy/wipy/blob/master/lib/blynk/BlynkLib.py
and thence from
https://github.com/youngsoul/BlynkLib
The piblynk-js library was derived from: