node-red-contrib-alexa-remote
Version:
An Alexa Remote client for node-red, a wrapper for [Alexa-remote](https://github.com/Apollon77/alexa-remote)
25 lines (16 loc) • 623 B
JavaScript
var debug = false;
module.exports = function(RED) {
var AlexaCredentialsNode;
AlexaCredentialsNode = function(config) {
RED.nodes.createNode(this, config);
var node = this;
if(debug) {node.warn(config);}
this.cookie = config.cookie;
this.email = config.email;
this.password = config.password;
this.alexaServiceHost = config.alexaServiceHost;
this.acceptLanguage = config.acceptLanguage;
this.amazonPage = config.amazonPage;
};
RED.nodes.registerType("Alexa-credentials", AlexaCredentialsNode);
};