Git Product home page Git Product logo

ninja-lwrf-energy's Introduction

Ninja-LWRF-Energy

A Ninjablock driver to interface with the Lightwave RF Energy Monitor, via UDP packets to the JSJS Designs WiFi link.

The driver can be configured via the ninjablock drivers menu, the first time you use your ninja block with the wifi link, it will be necessary to register the ninja on the wifilink box. See installation and configurations instructions below.

Currently only the following features are supported,

  • Power sockets
  • On/Off light switches
  • The energy monitor

Installation

First you need to ssh into your NinjaBlock. From the same network do:

The default password is temppwd

Once logged in enter the following commands:

cd /opt/ninja/drivers
git clone https://github.com/mcmadhatter/Ninja-LWRF-Energy.git
cd Ninja-LWRF-Energy
npm install
sudo service ninjablock restart

If you want to look for errors you might want to check out the log file:

tail -f /var/log/ninjablock.log

Configure

Now that the NinjaBlock driver is installed you will need to configure your NinjaBlock to talk to your Lightwave RF Wifi Link.

  1. Browse to: https://a.ninja.is/home
  2. Click drivers
  3. Click the configure button next to Ninja-LWRF-Energy item.
  4. Click Register in the window that opens.
  5. On your Lightwave RF WiFi box click yes to add the device.

Setup Devices

There are two ways to make your Lightwave RF devices visible in the NinjaBlock dashboard.

###1. Import from LightwaveRF Website

This will only work if you have setup your devices using LightwaveRF and have saved your settings to the LightwaveRF server.

  1. Browse to: https://a.ninja.is/home
  2. Click drivers
  3. Click the configure button next to Ninja-LWRF-Energy item.
  4. Enter your email address and PIN.
  5. Click get existing config.

###2. Edit the index.js file

Alternatively to register light switches/sockets currently requires editing index.js, to add another device cut and paste this

self.emit('register', new Device("Light", "R3D5"));

and change the R and D numbers to match the room and device on the LWRF Wifi Link box.

Todo

  • Add support for 433Mhz Lightwave RF devices without needing to use udp via the wifi box.
  • Tidy up the code.

ninja-lwrf-energy's People

Contributors

mcmadhatter avatar simonmcmanus avatar chrisns avatar stevcrai avatar stevecraig avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.