An open API service indexing awesome lists of open source software.

https://github.com/intgr/tv-auto-onoff

Automatically power on/off TV like a computer display
https://github.com/intgr/tv-auto-onoff

Last synced: about 1 year ago
JSON representation

Automatically power on/off TV like a computer display

Awesome Lists containing this project

README

          

# Dumb down your smart TV!

Automatically power on/off TV like a computer display.

* **On/off:** Observes computer's intended display power status and automatically turns on/off your smart TV
(instead of seeing "no signal" when computer suspends the display).
* **Keep-alive:** When computer display is active, sends periodic pings to inhibit TV from sleeping.

### Support

Note: This project is still very basic and only supports two interfaces:

* **Display status source:** GNOME Shell (via Mutter D-Bus API)
* **Smart TVs:** Sony Bravia via
the [Simple IP control protocol](https://pro-bravia.sony.net/develop/integrate/ssip/overview/index.html)

### Try it out

`tv-auto-onoff` is written in Rust and requires Cargo to be installed.

1. Check out this repository.
2. Run `cargo run `

### Install persistently

1. Check out this repository
2. Update `TV_IP_ADDRESS=` in `varia/tv-auto-onoff.service`
3. Run the following comands:

```shell
cargo install --path .
mkdir -p ~/.config/systemd/user/
cp varia/tv-auto-onoff.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable tv-auto-onoff.service
systemctl --user start tv-auto-onoff.service
```