Initial version that allows you to log into a fresh factory-reset OUYA
authorChristian Weiske <cweiske@cweiske.de>
Fri, 1 Nov 2019 21:19:47 +0000 (22:19 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 1 Nov 2019 21:19:47 +0000 (22:19 +0100)
17 files changed:
README.rst [new file with mode: 0644]
www/api/firmware_builds [new file with mode: 0644]
www/api/v1/console_configuration [new file with mode: 0644]
www/api/v1/crash_report [new file with mode: 0644]
www/api/v1/events [new file with mode: 0644]
www/api/v1/gamers/me/agreements [new file with mode: 0644]
www/api/v1/gamers/me/consoles [new file with mode: 0644]
www/api/v1/gamers/me/index.html [new file with mode: 0644]
www/api/v1/gamers/me/user_messages [new file with mode: 0644]
www/api/v1/premium_purchases [new file with mode: 0644]
www/api/v1/queued_downloads [new file with mode: 0644]
www/api/v1/ratings [new file with mode: 0644]
www/api/v1/recommendations [new file with mode: 0644]
www/api/v1/sessions [new file with mode: 0644]
www/api/v1/status [new file with mode: 0644]
www/api/v1/themes [new file with mode: 0644]
www/api/v1/wallet [new file with mode: 0644]

diff --git a/README.rst b/README.rst
new file mode 100644 (file)
index 0000000..ab791c1
--- /dev/null
@@ -0,0 +1,57 @@
+**************************
+stouyapi - Static OUYA API
+**************************
+
+A static API for the OUYA gaming console that still lets you sign in
+and install games, despite the OUYA server shutdown in 2019.
+
+
+=====
+Setup
+=====
+
+OUYA config change
+==================
+- Mount via USB (Micro USB cable)
+- Create file ``ouya_config.properties``
+- Add::
+
+    OUYA_SERVER_URL=http://stouyapi.boo
+    OUYA_STATUS_SERVER_URL=http://stouyapi.boo
+
+Notes:
+
+- "important note, don't put trailing slash into OUYA_SERVER_URL, it will make double slashes"
+- I had to reboot to make that change in the file active
+
+
+OUYA setup
+==========
+
+1. User registration: "Existing account"
+2. Enter any username, leave password empty. Continue.
+3. Skip credit card registration
+
+
+
+===========
+Information
+===========
+By default, OUYA uses HTTPS to devs.ouya.tv.
+(status.ouya.tv is HTTP only, no SSL)
+DNS mapping does not work, except when creating an own SSL certificate
+and registering the root CA at the OUYA itself.
+
+IPv6 used -> custom domain needs IPv6 DNS entry
+
+https://rabid.ouya.tv/ - was OUYA's sandbox instance
+
+DEBUG=1
+DEBUG_SPAM=1
+
+========
+See also
+========
+
+- https://gitlab.com/devirich/BrewyaOnOuya
+
diff --git a/www/api/firmware_builds b/www/api/firmware_builds
new file mode 100644 (file)
index 0000000..17b2ccf
--- /dev/null
@@ -0,0 +1,4 @@
+{
+  "result": [
+  ]
+}
diff --git a/www/api/v1/console_configuration b/www/api/v1/console_configuration
new file mode 100644 (file)
index 0000000..15d1661
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "BTC_LAUNCHER_PACKAGES":"tv.ouya.xbmc,tunein.player,tv.twitch.android.viewer,com.plexapp.android,tv.ouya.bbciplayer,tv.ouya.hulu,tv.ouya.minecrafttv,tv.ouya.ouyabrowser,tv.ouya.pandora,tv.ouya.visiomgo,tv.ouya.youtube,tv.ouya.tubitv"
+}
diff --git a/www/api/v1/crash_report b/www/api/v1/crash_report
new file mode 100644 (file)
index 0000000..9e26dfe
--- /dev/null
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/www/api/v1/events b/www/api/v1/events
new file mode 100644 (file)
index 0000000..9e26dfe
--- /dev/null
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/www/api/v1/gamers/me/agreements b/www/api/v1/gamers/me/agreements
new file mode 100644 (file)
index 0000000..9e26dfe
--- /dev/null
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/www/api/v1/gamers/me/consoles b/www/api/v1/gamers/me/consoles
new file mode 100644 (file)
index 0000000..9e26dfe
--- /dev/null
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/www/api/v1/gamers/me/index.html b/www/api/v1/gamers/me/index.html
new file mode 100644 (file)
index 0000000..1b1527b
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "gamer": {
+    "uuid": "00702342-0000-1111-2222-c3e1500cafe2",
+    "settings": {},
+    "founder": true,
+    "email": "stouyapi@example.org",
+    "username": "stouyapi"
+  }
+}
diff --git a/www/api/v1/gamers/me/user_messages b/www/api/v1/gamers/me/user_messages
new file mode 100644 (file)
index 0000000..2b7cb7a
--- /dev/null
@@ -0,0 +1,4 @@
+{
+    "messages": [
+    ]
+}
\ No newline at end of file
diff --git a/www/api/v1/premium_purchases b/www/api/v1/premium_purchases
new file mode 100644 (file)
index 0000000..ff20dac
--- /dev/null
@@ -0,0 +1,4 @@
+{
+    "games": [
+    ]
+}
diff --git a/www/api/v1/queued_downloads b/www/api/v1/queued_downloads
new file mode 100644 (file)
index 0000000..a179906
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "queue": []
+}
diff --git a/www/api/v1/ratings b/www/api/v1/ratings
new file mode 100644 (file)
index 0000000..dd679d5
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "ratings": []
+}
diff --git a/www/api/v1/recommendations b/www/api/v1/recommendations
new file mode 100644 (file)
index 0000000..c568967
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "games": []
+}
diff --git a/www/api/v1/sessions b/www/api/v1/sessions
new file mode 100644 (file)
index 0000000..b76532f
--- /dev/null
@@ -0,0 +1,3 @@
+{
+  "token": "00702342-0000-1111-2222-c3e1500cafe1"
+}
diff --git a/www/api/v1/status b/www/api/v1/status
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/www/api/v1/themes b/www/api/v1/themes
new file mode 100644 (file)
index 0000000..2a2f048
--- /dev/null
@@ -0,0 +1,5 @@
+{
+    "background_style": "static",
+    "background": "",
+    "video": ""
+}
diff --git a/www/api/v1/wallet b/www/api/v1/wallet
new file mode 100644 (file)
index 0000000..7fc68e3
--- /dev/null
@@ -0,0 +1,6 @@
+{
+    "requiresPaymentMethod": false,
+    "balance": 0,
+    "credit_card": null,
+    "currency": "EUR"
+}