chapnickc / wizhook Goto Github PK
View Code? Open in Web Editor NEWSynchronize your Wiz connected light with the music you play on Spotify
License: MIT License
Synchronize your Wiz connected light with the music you play on Spotify
License: MIT License
Hi @larochefoucald,
On README.md, it says to use the following code to install the required modules:
pip install spotipy pywizlight aiohttp
but since I am using Python 3, I needed to use this command instead:
pip3 install spotipy pywizlight aiohttp
I am using Debian 11, not sure if it's to do with that, but could you please correct this for others.
Thanks,
Aidan R
Hi @larochefoucald!
After running these commands*, I occasionaly get this error:
ERROR:root:0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/me/player/currently-playing') Traceback (most recent call last): File "/home/[user]/Downloads/WizHook-main/app/SpotifyChangeListener.py", line 66, in listen async for event in self._listen_for_events(session): File "/home/[user]/Downloads/WizHook-main/app/SpotifyChangeListener.py", line 48, in _listen_for_events current = await self._get_current_playing(session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/[user]/Downloads/WizHook-main/app/SpotifyChangeListener.py", line 34, in _get_current_playing return await response.json() ^^^^^^^^^^^^^^^^^^^^^ File "/home/[user]/.local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1104, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/me/player/currently-playing')
Afterwards, the program keeps running, and I'm not sure why. Could someone please help?
Thanks,
Aidan R
*. ./env.sh
& python3 main.py
Hi @chapnickc
I noticed there is only one Spotify account available for this project. Is there a way you could configure this so multiple Spotify accounts could use the app?
Thanks,
Aidan R
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.