1. zaksabeast

    OP zaksabeast GBAtemp Fan
    Member

    Joined:
    May 24, 2016
    Messages:
    344
    Country:
    United States
    sys-http - Switch HTTP backend
    What is sys-http?

    sys-http is a sysmodule that allows communicating with the Nintendo Switch using http. This sysmodule brings a few advantages that don't currently exist with alternative solutions:
    • 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)
    The sysmodule is still super new, and more functionality can be added in the future. Currently the sysmodule can read values from memory and get a game's title Id.

    v0.1.0 changelog:
    • Renamed /readHeap to /heap
    • Added /settings/lanuage
    • Added CORS headers so web browsers can use sys-http
    Projects using sys-http
    Example future use cases
    • Read Pokemon Sword/Shield den seeds into computer applications
    • Display Animal Crossing turnip prices in a mobile app
    • Show updating game values during a 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
    Installing
    1. Download the zip from the latest releases
    2. 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 for resource and security purposes.

    Developing frontend applications

    If you want to build frontend applications using this sysmodule as a backend, reading this documentation will help you.
     
    Last edited by zaksabeast, May 30, 2020
    falcorr, klear, Ty_ and 3 others like this.
  2. KirovAir

    KirovAir Dutch Alcoholic Programmer
    Member

    Joined:
    Dec 7, 2006
    Messages:
    707
    Country:
    Netherlands
    I like this idea! This opens up a very easy way to display live statistics in a streaming setup for example.
     
  3. JonJaded

    JonJaded GBAtemp Fan
    Member

    Joined:
    May 22, 2016
    Messages:
    446
    Country:
    United States
    Damn this seems cool! I could imagine something like Crowd Control for switch games like way down the line.
     
  4. zaksabeast

    OP zaksabeast GBAtemp Fan
    Member

    Joined:
    May 24, 2016
    Messages:
    344
    Country:
    United States
    Here's a project with an example of how sys-http could be used: https://github.com/zaksabeast/DenCrawler

    A switch running the latest sys-http can have Pokemon Sword and Shield raid event data shown to users in a web browser.
     
    falcorr and hippy dave like this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - communicate, Switch, Build