Giter Site home page Giter Site logo

scorpian's Introduction

Welcome to Scorpian Project

This project is aim to integrate the home smart devices with voice control solution. The project is still in initial phase, your comments and advices are fully welcomed. Current Scorpian Project supports the following devices:

  • Smart Televison
    • Sony
  • Smart Home Device
    • MiHome (Xiao Mi)
      • Vacuum

Scorpian Project has been tested with Amazon Alexa.

Installation

Use npm to install the project.

cd ./scorpius
npm install

There is a docker image will prepare the running environment you may want to leverage Scorpian Docker.

Configure

The folder config includes all the config file you may want to change. It will help you to config the device or the serial actions you want the device to act.

  • Runtime Config: File runtime.conf.js includes all the runtime config like port, device type and etc.
  "Port": 7007,            // The port the program will listen in order to get instruction
  "Delimiter": '=',        // You may want to use **"Action=Role"** to make **Role** to do **Action**
  "MsgPreFix": "/:intent", // The prefix of your request string
  "SceneRole": "Jarvis",   // The Role who will run the scene (a serial actions)
  • Device Config: File device.conf.js includes the device information like IP, type and etc.
"Friday": {                // You may want give your device a nick name.
    "ip": "192.168.1.2",   // The IP address
    "token": "12345",      // The token of the device if any
    "type" : "tv",         // The device type
    "brand": "sony"        // The brand of the device
  },
  • Scene Config: File scene.conf.js includes all scene you want to support.
"leave": {                 // The scene name, like you are leaving home
    "actions": [           
      {
        "device": "dummy", // The device nick name
        "action": "stop"   // The action you want the device to act.
      },
      {
        "device": "friday",
        "action": "stop"
      }
    ],
  }

Usage

Use node or nodejs to run the program.

node index.js

You should see the program is listening the PORT you set in config file.

Thanks

Most plugin parts are customized from other project.

  • alanreid/bravia - For the Sony Smart TV support.
  • aholstenson/miio - For the MiHome plugin support.

Support or Contact

Having trouble with project? Check out our Issues Support and we’ll help you sort it out.

scorpian's People

Contributors

brianping7 avatar

Watchers

 avatar

Forkers

nickarthur

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.