From c4915f4ec6e03257167f5b34f75af79690ecc494 Mon Sep 17 00:00:00 2001 From: John Kelvie Date: Tue, 15 Aug 2017 14:56:59 -0500 Subject: [PATCH 1/2] Fix issue where it is always using Dynamo --- lib/index.js | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/lib/index.js b/lib/index.js index 7f15446..beb59e5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -55,25 +55,20 @@ function processEvent (event, context, appID, rssURL) { alexa.state = constants.states.START_MODE; } - if (event.context !== undefined && event.context.System.device.supportedInterfaces.AudioPlayer === undefined) { - alexa.emit(':tell', 'Sorry, this skill is not supported on this device'); - } else { - // The resources are loaded once and then cached, but this is done asynchronously - //AudioManager.load("XAPP", xapp, {environment: environment}, intentName, function (error) { - AudioManager.load('URL', rssURL, 60, function (error, feed) { - if (error !== undefined && error !== null) { - context.fail(error); - } else { - alexa.execute(); - } - }); - } + AudioManager.load('URL', rssURL, 60, function (error, feed) { + if (error !== undefined && error !== null) { + context.fail(error); + } else { + alexa.execute(); + } + }); + } function setupDynamo (alexa) { // Flip this flag if you want to use dynamo // If this is not set, we just use a simple, local Mock DB - if (process.env.USE_DYNAMO) { + if (process.env.USE_DYNAMO && process.env.USE_DYNAMO === "true") { AWS.config.update({ credentials: { accessKeyId: process.env.AWS_ACCESS_KEY_ID, From a77cb38329cab0ad18e3cfc04cc61574e1623816 Mon Sep 17 00:00:00 2001 From: John Kelvie Date: Tue, 15 Aug 2017 14:58:09 -0500 Subject: [PATCH 2/2] Fixed issue with README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9dcebd..bd8aa3a 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ It is also set as a custom element: If you would like to get started working with this project quickly, to see how the streamer works, just follow these directions. -You can take a look at the [deploy README] (https://github.com/bespoken/streamer/README_DEPLOY.md) +You can take a look at the [deploy README](https://github.com/bespoken/streamer/README_DEPLOY.md) if/when you want to make the skill available publicly. These steps will allow you to get quickly setup and then do "frictionless iterations" on your code. ## Running the Sample