Coder Social home page Coder Social logo

ssmi-python's Introduction

SSMI Python

This code reads from (currently) Spotify to get the current song information to then be used to update a SteelSeries keyboard's OLED display.

I have plans for a native implementation on all operating systems due to the problems I have had with automatic launching. This will come sometime in the future.

MacOS and Linux

Make sure you have python-daemon, requests, and spotipy installed as root. To launch as daemon, just use sudo python3 unix.py. You can make a startup file if you want, but implementations are platform-dependent.

Windows

Look at my new repository that has a native implementation of this repo.

Below are the old instructions.

This is not for the lighthearted.

First, you will need Python 3.8 installed with pywin32, requests, and spotipy installed as root. You then need to set some system PATH variables:

  • [PythonPath]\Python38-32\Scripts\
  • [PythonPath]\Python38-32\
  • [PythonPath]\Python38-32\Lib\site-packages
  • [PythonPath]\Python38-32\Lib\site-packages\pywin32_system32

Example: C:\Users\jackh\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pywin32_system32

Change these as needed to sut your computer's structure. Restart your computer to ensure these variables are recognized.

Next, you need to run the post install script at [PythonPath]\Python38-32\Scripts\pywin32_postinstall.py.

Next, you need to copy [PythonPath]\Python38-32\Lib\site-packages\pywin32_system32\pywintypes38.dll to [PythonPath]\Python38-32\Lib\site-packages\win32.

Next, you need to install the service. To do this, navigate to service.py in the Command Prompt and run python service.py install. I have not tested what happens if the file is moved after installation, so undefined behavior may occur. If you want to move the file after installation, run python service.py remove, restart, move the file, then run the install command again and follow the directions from here.

You're almost done! Run services.msc, then navigate to the SteelSeries Media Integration Service. Don't start it yet! Double click on the service and navigate to the Log On tab. Select This Account, then browse for your username (enter it into the box then click Check Names then OK). After that, enter your password twice and click Apply and then OK. You will be granted the permission to start services.

So close! Run the service. However, it won't work. This was just to generate the config file. This will be under your user directory under a folder called SSMI. Open creds.json and enter your information. Save it and close it.

Finally, go back to the Services window and double click on the service again, now set the startup type to Automatic and click Apply then OK.

Congratulations! Close your windows, restart your computer and you are done!

ssmi-python's People

Contributors

imthesquid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.