Skip to content
This repository has been archived by the owner on Oct 13, 2019. It is now read-only.

Switches wireless sockets on/off based on the state of a chromecast audio.

Notifications You must be signed in to change notification settings

mxschmitt/chromecast-socket-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Chromecast Socket Switcher

What does it do?

It switches wireless sockets on / off when you connect or disconnect from the configured Chromecast.

Requirements:

  • RaspberryPI with a connected 433MHz transmitter

Installation:

Download the binary from here or build it yourself with go get ./... and go build in the repository from here which you cloned before.

Command line flags:

name type default value description
name string Iknabixam Audio Name of your chromecast device
SocketGroup string 10101 Socket Group
SocketDevice string 00010 Socket Device in binary format
debug bool false Enable debug logging

Usage:

./chromecast -name=My Chromecast -scode=1000 -sid=2 --debug

Legal

Thanks to go-cast for providing a libary to control chromecast devices with golang.

And of course the golang implementation of rc-switch.