kevinohara80 / elkington Goto Github PK
View Code? Open in Web Editor NEWA node.js module for interfacing with the Elk M1 Gold automation controller
License: MIT License
A node.js module for interfacing with the Elk M1 Gold automation controller
License: MIT License
Is this software capable of putting an Elk M1 into Remote Programming mode? Specifically, connecting to the ElkRP2 software. After looking through the code, I don't think so, but I'm not very familiar with JS so I could've easily overlooked something.
If the weather.js example is scaled down to:
var elknode = require('../index');
var temp = 'zero';
var elk = elknode.createConnection({ port: 2101 , host: '192.168.123.34'});
elk.on('connect', function(data) {
elk.speak('outside temperature is ' + temp + ' degrees');
elk.disconnect();
});
This error occurs:
index.js:70
msg.host = that._connection.address().address;
TypeError: Cannot read property 'address' of null
It seems that removing the 'request' function call is related to the issue.
insecure connection works fine. Maybe an issue with old ssl versions or certificates on the XEP?
~/node $ node elktest.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: socket hang up
at SecurePair.error (tls.js:1010:23)
at CleartextStream.read as _read
at CleartextStream.Readable.read (_stream_readable.js:340:10)
at EncryptedStream.write as _write
at doWrite (_stream_writable.js:225:10)
at writeOrBuffer (_stream_writable.js:215:5)
at EncryptedStream.Writable.write (_stream_writable.js:182:11)
at write (_stream_readable.js:601:24)
at flow (_stream_readable.js:610:7)
at Socket.pipeOnReadable (_stream_readable.js:642:5)
pi@raspberrypi ~/node $
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.