Skip to content

GF3R/Rasperry_Sensor_Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

119 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Sensor Hub

this will only work if you have the usb device configured correctly. Check below how this can be achieved. The Z-Stick was used in this exmaple_proj

First time initialisation:

This Project is created for the raspberry pi therefore we recommend the following steps:

$ sudo apt-get install git
$ git clone https://github.com/GF3R/Rasperry_Sensor_Hub.git
$ cd Raspberry_Sensor_Hub
  • run the init script
  • this enables the following features:
    • Installs all the required packages
    • Runs the init_zwave as a service
    • Enables an auto_update function, which runs at 23:30
  • or get the packages yourself:
$ apt-get update
$ apt-get install nodejs npm
$ apt-get install libopenzwave-doc libopenzwave1.5 libopenzwave1.5-dev
  • if all was done correctly you can run the test project as follows:
$ cd example_proj
$ node init_zwave.js

How to intialize a new Project:

  • create a new folder and get the NPM packages:
$ mkdir MyProject
$ cd MyProject
$ npm install openzwave-shared
  • then the project is ready for your code
  • dont forget to include the npm lib:
var ZWave = require('./node_modules/openzwave-shared/lib/openzwave-shared.js');
//and set the driver Path!
var driverPath = '/dev/serial/by-id/usb-0658_0200-if00';
  • to see what id your device has you can do the following:
$ lsusb

TODO

  • Add some sort of config:
    • Should contain USB Id
    • Maybe Wlan connections?
    • MQTT Connection string
    • ...
  • Write the code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •