Git Product home page Git Product logo

alexa-xbox's Introduction

alexa-xbox

This is an application for use with Amazon Alexa in order to turn your Xbox on using your Amazon Echo or Echo Dot.

Install

When setting up an Alexa app, you can specify a secure URL where these files should be placed. The only file you will need to edit is the index.php file.

$Alexa->setApplicationID("amzn1.ask.skill.12345678-1234-1234-1234-123456789123");  // Set the application ID for your skill here
$Alexa->setApplicationName("Xbox On");  // Change this to whatever you are calling your app

$Xbox->setIPAddress("123.456.654.321");  // Set the public IP address of your Xbox here
$Xbox->setXboxLiveID("ABCD1234ABCD1234");  // Set the Xbox live ID here

IP Address & Xbox Live device ID

For the app to connect to your Xbox, 3 things are required:

  1. Your router must forward port 5050 to your Xbox.
  2. As your Xbox will be turned on remotely, the public IP address for your Xbox is needed.
  3. The Xbox Live device ID. On your Xbox: All settings > System > Console info & updates.

Testing

It's probably a good idea to test the connection first, between the server that runs the app and your Xbox. To do this, you can simply comment out the $Alexa->auth() statement as requests from Alexa will only ever pass this check.

How it works

The first thing the app does, is check that the Xbox is not already running by pinging it. If it isn't, then it will attempt to send a magic packet to the Xbox. It will wait 1 second before pinging again to see if the packet was received and the Xbox turned on. 3 attempts will be performed at turning the Xbox on. After the 3rd failed attempt, it will generate data for Alexa asking you to try again (It's worth noting that turning the Xbox on this way immediatly after you have turned it off doesn't always work. There is normally around 10-30 seconds of cool time before it will accept the packet).

alexa-xbox's People

Contributors

grimespie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexa-xbox's Issues

"Hey Cortana" Forwarding

Paul,

Would it be possible to invoke Cortana and forward information that is provided to Alexa? The way I see it, your code works by sending a magic "on" packet to the Xbox. Is there such thing as a magic "Cortana" packet that you could send with the voice-text information recorded by Alexa? Correct me if I am wrong but it would seem that turning the Xbox would be around the same level of difficulty.

Guide

Would it be possible for you to make a guide please

Needs publishing to Alexa skills

Please finish this up and publish to the skills page! My kinect broke and i'd love to use Alexa as the backup. A 'turn off' command would be great too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.