{"id":17274544,"url":"https://github.com/cweiske/stouyapi","last_synced_at":"2025-06-29T13:04:38.444Z","repository":{"id":50891651,"uuid":"219064263","full_name":"cweiske/stouyapi","owner":"cweiske","description":"Static API to keep the OUYA working in 2019. Mirror of https://git.cweiske.de/stouyapi.git","archived":false,"fork":false,"pushed_at":"2024-11-19T08:11:11.000Z","size":948,"stargazers_count":32,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T04:43:27.495Z","etag":null,"topics":["api","ouya","static"],"latest_commit_sha":null,"homepage":"http://ouya.cweiske.de/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cweiske.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-01T21:20:18.000Z","updated_at":"2024-11-19T08:11:14.000Z","dependencies_parsed_at":"2025-04-14T08:47:16.932Z","dependency_job_id":null,"html_url":"https://github.com/cweiske/stouyapi","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cweiske/stouyapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cweiske%2Fstouyapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cweiske%2Fstouyapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cweiske%2Fstouyapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cweiske%2Fstouyapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cweiske","download_url":"https://codeload.github.com/cweiske/stouyapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cweiske%2Fstouyapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262598167,"owners_count":23334669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","ouya","static"],"created_at":"2024-10-15T08:54:11.524Z","updated_at":"2025-06-29T13:04:38.413Z","avatar_url":"https://github.com/cweiske.png","language":"JavaScript","readme":"**************************\nstouyapi - Static OUYA API\n**************************\n\nA static API for the OUYA gaming console that still lets you sign in\nand install games, despite the OUYA server shutdown in 2019.\n\n\n=====\nSetup\n=====\n\nOUYA config change\n==================\n- Mount via USB (Micro USB cable)\n- Create file ``ouya_config.properties``\n- Add::\n\n    OUYA_SERVER_URL=http://stouyapi.example.org\n    OUYA_STATUS_SERVER_URL=http://stouyapi.example.org/api/v1/status\n\nThe changes should take effect immediately.\nIf they do not, reboot the OUYA once.\n\n\nOUYA setup\n==========\n\n1. User registration: \"Existing account\"\n2. Enter any username, leave password empty. Continue.\n3. Skip credit card registration\n\nThe username will appear on your ouya main screen.\n\n\nApache setup\n============\n\n.. note:: Step-by-step setup instructions can be found in\n          `HOWTO-SETUP.rst \u003cHOWTO-SETUP.rst\u003e`__.\n\n\nVirtual host configuration::\n\n  \u003cVirtualHost *:80\u003e\n    ServerName stouyapi.example.org\n    DocumentRoot /path/to/stouyapi/www\n\n    CustomLog /var/log/apache2/stouyapi-access.log combined\n    ErrorLog  /var/log/apache2/stouyapi-error.log\n\n    Script PUT /empty-json.php\n    Script DELETE /api/v1/queued_downloads_delete.php\n\n    \u003cDirectory \"/path/to/stouyapi/www\"\u003e\n      AllowOverride All\n      Require all granted\n    \u003c/Directory\u003e\n  \u003c/VirtualHost\u003e\n\nThe following modules need to be enabled in Apache 2.4\n(with e.g. ``a2enmod``):\n\n- ``actions``\n- ``expires``\n- ``php`` (or php-fpm via fastcgi)\n- ``rewrite``\n\nThe virtual host's document root needs to point to the ``www`` folder.\n\n\nTest your Apache setup\n----------------------\n::\n\n   # check if normal API routes work\n   $ curl -I http://stouyapi.example.org/api/firmware_builds\n   HTTP/1.1 200 OK\n   [...]\n\n   # check if rewritten API routes work\n   $ curl -I http://stouyapi.example.org/api/v1/discover/discover\n   HTTP/1.1 200 OK\n   [...]\n\n   # check if PHP routes work\n   curl -I http://stouyapi.example.org/api/v1/gamers/me\n   HTTP/1.1 200 OK\n   [...]\n\n\nBuilding API data\n=================\nDownload the OUYA game data repository from\nhttps://github.com/ouya-saviors/ouya-game-data\nand then generate the API files with it::\n\n    $ git clone https://github.com/ouya-saviors/ouya-game-data.git\n    $ ./bin/import-game-data.php ouya-game-data/folders\n\n\nBuilding the web discover store\n===============================\nAfter building the API files, generate the HTML::\n\n  $ ./bin/build-html.php\n\n\n===============\nPush to my OUYA\n===============\nstouyapi's HTML game detail page have a \"Push to my OUYA\" button that\nallows anyone to tell his own OUYA to install that game.\nIt works without any user accounts, and is only based on IP addresses.\n\nIf your PC that you click the Push button on and your OUYA have the same\npublic IP address (IPv4 NAT), or the same IPv6 64bit prefix, then\nthe OUYA will install the game within 5 minutes.\n\nIt will also work if you run stouyapi inside your local network, because\nall private IP addresses are mapped to a special \"local\" address.\n\nYou can inspect your own download queue by simply opening\n``/api/v1/queued_downloads`` in your browser.\n\n\n========\nSee also\n========\n\n- https://gitlab.com/devirich/BrewyaOnOuya - alternative storefront\n- https://archive.org/details/ouyalibrary - Archived OUYA games\n- https://github.com/ouya-saviors/ouya-game-data/ - OUYA game data repository\n\n\n===========\nDiscoveries\n===========\n\n- data/data/tv.ouya/cache/ion/\n\n  - image cache for main menu image\n\n- Don't put a trailing slash into ``OUYA_SERVER_URL`` - it will make double slashes\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcweiske%2Fstouyapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcweiske%2Fstouyapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcweiske%2Fstouyapi/lists"}