This library provides the core foundation for the smartglass protocol that is used with the Xbox One Gaming console
For in-depth information, check out the documentation: https://openxbox.org/smartglass-documentation
NOTE: Since 29.02.2020 the following modules are integrated into core: stump, auxiliary, rest-server NOTE: Nano module is still offered seperately
Via pip
pip install xbox-smartglass-core
See the end of this README for development-targeted instructions.
There are several command line utilities to check out::
xbox-cli
Some functionality, such as GameDVR record, requires authentication with your Microsoft Account to validate you have the right to trigger such action.
To authenticate / get authentication tokens use::
xbox-authenticate
Usage information
Example localhost:
# Serve on '127.0.0.1:5557'
$ xbox-rest-server
INFO: Started server process [927195]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:5557 (Press CTRL+C to quit)
Example local network:
192.168.0.100 is the IP address of your computer running the server:
xbox-rest-server --host 192.168.0.100 -p 1234
INFO: Started server process [927195]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://192.168.0.100:1234 (Press CTRL+C to quit)
Since the migration from Flask framework to FastAPI, there is a nice OpenAPI documentation available:
http://{IPAddress}:{port}/docs
If your server runs on something else than 127.0.0.1:5557 or 127.0.0.1:8080 you need to register your own OAUTH application on Azure AD and supply appropriate parameters to the login-endpoint of the REST server.
Check out: https://github.com/OpenXbox/xbox-webapi-python/blob/master/README.md
To forward the title communication from the Xbox to your local host to use third-party Fallout 4 Pip boy applications or extensions
xbox-fo4-relay
Here you can see the SmartGlass TUI (Text user interface):
Ready to contribute? Here's how to set up xbox-smartglass-core-python
for local development.
xbox-smartglass-core-python
repo on GitHub.git clone git@github.com:your_name_here/xbox-smartglass-core-python.git
python -m venv ~/pyvenv/xbox-smartglass
source ~/pyvenv/xbox-smartglass/bin/activate
cd xbox-smartglass-core-python
pip install -e .[dev]
git checkout -b name-of-your-bugfix-or-feature
Make your changes.
Before pushing the changes to git, please verify they actually work
pytest
git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-feature
Before you submit a pull request, check that it meets these guidelines:
Kudos to joelday for figuring out the AuxiliaryStream / TitleChannel communication first! You can find the original implementation here: SmartGlass.CSharp
This package uses parts of Cookiecutter and the audreyr/cookiecutter-pypackage project template