Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo1 month ago
    LED Strip Controlled by Amazon Echo

    It will work! In step 9 you need to use an amazon account to set up the skill. Make sure to use this account when you set up Alexa on your Raspberry Pi.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo5 months ago
    LED Strip Controlled by Amazon Echo

    It should work either way, you could change it to index.handler, but then make sure you rename the local file to index.js and the zip to index.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    Sorry that you're getting so many errors I think I know what is wrong though. In the "tools.js" file:1.) (Line 8)Change the port from 443 to 80 (Assuming that's the one you opened in step 10)2.) (Line 7)Switch out hostname '208.102.106.59' with your EXTERNAL ip. This is different from the internal ip you assigned to your raspberry pi. On any computer in your home network open up the browser and search "external ip" and the one you have should pop up as the first result.Let me know if that fixes it.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    ChangeColor is just the function name, you need to type/say one of the phrases associated with ChangeColor. Here are snippets of phrases we associated with ChangeColor in our interaction model:1.) ChangeColor change color to {Color}2.) ChangeColor change to {Color}3.) ChangeColor turn lights to {Color}So for example, try typing "change color to blue" in the testing tab. Does Alexa say something different now?

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    You should name the javascript file "exports.js" the compressed zip to "exports" and in the lambda console the handler should be called "exports.handler"

    No, you do not need to publish the skill, it should work only for you right now.

    Yeah that means there is something wrong, most likely in the lambda function code, I will get back to you later today with a more detailed walk through of how we can debug it.

    One thing you should try is in the Lambda Management Console:1.) select your function name2.) Click on the code tab3.) Click on the "Actions" drop down4.) Select "configure test event"5.) For sample event template choose "Alexa Start Session"6.) Click "Save and test"Does the output say "Hello, how may I help you today?" Or does it error out?

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    No problem! Let me know if you run into anymore problems.

    Step nine is where you create the settings for your alexa skill and how the user will interact with it. This article explains how to do this well: "https://medium.com/@bthdonohue/build-your-first-al... Step 1 in the article is the same process as my step 8, and step 2 in the article is the same process in step 9 of mine just in further detail. Look how they did step two in the article and create your skill the same way following these differences: 1.)In the Skill information tab, create an invocation name that is relevant, for example if the LED strip is for your desk, you could use the invocation name "desk lights" . That way when you use the skill you would say "Alexa, ask desk lights change colors to blue". 2.)On the next tab called Interaction Model you shou...

    see more »

    Step nine is where you create the settings for your alexa skill and how the user will interact with it. This article explains how to do this well: "https://medium.com/@bthdonohue/build-your-first-al... Step 1 in the article is the same process as my step 8, and step 2 in the article is the same process in step 9 of mine just in further detail. Look how they did step two in the article and create your skill the same way following these differences: 1.)In the Skill information tab, create an invocation name that is relevant, for example if the LED strip is for your desk, you could use the invocation name "desk lights" . That way when you use the skill you would say "Alexa, ask desk lights change colors to blue". 2.)On the next tab called Interaction Model you should copy the Intent Schema, Custom Slot Type, and Sample Utterances I provided in step 9 and paste them into here. Also there is a BETA for the interaction model tab so if you're in it scroll to the bottom and click leave, then you will be at the screen where you can paste these values in.3.)On the configuration tab, select "AWS Lambda ARN" as the "service endpoint type". Then check mark North America. Now go back to the Amazon Management Console, select the lambda function you created, and copy the ARN in the top right corner. It should look similar this "arn:aws:lambda:us-east-1:xxxxxxxxxxx:function:MyLambdaFunction". And then paste this value back in the Developer Portal where it ask for the ARN value. Also make sure you created this lambda function in the "N.Virginia" region. You can change the region you are in the upper right hand corner of the Management Console.Let me know if you get stuck anywhere or are still having trouble with the setup.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    This might be it. In line 30 of the index.php file does it say this: "file_put_contents('settings.txt', $combined);" I think I was missing the starting ' for 'settings.txt'. Let me know if that fixes it, I uploaded the new index.php file to my github already.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    I would guess then that the nginx server isn't running on the Raspberry Pi, or the nginx server isn't pointing towards the index.php file. Can you retry the setup in step three where you set up the nginx server from this site: https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md. Specifically I would check the file "sudo nano /etc/nginx/sites-enabled/default" and ensure that you added "index.php" around line 25 so it looks like this "index index.php index.html index.htm;". Were you able to get this step to work before where the webpage showed "Welcome to nginx"?

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    No problem. What is the full URL you are typing in to change the LEDs? Also you are right that the screen should be blank. You can be sure you're reaching the right URL by putting <h1>LED Control Screen</h1> at the bottom of your index.php file. And then when you access the page you should see the text "LED Control Screen". Let me know if that helps.

    No problem man. What is the full URL you are typing in to change the LEDs? Also you are right that the screen should be blank. You can be sure you're reaching the right URL by putting <h1>LED Control Screen</h1> at the bottom of your index.php file. And then when you access the page you should see the text "LED Control Screen". Let me know if that helps.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo6 months ago
    LED Strip Controlled by Amazon Echo

    If you replace "response = requests.get("https://192.168.1.43/test1.php", verify=False)" in lines 18, 22, and 82 with "response = requests.get("https://192.168.1.43/getColors.php", verify=False)" do you get the same error? I think I might have changed test1.php to getColors.php in my last push to github.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo10 months ago
    LED Strip Controlled by Amazon Echo

    Hello Cashee,I did some research and this would definitely be possible with the google home. You can create a skill for your google home at this link: https://api.ai/google-assistantThere are many ways to go about changing the LED strip after that. You could have your google home skill post to a AWS API endpoint that interacts with a AWS lambda function, which you would create both the API and Lambda Function in AWS. Your lambda function then could directly post to the web server on your pi like how I did from the inscrutables above. Or your lambda function could change the state of the LED strip in AWS IoT, and your pi could listen to the state changes in AWS IoT and change the gpio pins accordingly. I know that was a lot, let me know if you have any questions.

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo10 months ago
    LED Strip Controlled by Amazon Echo

    Awesome! I'm glad it worked for you. Let me know if you have any other questions

    View Instructable »
  • AdamF109 commented on AdamF109's instructable LED Strip Controlled by Amazon Echo10 months ago
    LED Strip Controlled by Amazon Echo

    One more thing, make sure to replace your pi's ip with mine again, (I'm using a different IP on my raspberry pi now - 10.0.0.43). Also I don't think you need the "verify=false" part after.

    Okay I think I fixed it a while ago but never uploaded it to GitHub. It's up there now, let me know if it works for you!

    I'm not sure, if you are able to program your own skills on a Google Home similar to the Amazon Echo I would say so. I'll will do some research on it, please let me know if you find anything on it!

    Hello,Yes you are correct, the indentation got messed up somewhere when I uploaded it to GitHub. I'll try to re-upload it soon.

    View Instructable »
  • AdamF109 entered LED Strip Controlled by Amazon Echo in the LED Contest contest 1 year ago