alexa-remote2
Library to remote control an Alexa (Amazon Echo) device via LAN/WLAN.
Early code version.
let Alexa = require('alexa-remote2');
let alexa = new Alexa();
let cookie = 'x-amzn-dat.../ /...=" csrf=12345780';
alexa.init({
cookie: cookie,
email: '...',
password: '...',
bluetooth: true,
logger: console.log,
alexaServiceHost: 'layla.amazon.de',
userAgent: '...',
acceptLanguage: '...',
amazonPage: '...'
},
function (err) {
if (err) {
console.log (err);
return;
}
for (let device of this.devices) {
console.log (device._name);
}
}
);
Known issues/Todos
- reading notifications works, but changing NOT!
Changelog:
0.2.x
- (Apollon77) 0.2.0: several optimizations and publish as alexa-remote2 on npm
- (Apollon77) 0.2.0: use alexa-cookie@0.2.0 library to also offer proxy support
- (Apollon77) 0.2.0: retrieve automation routines in prepare
- (Apollon77) 0.2.0: enhanced sendCommand and added support for Routines and sequencial Commands
0.1.x
- (Apollon77) 0.1.3: Use specific User-Agents for Win32, MacOS and linux based platforms
- (Apollon77) 0.1.2: add logging for used Alexa-URL and user-Agent once at init
- (Apollon77) 0.1.1: rename "shuffle" to "ShuffleCommand" and repeat to RepeatCommand)
0.1.0
- (Apollon77) added automatic cookie renewal when email and password are provided
- (Apollon77) added authentication checks by bootstrap call (like alexa-remote-control)
- (Apollon77) several fixes
- (Apollon77) added logger option
0.0.x