This library is using Nordic-Thingy52-Nodejs and Noble-device BLE abstract to collect data from Thingy device.
Visualize on : https://iot.research.hamk.fi/visu/d/-BPJu9mik/thingy?from=1523898194792&to=1523908994792&orgId=2&refresh=5s
- Add the latest version of Node.js to package manager (must be at least version 7.x):
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
orhttps://nodejs.org/en/download/
- Install dependencies:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev git nodejs
. (For Ubuntu/Debian/Raspbian usage) - Read more installation for Windows on noble
- Clone the repository: git clone https://github.com/hamk-automation/node-red-thingy.git
cd ./node-red-thingy
.- Install noble-device:
npm install noble-device --unsafe-perm
npm link
- Pause current node-red:
node-red-stop
. - Go to node-red root directory
cd ~/.node-red
orcd C:\Users\my_name\.node_red
:npm link node-red-thingy
- Run:
sudo node-red-start
orsudo node-red
. (Give node-red root permission)