Giter VIP home page Giter VIP logo

python-ps4's Introduction

Overview

The python-ps4 project allows you to control your playstation with your voice with Google!

Build Instructions

Prerequisites

Configure the Actions project

Note: This project uses Cloud Functions for Firebase, which requires you to associate a billing account with your project. Actions projects do not create a billing account by default. See Create a new billing account for more information.

  • Create a new Smart Home project in the Actions console
  • Deploy the placeholder smart home provider to Cloud Functions for Firebase using the same Project ID:
    npm install --prefix functions/
    npm run firebase --prefix functions/ -- use ${PROJECT_ID}
    npm run deploy --prefix functions/
    
  • In Develop > Actions, set the following configuration values that matches the Cloud Functions for Firebase deployment:
    • Fulfillment: https://${REGION}-${PROJECT_ID}.cloudfunctions.net/smarthome
  • In Develop > Account linking, set the following configuration values:
    • Linking type: OAuth / Authorization code
    • Client ID:: placeholder-client-id
    • Client secret: placeholder-client-secret
    • Authorization URL: https://${REGION}-${PROJECT_ID}.cloudfunctions.net/authorize
    • Token URL: https://${REGION}-${PROJECT_ID}.cloudfunctions.net/token

Select a discovery protocol

Choose one of the supported the discovery protocols that you would like to test, and enter its attributes in the Actions console at Develop > Actions > Configure local home SDK under Device Scan Configuration.

Note: These are the default values used by the virtual device for discovery. If you choose to use different values, you will need to supply those parameters when you set up the virtual device.

UDP

  • Broadcast address: 255.255.255.255
  • Broadcast port: 3312
  • Listen port: 3311
  • Discovery packet: A5A5A5A5

Deploy the local execution app

Serve the sample app locally from the same local network as the Home device, or deploy it to a publicly reacheable URL endpoint.

  • Start the local development server:

    npm install --prefix app/
    npm run build --prefix app/
    npm start --prefix app/
    

    Note: The local development server needs to listen on the same local network as the Home device in order to be able to load the Local Home SDK application.

  • Go to the smart home project in the Actions console

  • In Develop > Actions > On device testing set the Chrome and Node development URLs to the ones displayed in the local development server logs.

Deploy Playstation App

Configure ip, port, and credential in python-ps4.ini located in your ${HOME} directory.

  • IP: The address where python app is hosted
  • Port: The port the python web app is served on
  • Credential: The credential is obtained from the playstation using the playstation second screen app and Wireshark (need to automate this setup) To build the python application run: make run

python-ps4's People

Contributors

pr0x1ma-byte avatar

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.