Git Product home page Git Product logo

kodi-steamlink-launcher's Introduction

Steamlink Launcher for Kodi

Plugin for Kodi to launch Steamlink.

Requirements

  • Raspbian >=9 already installed.

  • Install kodi package:

    sudo apt-get update
    sudo apt-get install -y kodi
  • A kodi user is created and used to start kodi-standalone service:

    sudo useradd -a -m -U -G "audio,bluetooth,input,plugdev,video" -s /bin/bash -u 999 kodi
  • Systemd service unit is being installed to start kodi-standalone service:

    cat <<EOF | sudo tee /etc/systemd/system/kodi.service
    [Unit]
    Description = Kodi Media Center
    After = systemd-user-sessions.service network.target sound.target
    
    [Service]
    User = kodi
    Group = kodi
    Type = simple
    ExecStart = /usr/bin/kodi-standalone
    Restart = always
    RestartSec = 15
    
    [Install]
    WantedBy = multi-user.target
    EOF
    
    sudo systemctl daemon-reload
    sudo systemctl enable kodi
    sudo systemctl start kodi
  • Install steamlink debian package with:

    sudo apt-get update
    sudo apt-get install -y steamlink

Plugin installation

  • Log into ssh on your Kodi installation.

  • Download the zip of the launcher and install it via Kodi (Extension โ†’ Install from Zip file). You must allow untrusted sources in system settings prior to this.

  • Setup sudo rules to allow kodi user to run steamlink:

    cat <<EOF | sudo tee /etc/sudoers.d/steamlink-kodi
    kodi ALL=(root) NOPASSWD: /bin/systemctl stop kodi, /bin/systemctl restart kodi, /bin/openvt
    EOF

Want to contribute ?

Submit your contributions through pull requests.

Acknowledgement

Steam Copyright 2003-2018 Valve Corp. All rights reserved. Use of Steam Link software is subject to the Steam Subscriber Agreement, https://store.steampowered.com/subscriber_agreement/.

Inspiration

License

Steamlink Launcher for Kodi is licensed under GPLv2, see LICENSE.txt.

kodi-steamlink-launcher's People

Contributors

bigbrozer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kodi-steamlink-launcher's Issues

Failed to read zip - dir structure incorrect?

downloaded the zip file and tried to install it on pi 3b+ running raspbian and kodi.

got "unable to read zip" in kodi logs

08:31:16.892 T:1911697408 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
08:31:17.059 T:1911697408 DEBUG: OnKey: return (0xf00d) pressed, action is Select
08:31:17.059 T:1911697408 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
08:31:17.305 T:1911697408 DEBUG: ------ Window Deinit (FileBrowser.xml) ------
08:31:17.327 T:1911697408 DEBUG: CAddonInstaller: installing from zip '/home/kodi/Downloads/steamlink-launcher-0.0.1.zip'
08:31:17.339 T:1911697408 ERROR: Failed to read 'zip://%2fhome%2fkodi%2fDownloads%2fsteamlink-launcher-0.0.1.zip/kodi-steamlink-launcher-0.0.1/addon.xml'
08:31:17.340 T:1911697408 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
08:31:17.361 T:1911697408 DEBUG: ------ Window Init (DialogNotification.xml) ------
08:31:23.103 T:1911697408 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
08:31:30.558 T:1551340288 DEBUG: [plugin.video.youtube] HTTPServer: Request uri path |/ping|
08:31:30.559 T:1551340288 DEBUG: [plugin.video.youtube] HTTPServer: Connection from |127.0.| Local range: |True|
08:31:30.571 T:1699177216 DEBUG: [plugin.video.youtube] HTTPServer: Ping |127.0.0.1:50152| |204|

os info:

kodi@vcr:~/Downloads $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

This is what's in the zip file I downloaded:

kodi@vcr:~/Downloads $ find kodi-steamlink-launcher-0.0.1/
kodi-steamlink-launcher-0.0.1/
kodi-steamlink-launcher-0.0.1/.gitignore
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources/screenshot.png
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources/lib
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources/lib/start.sh
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources/icon.png
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/resources/fanart.jpg
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/LICENSE.txt
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/addon.py
kodi-steamlink-launcher-0.0.1/plugin.program.steamlink/addon.xml
kodi-steamlink-launcher-0.0.1/Makefile
kodi-steamlink-launcher-0.0.1/README.md

Error if user is root

If kodi is run under root user also steamlink is runned by root user and that's not allowed by it, that's why an error shows up.

It asks for password when launch it

I installed it in kodi Leia 18.4

It doesnt't work, it lunch the raspbian desktop and in the middle it asks for the account password.

Do you have any clue why?

I have a raspi 4 with raspbian buster

Functionality handicap in trouble

There is a little issue between jumping from Kodi to Steam Link.
When steam link starts it jumps on "mandatory - blue screen - setup" page with a button "start playing".

On kodi I can control everything with my phone / game controller - no issues
on steam link I can control everything with my game controller - no issues

but this damn blue screen, for that one screen I have to plugin my mouse just to press that one button to continue...
please assist, I am sure someone here already solved this issue.

(running on Ubuntu)

Prepare release v1.0.0

I see that some of you have interest into this project but unfortunately I was not able to work any longer on this. I will rearrange some priorities to start again some work on this project ๐ŸŽ‰

Based on feedback I get, I will work on:

  • Build a testing environment

    • Rpi 3
    • Debian stable (buster)
  • Allow to customize the user that is running the plugin (auto-detect ?)

  • Add Kodi v18 support

Unable to satisfy xbmc.python

This might be because the plugin is old, but on the latest version of kodi, it is running xbmc.python v3.0.0, and the plugin is working on 2.25.x. It might need an extra update.

Failed due to an invalid structure

When trying to install the addons on Kodi v18.4, this error indicates to me:
"Failed due to an invalid structure"
Can it be solved in any way? Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.