It switches wireless sockets on / off when you connect or disconnect from the configured Chromecast.
- RaspberryPI with a connected 433MHz transmitter
Download the binary from here or build it yourself with go get ./...
and go build
in the repository from here which you cloned before.
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 |
./chromecast -name=My Chromecast -scode=1000 -sid=2 --debug
Thanks to go-cast for providing a libary to control chromecast devices with golang.
And of course the golang implementation of rc-switch.