Skip to content

Commit

Permalink
Cleaning up and readying for patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
ericleb010 committed Aug 17, 2019
1 parent e1194af commit 61d201b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Hass.io Add-ons

Custom Add-ons by Jason Hunter
Some add-ons for [Home Assistant](https://home-assistant.io) I'm currently helping to support.
2 changes: 1 addition & 1 deletion repository.json
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 1 addition & 4 deletions xboxone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions xboxone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 `<hass config path>/custom_components/media_player/xboxone.py`.
5. Copy `xboxone.py`, `manifest.json`, and `__init__.py` to `<hass config path>/custom_components/media_player/xboxone.py`.
6. Proceed with __Installation__ step 5.

### Systemd service example
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion xboxone/config.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions xboxone/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 61d201b

Please sign in to comment.