Coder Social home page Coder Social logo

heatmiser-js's People

Contributors

bjpirt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

heatmiser-js's Issues

ERROR => Trying to read beyond buffer length

When I try to run the test program with the following parameters, it crashes with an AssertionError: Trying to read beyond buffer length.

I got the regular Wifi thermostat, so not the timer and not the advanced version

Here is the console output:
node test.js -h 192.168.96.30 -p XXXX

assert.js:102
throw new assert.AssertionError({
^
AssertionError: Trying to read beyond buffer length
at Buffer.readUInt8 (buffer.js:598:12)
at parse_dcb (/home/pi/heatmiser/heatmiser-js/lib/heatmiser.js:28:63)
at parse_response (/home/pi/heatmiser/heatmiser-js/lib/heatmiser.js:87:10)
at Socket.read_device (/home/pi/heatmiser/heatmiser-js/lib/heatmiser.js:99:8)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:397:14)

I only figured out that the library keeps crashing after trying to build a ninjablocks (http://ninjablocks.com) driver for my thermostat for 3 hours ๐Ÿ˜„

Apache, MIT, LGPL license

Hi @bjpirt thanks so much for your work!

I have stripped the project into components, creating a node package with just the heatmiser sdk, that I'm using for a NinjaBlock module to connect to the thermostats, planning to add write capabilities to change temperature and home/away status
https://github.com/carlossg/heatmiser-node

Would it be possible to have that code under a more permissible license to embed it into other apps with no issues? I typically use ASL but MIT, or LGPL would help.

Thanks!

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.