Solved EXT-Spotify v2 ?
-
Maybe this video of this plugins will help to discover my art of coding !
-
now let’s add spotify control button
-
Point of view of the day:
Hey …
Don't you worry
it will coming soon !Notes:
- I try to keep the same sample with new adds for compare
- Added Official icon (SVG format)
Now… Let’s coding:
- Callback of the button (for touch screen users !)
- Auto update of the button (play/pause, repeat, shuffle)
- Auto Update of the volume (with icon too !)
I hope you like the design (if not, don’t hesitate to tell me!)
-
Let me know when ready i can test an be guiny pig, been working non stop on MM for 5 days. Learning, making mistakes, starting over. All good now and 13 ext modules installed from gateway. Love that little page. Merci beaucoup pour toute.
-
@mroyusa : sorry, I can’t send testing version actually. I have so many change not pushed (
EXT-Spotify
, my own library for canvas/lyrics search)
Coded:
- Send Callback to
EXT-Spotify
when control buttons press (Suffle, Previous, Play/Pause, Next, Repeat) - Auto update of buttons state (play/pause, repeat, shuffle)
- Auto Update of volume icon (Off, Low, Medim, High)
- Touch volume Progress bar (determinate new volume and send callback to
EXT-Spotify
) - Touch seek progress bar (determinate seek position and send callback to
EXT-Spotify
) - Display the name of the player
Now… what I have to do (Another very hard part)
- display
EXT-SpotifyCanvasLyrics
plugin only whenEXT-Librespot
orEXT-Raspotify
player is used - Hide
EXT-Spotify
whenEXT-Librespot
orEXT-Raspotify
player is used - Don’t Run
EXT-SpotifyCanvasLyrics
“code” whenEXT-Librespot
orEXT-Raspotify
player is NOT used - Don’t Run
EXT-Spotify
display rules whenEXT-Librespot
orEXT-Raspotify
player is used - Send ONLY
EXT-Spotify
result code toEXT-SpotifyCanvasLyrics
whenEXT-Librespot
orEXT-Raspotify
player is used
- Send Callback to
-
So …
All features is now coded !
I have push
EXT-Spotify
v1.1.0
The last snap of EXT-SpotifyCanvasLyrics for testingNaturally, I have some part of code to do better
I will see your reports, if you want to test itNote in
EXT-Spotify
v1.1.0:useBottomBar
feature is deletedIt’s a snap… not a release
-
Downloaded update with no issues, mirror boots, no errors. trying to fix my google assistant and i will let you know.
-
I have no video and no auto popup anymore, but i hear the music when i cast to MM.
-
J’ai poussé le module et ça fonctionne du tonnerre !
Dans le readme à l’installation il n’y a pas la ligne pour accéder au répertoire magicmirror/module donc comme j’ai copié bêtement j’ai eut une erreur a l’installation mais je m’en suis vite rendu compte
Pour info mon miroir est en mode portrait et ça me prends tout l’écran -
-
Oui, comme j’ai dis dans le Readme, je l’ai codé en mode paysage,
J’ai quelque fixe à faire encore. J’en profiterai pour coder un mode portrait (automatique}
Pour le moment, c’est simplement voir ce que cela donne. Car j’utilise 3 Api en même temps
Effectivement pour le Readme, j’ai oublier -
Tu utilise le touch screen au fait ?
-
@bugsounet oui mais moi en mode portrait je n’ai pas de perte d’écran il n’est pas réduit sur la hauteur ( pas de barre noir au dessus et en dessous ) ça a l’air de s’adapter ! J’ai moins d’espaces entre les 3 colonnes du visuel mais c’est fluide
Encore du super boulot -
@bugsounet alors j’en ai un avec un écran tactile mais pas encore poussé
Par contre avec vnc la fonction tactile fonctionne sur toutes les touches -
Normalement c’est en full control… Du volume, juste qu’à la barre de progression
Il me reste juste l’icône volume qui n’est pas coder. J’ai prévu de pouvoir couper le son avec par contre la progress bar du volume est en touch screen -
@bugsounet tout est nickel
Encore une fois -
Salut salut
Petit soucis technique j’ai poussé le module sur mon rpi 3 avec l’écran tactile et j’ai apparemment un soucis avec python
Installing requirements.txt…
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting python-dotenv (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/5c/0c/9c5d5dd254e9e7a32d34777cc6fd33cbeb174744061458b88470aecbd1d6/python_dotenv-0.18.0-py2.py3-none-any.whl
Collecting protobuf (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/6c/be/4e32d02bf08b8f76bf6e59f2a531690c1e4264530404501f3489ca975d9a/protobuf-4.21.0-py2.py3-none-any.whl (164kB)
100% |████████████████████████████████| 174kB 3.0MB/s
protobuf requires Python ‘>=3.7’ but the running Python is 2.7.16
npm ERR! code 1
npm ERR! path /home/pi/MagicMirror/modules/EXT-SpotifyCanvasLyrics
npm ERR! command failed
npm ERR! command sh -c – installer/preinstall.shnpm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-08-30T07_49_26_454Z-debug-0.logJe ne connais pas la procédure
Tu pourrais m’aiguiller encore une fois stp -
python3 est-il installé ?
python3 -V
-
@bugsounet
Pas accès avant dimanche
Je te tiens au courant -
Pas de souci,
Tu regarderas, j’ai pensé a toi.
J’ai mis a jour pour une utilisation en mode portrait (avec detection automatique)
Tu me dira si ça te vasLa video se retrouve en background maintenant