Skip to content

hamk-automation/node-red-thingy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nordic Thingy:52 Node-red library

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

Prerequisites

  1. 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 - or https://nodejs.org/en/download/
  2. Install dependencies: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev git nodejs. (For Ubuntu/Debian/Raspbian usage)
  3. Read more installation for Windows on noble

Installation

  1. Clone the repository: git clone https://github.com/hamk-automation/node-red-thingy.git
  2. cd ./node-red-thingy.
  3. Install noble-device: npm install noble-device --unsafe-perm
  4. npm link
  5. Pause current node-red: node-red-stop.
  6. Go to node-red root directory cd ~/.node-red or cd C:\Users\my_name\.node_red: npm link node-red-thingy
  7. Run: sudo node-red-start or sudo node-red. (Give node-red root permission)