forked from SensorsIot/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node-Red - add support for node-red-contrib-generic-ble
Following on from issue SensorsIot#64, this adds support for Bluetooth in Node-Red: 1. Adds two volume mappings to the template `service.yml`: ``` - /var/run/docker.sock:/var/run/docker.sock - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket ``` 2. Adds device mappings to the template `service.yml`: ``` devices: - "/dev/ttyAMA0:/dev/ttyAMA0" - "/dev/vcio:/dev/vcio" - "/dev/gpiomem:/dev/gpiomem" ``` 3. Changes `build.sh` to: * unconditionally satisfy the `eudev-dev` dependency for `node-red-contrib-generic-ble` by inserting these lines in the generated `Dockerfile`: ``` USER root RUN apk update RUN apk upgrade RUN apk add --no-cache eudev-dev ``` * Add `node-red-contrib-generic-ble` to the list of optional nodes. 4. Changes `menu.sh` to: * define a `user_in_group` function to facilitate checking whether the current user is a member of a particular group. * extends the initial checking performed by the menu to ensure that the current user is a member of both `docker` and `bluetooth` groups. > On the first run of the menu after this patch is applied, most users will likely encounter a reboot prompt enforcing membership of the `bluetooth` group.
- Loading branch information
1 parent
afb4733
commit 91c3fc3
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters