Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joelwetzel/http-appletv-bridge
UNDER DEVELOPMENT: A bridge server that can run on a Raspberry Pi. It will connect to your Apple TV, and expose its power state via a simple HTTP interface.
https://github.com/joelwetzel/http-appletv-bridge
Last synced: about 2 months ago
JSON representation
UNDER DEVELOPMENT: A bridge server that can run on a Raspberry Pi. It will connect to your Apple TV, and expose its power state via a simple HTTP interface.
- Host: GitHub
- URL: https://github.com/joelwetzel/http-appletv-bridge
- Owner: joelwetzel
- License: apache-2.0
- Created: 2023-08-24T18:45:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-12T17:25:42.000Z (about 1 year ago)
- Last Synced: 2024-10-28T17:37:45.461Z (2 months ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http-appletv-bridge
### UNDER DEVELOPMENT: A bridge server that can run on a Raspberry Pi. It will connect to your Apple TV, and expose its power state via a simple HTTP interface.
-----
### Prerequisites:
- NodeJS
- Python3
- Pip3### Get Started:
1. >git clone https://github.com/joelwetzel/http-appletv-bridge.git
2. >cd http-appletv-bridge
3. >npm install
4. Edit the values in /src/config.env
5. >npm run build-----
### Run from Command Line:
>npm run start
_____
### Install as a Service:
>sudo npm run install-service
It should now start automatically, but there are other commands too:
>sudo npm run start-service
>sudo npm run stop-service
>sudo npm run uninstall-service
After installing as a service, if you need to see the logs:
On MacOS: Look for httpappletvbridge in console.app
On Linux: journalctl -f -u httpappletvbridge
-----
### If you have trouble:
**Did pyatv install?**
>atvremote scan
>
>npm run check-pyatv**Did pyatv install, but throws an error like: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3.**
>pip3 uninstall urllib3
>
>pip3 install 'urllib3<2.0'For why, see: https://stackoverflow.com/questions/76187256/importerror-urllib3-v2-0-only-supports-openssl-1-1-1-currently-the-ssl-modu
**Does pyatv fail to install on Linux with an error like: fatal error: Python.h: No such file or directory**
>sudo apt-get install python-devor
>sudo apt-get install python3-dev
then
>pip3 install pyatv
**Did pyatv install, but atvremote isn't in PATH?**
>pip3 show pyatv
>
(copy the location)
>
>cd /etc
>
>sudo nano paths
>
(past the location in, and add /pyatv to the end of it)**Having trouble running the service on Mac?**
- Check in /Library/LaunchDaemons for the plist file
- Check console.app for any logs being written
- Are the files cloned into somewhere accessible to the system at launch? It probably can't access them in ~/Documents, for example.