title

I just want to toggle the alternative speeds while Plex is streaming outside my house. I couldn’t find anything while looking around except for some old scripts that haven’t been updated in years.

  • bogo@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    1 year ago

    You could download this: https://github.com/hrap1919/qbc

    Set up Tautulli and use the notification agent feature. Set up one notification on “Play start” to call a shell script that uses this command to set the alternative speed limits.

    Set up a second agent to listen for “Play stop” and set the condition to be “Streams” equal to zero, so when the last active stream ends you reenable full speed.

    Edit: Wait someone else posted this and it seems easier and better documented https://github.com/fabricionaweb/qbit-toggle-speed

  • adr1an@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    For code, being old is not always bad. Take for example some Unix commands, like copying files between servers using the ssh protocol. That hasn’t changed in 50 or more years. So, if there’re API endpoints in both apps, setting a cronjob would let you monitor every minute if you’re streaming, and then do the switch. Or, even better, you may be able to have a hook/ trigger design pattern. Can you link to the scripts? Have you tested them at all?

  • PeachMan@lemmy.one
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    You could just limit the speed of Qbittorrent permanently, enough that it wouldn’t mess with your Plex traffic.

    • jws_shadotak@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      That’s what I’ve done for now. I have a 30 mbps upload speed from my provider so I’ve limited qBit to 1 MB/s to give plenty of room for outbound streams.

      It just seems like a waste of bandwidth if I have it capped at all times.

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Your best bet is to use a Router/Firewall that supports QoS. I have a Mikrotik router that does QoS and routes all traffic from my qBittorrent server through a VPN. It’s a very convenient setup but Mikrotik’s also require at least some networking background. They allow granular control of almost everything and are therefore easy to mess up.

  • coin@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’m using a Home Assistant automation to do this (with Jellyfin). But it is obviously overkill to set that all up just to do this.