Giter Club home page Giter Club logo

google-home's Introduction

google-home

Turn on/off TV by GoogleHome (Using HDMI-CEC & RaspberryPi & Firebase)

Description

Turn on/off TV or change to HDMI 1,2 Ch using Google Home. I use HDMI-CEC(cec-client) on Raspberry Pi, it is implemented Node.js. Also I use Firebase Realtime Database for connection of Google Home and RaspberryPi. Useful control of TV.

Requirement

  • Raspberry Pi (Raspian)
  • Node.js v9
  • npm packages
    • cec-client
    • forever

Usage

  1. Setup Firebase Realtime Database.
  2. Make firebase.config.js and write Firebase Snippets.
  3. (Optional) Make auth.config.js and write Firebase Authentication's Information. (Email & Password)
  4. Make IFTTT Applet. this is Google Assistant, that is Webhook which url is Firebase's URL.
  5. Exec forever start index.js on Raspberry Pi.

Installation

Login Raspberry Pi. $ sudo apt-get install -y node.js npm $ npm i -g n forever $ n stable $ sudo apt-get purge -y node.js npm $ ln -sf /usr/local/bin/node.js /usr/bin/ (Also npm)

Author

@matsnow

License

MIT

google-home's People

Contributors

matsnow avatar

Watchers

 avatar  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.