More actions
(Created page with "{{Infobox Switch Homebrews |title=sys-http |image=syshttpswitch.png |description=Build tools that communicate with the Switch over http. |author=zaksabeast |lastupdated=2020/05/31 |type=System Tools |version=0.1.0 |license=GPL-3.0 |download=https://dlhb.gamebrew.org/switchhomebrews/syshttpswitch.7z |website=https://gbatemp.net/threads/sys-http-build-tools-that-communicate-with-the-switch-over-http.565986/ |source=https://github.com/zaksabeast/sys-http |donation= }} {{#se...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox Switch Homebrews | {{Infobox Switch Homebrews | ||
|title=sys-http | |title=sys-http | ||
|image= | |image=syshttpnx.png | ||
|description=Build tools that communicate with the Switch over http. | |description=Build tools that communicate with the Switch over http. | ||
|author=zaksabeast | |author=zaksabeast | ||
|lastupdated=2020/05/31 | |lastupdated=2020/05/31 | ||
|type= | |type=Sysmodules | ||
|version=0.1.0 | |version=0.1.0 | ||
|license=GPL-3.0 | |license=GPL-3.0 | ||
|download=https://dlhb.gamebrew.org/switchhomebrews/ | |download=https://dlhb.gamebrew.org/switchhomebrews/syshttpnx.7z | ||
|website=https://gbatemp.net/threads/sys-http-build-tools-that-communicate-with-the-switch-over-http.565986/ | |website=https://gbatemp.net/threads/sys-http-build-tools-that-communicate-with-the-switch-over-http.565986/ | ||
|source=https://github.com/zaksabeast/sys-http | |source=https://github.com/zaksabeast/sys-http | ||
|donation= | |donation= | ||
}} | }} | ||
This is a sysmodule that allows communicating with the Nintendo Switch using http. This sysmodule brings a few advantages that don't currently exist: | |||
*HTTP is a standardized protocol with well defined uses. | |||
*Most languages have at least one http library, so there's not a need to write a wrapper around raw TCP. | |||
*Web browsers can use HTTP, but not raw TCP (without disabling security rules). | |||
==Installation== | |||
Download the zip from the latest releases. | |||
Copy the zip file contents to your switch SD card at /atmosphere/contents. | |||
It's recommended to use something like [[Hekate_Toolbox_Switch|Kosmos Toolbox/Hekate Toolbox]] and disable the sysmodule when it's not in use. | |||
== | ==User guide== | ||
Projects using sys-http: | |||
*https://github.com/zaksabeast/DenCrawler - View Pokemon Sword and Shield event raids in the web browser. | |||
Potential future use cases: | |||
*Read Pokemon Sword/Shield den seeds directly into @Admiral-Fish's [https://github.com/Admiral-Fish/RaidFinder RaidFinder] or @leanny's [http://leanny.github.io/seedchecker Seed Checker]. | |||
*Display Animal Crossing turnip prices in a mobile app. | |||
*Show updating game values during a Twitch live stream. | |||
*Setup a [https://github.com/zaksabeast/PKHeX-Lambda PKHeX REST API] and live edit Pokemon from a website. | |||
*Create a Discord bot that allows users to interact with the console. | |||
Developing frontend applications: | |||
If you want to build frontend applications using this sysmodule as a backend, [https://github.com/zaksabeast/sys-http#developing-frontend-applications reading this documentation] will help you. | |||
https:// | |||
==Changelog== | ==Changelog== | ||
''' | '''v0.1.0 2020/05/31''' | ||
* | *Added: | ||
**CORS headers to allow web browsers to work with sys-http. | |||
**/settings/language to get the console language. | |||
*Updated: | |||
**/readHeap is now /heap. | |||
'''v0.0.1 2020/05/26''' | |||
*Initial release. | |||
==Credits== | |||
Thanks to the following groups, individuals, and contributors: | |||
*ReSwitched for [https://github.com/Atmosphere-NX/Atmosphere-libs Atmosphere-libs]. | |||
*Switchbrew for [https://github.com/switchbrew/libnx libnx]. | |||
*yhirose for [https://github.com/yhirose/cpp-httplib/ cpp-httplib]. | |||
== External links == | == External links == | ||
* | * GitHub - https://github.com/zaksabeast/sys-http | ||
* GBAtemp - https://gbatemp.net/threads/sys-http-build-tools-that-communicate-with-the-switch-over-http.565986/ | |||
Revision as of 11:41, 24 April 2023
sys-http | |
---|---|
General | |
Author | zaksabeast |
Type | Sysmodules |
Version | 0.1.0 |
License | GPL-3.0 |
Last Updated | 2020/05/31 |
Links | |
Download | |
Website | |
Source | |
This is a sysmodule that allows communicating with the Nintendo Switch using http. This sysmodule brings a few advantages that don't currently exist:
- HTTP is a standardized protocol with well defined uses.
- Most languages have at least one http library, so there's not a need to write a wrapper around raw TCP.
- Web browsers can use HTTP, but not raw TCP (without disabling security rules).
Installation
Download the zip from the latest releases.
Copy the zip file contents to your switch SD card at /atmosphere/contents.
It's recommended to use something like Kosmos Toolbox/Hekate Toolbox and disable the sysmodule when it's not in use.
User guide
Projects using sys-http:
- https://github.com/zaksabeast/DenCrawler - View Pokemon Sword and Shield event raids in the web browser.
Potential future use cases:
- Read Pokemon Sword/Shield den seeds directly into @Admiral-Fish's RaidFinder or @leanny's Seed Checker.
- Display Animal Crossing turnip prices in a mobile app.
- Show updating game values during a Twitch live stream.
- Setup a PKHeX REST API and live edit Pokemon from a website.
- Create a Discord bot that allows users to interact with the console.
Developing frontend applications: If you want to build frontend applications using this sysmodule as a backend, reading this documentation will help you.
Changelog
v0.1.0 2020/05/31
- Added:
- CORS headers to allow web browsers to work with sys-http.
- /settings/language to get the console language.
- Updated:
- /readHeap is now /heap.
v0.0.1 2020/05/26
- Initial release.
Credits
Thanks to the following groups, individuals, and contributors:
- ReSwitched for Atmosphere-libs.
- Switchbrew for libnx.
- yhirose for cpp-httplib.