Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagordc/go-apt-reboot
Reboot Apple TV on a schedule
https://github.com/tiagordc/go-apt-reboot
apple-tv tp-link
Last synced: 12 days ago
JSON representation
Reboot Apple TV on a schedule
- Host: GitHub
- URL: https://github.com/tiagordc/go-apt-reboot
- Owner: tiagordc
- Created: 2022-10-22T15:14:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T18:24:37.000Z (about 2 years ago)
- Last Synced: 2024-06-19T11:42:16.418Z (6 months ago)
- Topics: apple-tv, tp-link
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apple TV rebooter
Simple application to reboot an Apple TV Homekit hub connected with a smart plug.
Will reboot on the defined schedule or when the Apple TV is not responding.
## Limitations
Only works with smart plugs that support the [TP-Link Tapo](https://www.tapo.com/) API.
Has to be disabled when the Apple TV is updating.
## Environment variables
ATV_ADDRESS: address of the Apple TV\
PING_TIME: time in seconds to run ping command\
CRON: Cron schedule expression\
TAPO_IP: IP of your Tapo device\
TAPO_USERNAME: Your Tapo username\
TAPO_PASSWORD: Your Tapo password## Docker reference
* docker build -t go-apt-reboot . --no-cache
* docker run --env-file ./.env go-apt-reboot
* docker rm -f $(docker ps -aq)
* docker rmi $(docker images -q)## References
* [P100-go Library](https://github.com/artemvang/p100-go)
* [Cron Expressions](https://crontab.guru/every-day-at-2am)
* [Smallest Golang Docker Image](https://klotzandrew.com/blog/smallest-golang-docker-image)
## DisclaimerGitHub Copilot was used to write part of the code and documentation.