bjpirt / heatmiser-js Goto Github PK
View Code? Open in Web Editor NEWA node.js app that talks to heatmiser wifi thermostats
License: MIT License
A node.js app that talks to heatmiser wifi thermostats
License: MIT License
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 ๐
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.