Skip to content

noduleio/nodule_noble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Nodule command line app This package provides a command line app for the nodule.io system that runs on any of the platforms supported by noble (currently OS X, Linux, Windows, RaspberryPI, Intel Edison).

##Installation

See specific prerequisites for RaspberryPI/Linux and Windows below.

git clone https://github.com/noduleio/nodule_noble.git
npm install

npm install may take some time as there are several native modules that need to be built.

##Configuration The default config.js file defaults to using the current machine's hostname as the id and name for the nodule client.

var os = require('os');

module.exports = {
	// set a unique id for this client
	unique_id: os.hostname(),
	// give this client a name
	name: os.hostname(),
	// server address
	endPoint: 'wss://app.nodule.io',
	// access token
	accessToken: '<ACCESS_TOKEN>'
}

You can replace os.hostname() with whatever values you choose, though you should make sure unique_id is unique accross all your command line clients.

<ACCESS_TOKEN> should be replaced with an access token that you have generated from here.

##Running To start the client type:

sudo npm start

For information on running without sudo see the noble documentation - Running without root/sudo

RaspberryPI Setup

Make sure your Pi is all up to date:

sudo apt-get update
sudo apt-get upgrade

Install the bluetooth package:

sudo apt-get install bluetooth

Make sure your bluetooth dongle is recognised:

lsusb
hcitool dev

Install node:

wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb

Now proceed with the normal install instructions.

Windows Setup

Out of the box support on windows for Bluetooth dongles is not very good.

You will need a spare Bluetooth4.0 dongle that you can use for nodule.

Then follow the instructions here to get the prerequisites for noble installed.

Make sure to read this if your dongle doesn't seem to be recognised.

Releases

No releases published

Packages

No packages published