Skip to content

Commit

Permalink
Update to 5.0.41 to allow setting of custom push dispatch url
Browse files Browse the repository at this point in the history
  • Loading branch information
bbindreiter committed Sep 9, 2023
1 parent e25e6e2 commit 16545c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions nodes/alexa-remote-account.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
<label for="node-config-input-alexaServiceHost"><i class="fa fa-amazon"></i> Service Host</label>
<input type="text" id="node-config-input-alexaServiceHost" placeholder="Required">
</div>
<div class="form-row">
<label for="node-config-input-pushDispatchHost"><i class="fa fa-amazon"></i> Push Dispatch Host</label>
<input type="text" id="node-config-input-pushDispatchHost" placeholder="Optional">
</div>
<div class="form-row">
<label for="node-config-input-amazonPage"><i class="fa fa-amazon"></i> Page</label>
<input type="text" id="node-config-input-amazonPage" placeholder="Required">
Expand Down Expand Up @@ -231,6 +235,7 @@ <h3><strong>References</strong></h3>
cookieFile: { required: false, value: ''},
refreshInterval: { required: false, value: '3'},
alexaServiceHost: { required: true, value: 'pitangui.amazon.com' },
pushDispatchHost: { required: false, value: '' },
amazonPage: { required: true, value: 'amazon.com' },
acceptLanguage: { required: false, value: 'en-US' },
onKeywordInLanguage: { required: false, value: 'on' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/alexa-remote-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ module.exports = function (RED) {
function AlexaRemoteAccountNode(input) {
RED.nodes.createNode(this, input);

tools.assign(this, ['authMethod', 'proxyOwnIp', 'proxyPort', 'cookieFile', 'refreshInterval', 'alexaServiceHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent'], input);
tools.assign(this, ['authMethod', 'proxyOwnIp', 'proxyPort', 'cookieFile', 'refreshInterval', 'alexaServiceHost', 'pushDispatchHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent'], input);
this.usePushConnection = input.usePushConnection === 'on';
this.autoInit = input.autoInit === 'on';
this.name = input.name;
Expand Down Expand Up @@ -413,7 +413,7 @@ module.exports = function (RED) {
// this.initing = true;

let config = {};
tools.assign(config, ['proxyOwnIp', 'proxyPort', 'alexaServiceHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent', 'usePushConnection'], this);
tools.assign(config, ['proxyOwnIp', 'proxyPort', 'alexaServiceHost', 'pushDispatchHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent', 'usePushConnection'], this);
config.logger = this.debugCb;
config.refreshCookieInterval = 0;
config.proxyLogLevel = 'warn';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-alexa-remote2-applestrudel",
"version": "5.0.40",
"version": "5.0.41",
"author": {
"name": "bbindreiter",
"email": "bernd.bindreiter@gmail.com"
Expand Down Expand Up @@ -43,7 +43,7 @@
"url": "https://github.com/bbindreiter/node-red-contrib-alexa-remote2-applestrudel/issues"
},
"dependencies": {
"alexa-remote2": "^6.0.1"
"alexa-remote2": "^6.1.1"
},
"engines": {
"node": ">=16.0.0"
Expand Down

0 comments on commit 16545c5

Please sign in to comment.