Hi folks, I’m tinkering a lot with bash scripts and I wonder if it is possible to make steam launch when the steamlink on my appleTV pings the computer to find out if it is working.

The issue is that I sometimes sit down at my TV and want to play, finding out my Steam Machine is offline due to steam not running, it being suspended or shut down.

Since the appleTV shouldnt be pinging the PC if steamlink is off it shouldnt be an issue, right?

Bonus points: Obviously I would then like to expand this to wake on lan but I’d also need games to run without login then. Does anyone have ideas to this?

Thanks for reading and have a good one.

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    9 months ago

    So valve had an open source SDK for the original steam link hardware box here: https://github.com/ValveSoftware/steamlink-sdk

    I’ve not poked around it, but I’d try going through the source to see if you can figure out how the discovery protocol works. I’d guess it’s a bonjour-like mDNS or UPnP based system, so you’d be looking to write a piece of listener software for whatever its discovery protocol is and then have it do what you like when it detects the discovery requests.

    If you want to do it with wake on LAN too, run the application on a raspberry pi or something to then WOL your main PC.

    • haui@lemmy.giftedmc.comOP
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      Thats one of the most awesome, concise yet elaborate answers I got since a long time. Thank you very much! :)

    • e0qdk@kbin.social
      link
      fedilink
      arrow-up
      6
      ·
      9 months ago

      It might be easier to just fire up Wireshark and look for relevant traffic when you trigger the action.

      • Socket462@feddit.it
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        I would try this route first.

        Here is my logic: it’s the effort to find what you are looking for in a bunch of files and I don’t know how many lines of source code versus the effort to search for some packets (which you should listen for anyway in the final solution) sent from a specific IP address over a relatively small amount of time.