Code Monkey home page Code Monkey logo

haiku-senseme's People

Contributors

forty2 avatar

Stargazers

 avatar

Watchers

 avatar

haiku-senseme's Issues

getting properties from L series fans

I have three L series fans which I updated recently via the iOS app. I'm unable to read some basic properties from them.

bigAssApi = require("haiku-senseme");

bigAssApi.SenseME
  .on('founddevice', dev => {
    console.log(`Found:\n name ${dev.name}\n id ${dev.id}\n type ${dev.type}\n i
p ${dev.ip}`);
    console.log(`  fan power: ${dev.fan.power.value}`);
    console.log(`  fan speed: ${dev.fan.speed.value}`);
    console.log(`  light power: ${dev.light.power.value}`);
    console.log(`  light brightness: ${dev.light.brightness.value}`);
  })
  .on('lostdevice', dev => {
    console.log(`Lost: ${dev.name}`);
  })
  .discover();

Produces

$ node example.js
server listening 0.0.0.0:31415
Found:
 name Fan
 id 20:F8:5E:D3:54:88
 type FAN,LSERIES
 ip 192.168.7.78
  fan power: undefined
  fan speed: NaN
  light power: undefined
  light brightness: NaN
Found:
 name Fan
 id 20:F8:5E:E8:85:9F
 type FAN,LSERIES
 ip 192.168.7.105
  fan power: undefined
  fan speed: NaN
  light power: undefined
  light brightness: NaN
 name Fan
 id 20:F8:5E:F2:4C:E6
 type FAN,LSERIES
 ip 192.168.7.116
  fan power: undefined
  fan speed: NaN
  light power: undefined
  light brightness: NaN

I'm not sure if I'm using the module correctly, or if the update has broken this module, or something else.

$ node --version
v6.10.3
$ npm install haiku-senseme --save
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/haiku-sense-me/package.json'
/home/pi/haiku-sense-me
└── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/home/pi/haiku-sense-me/package.json'
npm WARN haiku-sense-me No description
npm WARN haiku-sense-me No repository field.
npm WARN haiku-sense-me No README data
npm WARN haiku-sense-me No license field.

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.