From 61d201b17dfe113416d4e1c72cbdedc8ff4d3eb1 Mon Sep 17 00:00:00 2001 From: Eric Leblanc Date: Sat, 17 Aug 2019 14:11:24 -0400 Subject: [PATCH] Cleaning up and readying for patch release --- README.md | 2 +- repository.json | 2 +- xboxone/Dockerfile | 5 +---- xboxone/README.md | 6 ++++-- xboxone/config.json | 2 +- xboxone/run.sh | 4 ++-- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a5a1050..abc370b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Hass.io Add-ons -Custom Add-ons by Jason Hunter \ No newline at end of file +Some add-ons for [Home Assistant](https://home-assistant.io) I'm currently helping to support. diff --git a/repository.json b/repository.json index daf2fa1..1f748bd 100644 --- a/repository.json +++ b/repository.json @@ -1,5 +1,5 @@ { - "name": "Hass.io Add-ons - Xbox test", + "name": "Hass.io Add-ons - ericleb010", "url": "https://github.com/ericleb010/hassio-addons", "maintainer": "Eric Leblanc" } diff --git a/xboxone/Dockerfile b/xboxone/Dockerfile index f300c4f..1a2b608 100644 --- a/xboxone/Dockerfile +++ b/xboxone/Dockerfile @@ -4,10 +4,7 @@ FROM $BUILD_FROM ENV LANG C.UTF-8 # Copy data for add-on -COPY run.sh / -COPY xboxone.py / -COPY manifest.json / -COPY __init__.py / +COPY run.sh xboxone.py manifest.json __init__.py / RUN chmod a+x /run.sh # Install requirements for add-on diff --git a/xboxone/README.md b/xboxone/README.md index 0e73d55..9f74529 100644 --- a/xboxone/README.md +++ b/xboxone/README.md @@ -25,7 +25,7 @@ This component replicates many of the features of the Xbox App. If it can't be The installation of this add-on is pretty straightforward and not different in comparison to installing any other Hass.io add-on. -1. [Add our Hass.io add-ons repository](https://github.com/hunterjm/hassio-addons) to your Hass.io instance. +1. [Add our Hass.io add-ons repository](https://github.com/ericleb010/hassio-addons) to your Hass.io instance. 2. Install the "Xbox One" add-on. 3. Start the "Xbox One" add-on. 4. Check the logs of the "Xbox One" add-on to see if everything went well. @@ -39,7 +39,7 @@ comparison to installing any other Hass.io add-on. 2. Execute `pip install xbox-smartglass-rest`. 3. Create a service to autostart the server (e.g. for Systemd). 4. Enable / start the service. -5. Copy `xboxone.py` to `/custom_components/media_player/xboxone.py`. +5. Copy `xboxone.py`, `manifest.json`, and `__init__.py` to `/custom_components/media_player/xboxone.py`. 6. Proceed with __Installation__ step 5. ### Systemd service example @@ -122,3 +122,5 @@ The original setup of this repository is by [Jason Hunter](https://github.com/hu Huge shoutout to [Team OpenXbox](https://github.com/openxbox) for reverse engineering the SmartGlass protocol and providing the libraries and server used. Special thanks to the contributions of [tuxuser](https://github.com/tuxuser) for answering late night questions and doing almost all of the heavy lifting on this. + +Further thanks to [jmhill1287](https://github.com/jmhill1287) for forking and supporting this library for a few months. diff --git a/xboxone/config.json b/xboxone/config.json index a4ad412..9d85ff3 100644 --- a/xboxone/config.json +++ b/xboxone/config.json @@ -1,6 +1,6 @@ { "name": "Xbox One", - "version": "2.0.0", + "version": "2.0.1", "slug": "xboxone", "description": "Control your Xbox One from your Home Assistant device", "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], diff --git a/xboxone/run.sh b/xboxone/run.sh index 4d17470..c21ff5e 100644 --- a/xboxone/run.sh +++ b/xboxone/run.sh @@ -2,13 +2,13 @@ # Copy over the xbox component mkdir -p /config/custom_components/xboxone -cp -f xboxone.py __init__.py manifest.json /config/custom_components/xboxone/ +cp -f __init__.py manifest.json /config/custom_components/xboxone/ +cp -f xboxone.py /config/custom_components/xboxone/media_player.py # Persistent tokens on reboot touch /config/.xbox-token.json mkdir -p /root/.local/share/xbox/ ln -s /config/.xbox-token.json /root/.local/share/xbox/tokens.json - # Run the server xbox-rest-server