GithubHelp home page GithubHelp logo

morristech / pi-gcast-remote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shivasiddharth/pi-gcast-remote

0.0 1.0 0.0 29 KB

Remote control for Google Cast Devices using Raspberry Pi

License: GNU General Public License v3.0

Python 94.07% Shell 5.93%

pi-gcast-remote's Introduction

pi-gcast-remote

DIY Remote control for Google Cast Devices using Raspberry Pi Zero and Pimoroni Button SHIM


Detailed Youtube Video

Step-1 - Install drivers for Button SHIM using:

sudo curl https://get.pimoroni.com/buttonshim | bash  

Step-2 - Install dependencies using:

sudo apt-get install git  
sudo pip3 install pychromecast  

Step-3 - Clone the project using:

cd /home/pi/  
sudo git clone https://github.com/shivasiddharth/pi-gcast-remote  

Step-4 - Declare your Google Cast devices in the g-cast-controller.py script

#Enter the IP Addresses of your Google Cast devices   
chromecasts_ip=['192.168.1.4','192.168.1.13']   
   
#Enter the names of the Google Cast devices as in the Google App  
chromecasts_name=['Living Room Speaker','Living Room TV']  

Step-5 - Setup the script to start on boot using:

sudo chmod +x /home/pi/pi-gcast-remote/scripts/service-installer.sh  
sudo /home/pi/pi-gcast-remote/scripts/service-installer.sh  

Step-6 - Enable the service to start on boot:

sudo systemctl enable gcastremote.service   

To switch between the devices, press and hold the A button/key.

Note: pychromecast API takes time to get the list of active devices, hence continuous device status monitoring has not been added as it would cause delays to get a response from a device on button press. So the remote control program should be started after making sure that your devices are online.

pi-gcast-remote's People

Contributors

shivasiddharth avatar

Watchers

 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.