Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] Spotify

Pour échanger sur les plugins classés en catégorie "Multimédia"
Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 24 mai 2019, 22:49

Lors de mes devs, ce n'était pas simple de voir ce qui ce se passe :-)

Tu peux mettre le plugin en debug et redémarrer le daemon, dans ce cas tu auras un fichier de log spotify_daemon dans lequel tu pourras voir par exemple:

Quand je clique sur play sur l'un de mes devices, j'ai une trace qui ressemble à ça:

=================== BEGIN CURRENT PLAYBACK ITEM ==========================
--- API KEY xxxxxxxxxxxxxxx ---
--- ID 204 ---
--- ITEM ID yyyyyyyyyyyyyyyy ---
--- ITEM TITLE The Medallion Calls ---
--- ITEM ARTIST Klaus Badelt ---
--- ITEM ALBUM Pirates Of The Caribbean Original Soundtrack ---
--- ITEM IMAGE https://i.scdn.co/image/yyyyyyyyyyyyyyyyyyyyyyyyyy ---
--- CONTEXT TYPE playlist ---
--- CONTEXT URI spotify:user:yyyyyyyyy:playlist:yyyyyyyyyyyyyyyyyyyyyyy ---
==================== END CURRENT PLAYBACK ITEM ===========================

Lorsque je clique sur pause sur l'un de mes devices:

=================== BEGIN CURRENT PLAYBACK ITEM ==========================
--- API KEY xxxxxxxxxxxxxxxxxxxxxxxxx ---
--- ID 204 ---
--- ITEM ID ---
--- ITEM TITLE ---
--- ITEM ARTIST ---
--- ITEM ALBUM ---
--- ITEM IMAGE ---
--- CONTEXT TYPE ---
--- CONTEXT URI ---
==================== END CURRENT PLAYBACK ITEM ===========================

Cela va déja permettre de vérifier que le daemon, récupère les bonnes infos de spotify. Ensuite dans le fichier de log spotify du plugin tu devrais voir les infos qui sont remontées, dans le genre:

[2019-05-24 22:45:16][INFO] : ### ID 204 ###
[2019-05-24 22:45:16][INFO] : ### PLAYING true ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE playing / "true" / false / "true" ###
[2019-05-24 22:45:16][INFO] : ### ITEM ID xxxxxxxxxxxxxxxxxxx ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_id / "xxxx" / false / "xxxx" ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_id / "xxx" / false / "xxxx" ###
[2019-05-24 22:45:16][INFO] : ### ITEM ALBUM The Greatest Instrumentals of All Time ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_album / "The Greatest Instrumentals of All Time" / false / "The Greatest Instrumentals of All Time" ###
[2019-05-24 22:45:16][INFO] : ### ITEM TITLE Mission Impossible ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_title / "Mission Impossible" / false / "Mission Impossible" ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_title / "Mission Impossible" / false / "Mission Impossible" ###
[2019-05-24 22:45:16][INFO] : ### ITEM ARTIST The Session ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_artist / "The Session" / false / "The Session" ###
[2019-05-24 22:45:16][INFO] : ### IS PLAYING ###
[2019-05-24 22:45:16][INFO] : ### ITEM IMAGE https://i.scdn.co/image/xxxxxxxxxxxxxxx ... xxxxxxxxxx ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE item_image / "https:\/\/i.scdn.co\/image\/xxxxxxxxxxxxxxxxxxxx" / false / "https:\/\/i.scdn.co\/image\/xxxxxxxxxxxxxxxxxxxxxxx" ###
[2019-05-24 22:45:16][INFO] : ### CONTEXT TYPE playlist ###
[2019-05-24 22:45:16][INFO] : ### CONTEXT URI spotify:user:xxxxxxxxxxxxxxx:playlist:xxxxxxxxxxxxxxxxx ###
[2019-05-24 22:45:16][INFO] : ### PLAYLIST ID xxxxxxxxxxxxxxxxxxxxxx ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE playlist_id / "xxxxxxxxxxx" / false / "xxxxxxxxxx" ###
[2019-05-24 22:45:16][INFO] : ### LIST xxxxxxxxxxxxxx|Pet Shop Boys;xxxxxxxxxxxxxxxxxxxx|Depeche Mode;xxxxxxxxxxxx|cccccccccc ????;xxxxxxxxxxxxxxxxxx|Viral;xxx|Films;xx|Année 80;xxx|Techno ###
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST PARSE = Pet Shop Boys ---
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST PARSE = Depeche Mode ---
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST PARSE = plestinn ???? ---
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST PARSE = Viral ---
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST PARSE = Films ---
[2019-05-24 22:45:16][DEBUG] : --- PLAYLIST FOUND = Films ---
[2019-05-24 22:45:16][INFO] : ### PLAYLIST NAME Films ###
[2019-05-24 22:45:16][DEBUG] : ### FORMAT VALUE playlist_name / "Films" / false / "Films" ###

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 25 mai 2019, 00:25

Peux-tu modifier le fichier spotify.js qui est dans le repertoire ressources du plugin afin d'ajouter une trace supplémentaire à la ligne 145 du fichier:

console.log(data.body);
var _context_type = data.body['context']['type'];

Tu mets le plugin en debug et tu redémarre le daemon.

Il semblerait que tu n'ais rien dans le champ type de context.

De mon coté j'ai type: 'playlist' et toi ?

Idaho947
Actif
Messages : 1281
Inscription : 30 mai 2017, 21:36

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par Idaho947 » 25 mai 2019, 23:03

Juste une question, le plug-in envoit en permanence en moyenne 8 requettes à la seconde (vu sur mon pihole). Il n'y a que moi qui trouve ça énorme ?

unskil
Timide
Messages : 19
Inscription : 19 avr. 2017, 21:17

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par unskil » 26 mai 2019, 10:42

bonjour à tous,

petite question également, l'adresse "Callback url" doit être local où ça doit être l'adresse web ?
Pour ma part, le plugin fonctionne en partie. J'arrive à piloter le client lourd spotify sur le pc (mais jacket, device id et playlist pas visible).
Si je diffuse le son sur un autre appareil, j'ai une erreur "Restricted device"

Dans les logs sptify_daemon, je vois ---WAITING--- partout et en continu.

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 26 mai 2019, 13:27

Le fonctionnement est le même que l'application spotify: comme il n'existe pas de moyen d'être notifié par callback d'une modification de lecture, playlist, ... le seul moyen est de venir demander cycliquement via l'API les dernier changements. C'est le rôle du serveur nodejs qui boucle en requetant via l'API spotify. Si celui-ci détecte un changement il fait un appel vers jeedom pour lui fournir les nouvelles infos, sinon il réessaie à nouveau au bout de 1 seconde => si quelqu'un a une autre idée, je suis prêt à regarder pour optimiser le plugin :-)

bender765
Timide
Messages : 3
Inscription : 26 mai 2019, 15:54

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par bender765 » 26 mai 2019, 21:18

salut,

Tu peux le faire avec le plugin jeexplorer

mithandir
Timide
Messages : 20
Inscription : 09 févr. 2017, 09:50

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par mithandir » 27 mai 2019, 10:53

unskil a écrit :
26 mai 2019, 10:42
bonjour à tous,

petite question également, l'adresse "Callback url" doit être local où ça doit être l'adresse web ?
Pour ma part, le plugin fonctionne en partie. J'arrive à piloter le client lourd spotify sur le pc (mais jacket, device id et playlist pas visible).
Si je diffuse le son sur un autre appareil, j'ai une erreur "Restricted device"

Dans les logs sptify_daemon, je vois ---WAITING--- partout et en continu.
Exactement le même problème. Pour le callback url, j'ai mis mon adresse externe, c'est ce qui me paraissait le plus cohérent..
Peut-être le dev @sbr a t'il une idée sur comment creuser notre problème?

unskil
Timide
Messages : 19
Inscription : 19 avr. 2017, 21:17

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par unskil » 27 mai 2019, 13:26

mithandir a écrit :
27 mai 2019, 10:53
unskil a écrit :
26 mai 2019, 10:42
bonjour à tous,

petite question également, l'adresse "Callback url" doit être local où ça doit être l'adresse web ?
Pour ma part, le plugin fonctionne en partie. J'arrive à piloter le client lourd spotify sur le pc (mais jacket, device id et playlist pas visible).
Si je diffuse le son sur un autre appareil, j'ai une erreur "Restricted device"

Dans les logs sptify_daemon, je vois ---WAITING--- partout et en continu.
Exactement le même problème. Pour le callback url, j'ai mis mon adresse externe, c'est ce qui me paraissait le plus cohérent..
Peut-être le dev @sbr a t'il une idée sur comment creuser notre problème?
J'ai essayé les 2. Adresse DNS et ip locale. j'ai toujours le même problème. Si je peux aider avec des logs, dites moi ce qu'il vous faut.
Merci

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 28 mai 2019, 01:05

unskil a écrit :
27 mai 2019, 13:26
mithandir a écrit :
27 mai 2019, 10:53
unskil a écrit :
26 mai 2019, 10:42
bonjour à tous,

petite question également, l'adresse "Callback url" doit être local où ça doit être l'adresse web ?
Pour ma part, le plugin fonctionne en partie. J'arrive à piloter le client lourd spotify sur le pc (mais jacket, device id et playlist pas visible).
Si je diffuse le son sur un autre appareil, j'ai une erreur "Restricted device"

Dans les logs sptify_daemon, je vois ---WAITING--- partout et en continu.
Exactement le même problème. Pour le callback url, j'ai mis mon adresse externe, c'est ce qui me paraissait le plus cohérent..
Peut-être le dev @sbr a t'il une idée sur comment creuser notre problème?
J'ai essayé les 2. Adresse DNS et ip locale. j'ai toujours le même problème. Si je peux aider avec des logs, dites moi ce qu'il vous faut.
Merci
Le DNS ne devrait rien à voir avec le pb que vous rencontrez, car il est utilisé que pour l'authentification.

Pouvez-vous partager le contenu du fichier de log du daemon, généré en ajoutant la trace comme je l'ai mentionée, un peu plus haut dans les messages, afin que je puisse analyser ?

Merci

sbr

Avatar de l’utilisateur
lunarok
Actif
Messages : 6704
Inscription : 08 août 2014, 12:48
Localisation : Anjou

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par lunarok » 28 mai 2019, 09:23

Bonjour,

@sbr il faudrait que tu modifies les couleurs de tes plugins (spotify et l'autre)
la couleur des plugins est spécifique à un dev, on a chacun la notre et là tu utilises la mienne, ca prête à confusion

Merci
Mon Blog | Xiaomi Home
Pour contribuer au développement des plugins (don ou achat de matériel) : Paypal
Aides nous à t'aider : les logs, détails du soucis, la doc, recherche sur le forum ...
PS : pas de support par MP, je ne répondrais pas

mithandir
Timide
Messages : 20
Inscription : 09 févr. 2017, 09:50

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par mithandir » 28 mai 2019, 09:47

Salut srb et merci pour ton retour.
J'ai ajouté le console.log comme demandé plus haut. Voici le résultat :

Démon :

Code : Tout sélectionner

--- STARTING ---
--- ENDING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
Spotify :

Code : Tout sélectionner

[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_id / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_id_set / "1395" ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_name / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_is_active / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_volume / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_volume_set / "1399" ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_id / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_album / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_title / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_artist / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_image / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE playlist_id / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_id_set / "1406" ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE device_name_set / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_name / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_name_set / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE previous / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE next / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playing / null ###
[2019-05-28 09:32:15][INFO] : --- DAEMON START ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON ALREADY STARTED ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON STOP ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON FIRST STOP ---
[2019-05-28 09:32:15][INFO] : --- CMD = sudo kill $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON SECOND STOP ---
[2019-05-28 09:32:15][INFO] : --- CMD = sudo kill -9 $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:32:16][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:32:16][INFO] : --- DAEMON STOP SUCCEED ---
[2019-05-28 09:32:16][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=remove callInstallFunction=1
[2019-05-28 09:32:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:42:03][INFO] : Début d'activation du plugin
[2019-05-28 09:42:04][INFO] : Info sur le démon : Array (     [launchable_message] =>      [launchable] => nok     [state] => nok     [log] => nok     [auto] => 0 )
[2019-05-28 09:42:04][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=install callInstallFunction=1
[2019-05-28 09:43:18][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:29][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:29][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][INFO] : --- DAEMON STOP ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:44:11][INFO] : --- DAEMON FIRST STOP ---
[2019-05-28 09:44:11][INFO] : --- CMD = sudo kill $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:44:11][INFO] : --- DAEMON STOP SUCCEED ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON START ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:44:11][INFO] : --- KEY = isPvMqLs6ECqVkRKnkeue906ymbSgq0K ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:12][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:12][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:21][INFO] : --- NET = https://home.sdewolf.be:433 ---
[2019-05-28 09:44:21][INFO] : --- URL = https://home.sdewolf.be:433/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=isPvMqLs6ECqVkRKnkeue906ymbSgq0K ---
[2019-05-28 09:44:21][INFO] : --- LOG LEVEL = 100 ---
[2019-05-28 09:44:21][INFO] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2019-05-28 09:44:21][INFO] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "https://home.sdewolf.be:433/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=isPvMqLs6ECqVkRKnkeue906ymbSgq0K" "true" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 1 ---
[2019-05-28 09:44:21][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:44:21][INFO] : --- DAEMON START SUCCEED ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:26][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:26][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:31][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:31][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:36][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:36][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE device_id_set / "1395" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE device_id_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE device_volume_set / "1399" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE device_volume_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
","dashboard::cmd.action.slider.default":"<span class=\"cmd cmd-widget\" data-type=\"action\" data-subtype=\"slider\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\">
<div class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/div>
<div class=\"slider\" style=\"margin : 5px 10px 8px 10px;width: 80px;\" value=\"#state#\"><\/div>
<script>
$(\".cmd[data-cmd_uid=#uid#] .slider.slider-horizontal\").css('z-index',1);
jeedom.cmd.update['#id#'] = function(_options){
$(\".cmd[data-cmd_id=#id#] .slider\").slider({
min: ('#minValue#' == '') ? 0 : parseInt('#minValue#'),
max: ('#maxValue#' == '') ? 100 : parseInt('#maxValue#'),
value: ('#state#' == '') ? 0 : parseInt(_options.display_value)
})
}
jeedom.cmd.update['#id#']({display_value:'#state#'});
$(\".cmd[data-cmd_uid=#uid#] .slider\").on('slidestop', function (event,ui) {
jeedom.cmd.execute({id: '#id#', value: {slider: ui.value}});
});
<\/script>
<\/span>"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE playlist_id_set / "1406" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE playlist_id_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
","dashboard::cmd.action.slider.default":"<span class=\"cmd cmd-widget\" data-type=\"action\" data-subtype=\"slider\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\">
<div class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/div>
<div class=\"slider\" style=\"margin : 5px 10px 8px 10px;width: 80px;\" value=\"#state#\"><\/div>
<script>
$(\".cmd[data-cmd_uid=#uid#] .slider.slider-horizontal\").css('z-index',1);
jeedom.cmd.update['#id#'] = function(_options){
$(\".cmd[data-cmd_id=#id#] .slider\").slider({
min: ('#minValue#' == '') ? 0 : parseInt('#minValue#'),
max: ('#maxValue#' == '') ? 100 : parseInt('#maxValue#'),
value: ('#state#' == '') ? 0 : parseInt(_options.display_value)
})
}
jeedom.cmd.update['#id#']({display_value:'#state#'});
$(\".cmd[data-cmd_uid=#uid#] .slider\").on('slidestop', function (event,ui) {
jeedom.cmd.execute({id: '#id#', value: {slider: ui.value}});
});
<\/script>
<\/span>","dashboard::cmd.info.string.default":"<div class=\"tooltips cmd cmd-widget\" data-type=\"info\" data-subtype=\"string\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"display: block;\">
<center><span style=\"font-size : 12px;#hideCmdName#\" class=\"cmdName\">#name_display#<\/span> <strong class=\"state\"><\/strong><\/center>
<script>
jeedom.cmd.update['#id#'] = function(_options){
$('.cmd[data-cmd_id=#id#]').attr('title','Valeur du '+_options.valueDate+', collect\u00e9e le '+_options.collectDate)
$('.cmd[data-cmd_id=#id#] .state').empty().append(_options.display_value);
$('.cmd[data-cmd_id=#id#]').removeClass('label label-warning label-danger')
if(_options.alertLevel == 'warning'){
$('.cmd[data-cmd_id=#id#]').addClass('label label-warning');
}else if(_options.alertLevel == 'danger'){
$('.cmd[data-cmd_id=#id#]').addClass('label label-danger');
}
}
jeedom.cmd.update['#id#']({display_value:'#state#',valueDate:'#valueDate#',collectDate:'#collectDate#',alertLevel:'#alertLevel#'});
<\/script>
<\/div>
","dashboard::cmd.info.string.item_image":"<div class=\"cmd\" data-type=\"info\" data-version=\"#version#\" data-eqLogic_id=\"#eqLogic_id#\" data-subtype=\"string\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\">
<img class=\"state\" src=\"#state#\" width=\"160px\" height=\"160px\">
<script>
jeedom.cmd.update['#id#'] = function(_options){
$('.cmd[data-cmd_id=#id#] .state').attr('src', _options.display_value);
}
jeedom.cmd.update['#id#']({display_value:'#state#',valueDate:'#valueDate#',collectDate:'#collectDate#',alertLevel:'#alertLevel#'});
<\/script>
<\/div>"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE previous / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE previous / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE play / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE pause / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE next / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE next / false ###
[2019-05-28 09:44:42][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:42][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:46][DEBUG] : ### EXECUTE device_volume_set / {"slider":"44","utid":"1559029477023"} ###
[2019-05-28 09:44:46][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:46][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:46][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:46][DEBUG] : --- ACCESS TOKEN BQB2evNKZJjOsV-Bp6KrTftpBtZWauAInFTXd0WWrY_zGH91MYN34SthE7mGYiEl1D5TiUCF1IpCsVdfKg-vAiWQDvBO99uH_itmr6-6thGZJ1dQJkjs8bZnjyowrRrYYrc6p3G1uk77-Ql4DZ0mIJCl8BtdxI1gjS6YmZ3olQE ---
[2019-05-28 09:44:46][DEBUG] : --- VOLUME REQUESTED ---
[2019-05-28 09:44:46][ERROR] : Erreur exécution de la commande [Salon][test][Device Volume Set] : Player command failed: No active device found
[2019-05-28 09:44:47][DEBUG] : ### EXECUTE device_volume_set / {"slider":"80","utid":"1559029477023"} ###
[2019-05-28 09:44:47][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:47][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:47][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:47][DEBUG] : --- ACCESS TOKEN BQAaRlkKvgdl-TcYR7IpctMFclGKjTQDPK59Y6nJbSIShYtRYJq48jOyowf3gx6DeRt62YX9t8Zh1Ai1VOfpG24mpwlb5HzeBX5sycXQN2PuJn808FovxjvSMczKShKv5TujOzxlpYL58R5eRQj9tiM7fm5gDm8p2oM7RgpqLSA ---
[2019-05-28 09:44:47][DEBUG] : --- VOLUME REQUESTED ---
[2019-05-28 09:44:47][ERROR] : Erreur exécution de la commande [Salon][test][Device Volume Set] : Player command failed: No active device found
[2019-05-28 09:44:48][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:48][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:51][DEBUG] : ### EXECUTE play / {"utid":"1559029477023"} ###
[2019-05-28 09:44:51][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:51][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:51][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:51][DEBUG] : --- ACCESS TOKEN BQBYALcYQS0lvNkTS-CcwyOaz-WQnwcOqFL9iX0TE0NsIm5ee_BUi2qwW9SE_gRoPdw-yMvHlONYI-i5RpoiTjyyKJUDJxZHHGvVpeN5j-Mo8PHcIeUuQbXW9F-dZwIoJCNCrcl8QXbyZW6WeSOt-OJkUmQIoVyNgQWUvjMHuj8 ---
[2019-05-28 09:44:51][DEBUG] : --- PLAY REQUESTED ---
[2019-05-28 09:44:51][ERROR] : Erreur exécution de la commande [Salon][test][Play] : Player command failed: No active device found
[2019-05-28 09:44:54][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:54][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:57][DEBUG] : ### EXECUTE play / {"utid":"1559029477023"} ###
[2019-05-28 09:44:57][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:57][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:57][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:57][DEBUG] : --- ACCESS TOKEN BQB-5tMNGcqUZZymhsQGevxosH48ezedUAs2k1cmeSfPZB0aMubBnwNEiHWOpXtVyytBvI6triZ3IkunzWhFnnxh2dPN0cPu-nHOBk6HMv4yqULQG_w3wFAkKU6KCcS63MLhhMqUATn50T5zpWAAmh4dDCAUpd5woyLS3ZC-e7U ---
[2019-05-28 09:44:57][DEBUG] : --- PLAY REQUESTED ---
[2019-05-28 09:44:57][DEBUG] : ### FORMAT VALUE play / null / false / "" ###
[2019-05-28 09:44:57][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:45:00][DEBUG] : ### EXECUTE pause / {"utid":"1559029477023"} ###
[2019-05-28 09:45:00][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:45:00][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:45:00][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:45:00][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:00][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:00][DEBUG] : --- ACCESS TOKEN BQCRqV9NMLS-Ao-lo6SWxmWyBJrxO_nIX-xkp2gsl7ZMJDbG9otv0JzJqxsMema1Gq0197jyilJYDyUt59FNQuQjlTreI708kS6deerhmuc8POBO2Lg7tGDxUdmaDvuDCui6apMcJ3CVN0CWeDMv41sD2hcT4DTNEO0bbtssW-g ---
[2019-05-28 09:45:00][DEBUG] : --- PAUSE REQUESTED ---
[2019-05-28 09:45:00][DEBUG] : ### FORMAT VALUE pause / null / false / "" ###
[2019-05-28 09:45:00][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:45:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:05][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:05][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:17][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:20][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:20][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:26][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:26][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:38][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:38][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:02][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:02][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:08][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:08][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:14][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:14][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:20][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:20][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:25][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:25][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON PID = 2 ---
J'ai pas l'impression que le code arrive jusqu'à la ligne que j'ai rajoutée dans le code.. :-)

Merci d'avance !

elembee
Timide
Messages : 52
Inscription : 20 mai 2015, 11:48

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par elembee » 28 mai 2019, 17:52

Bonjour,
J'ai un peu galéré, mais j'ai fini par faire fonctionner le plugin...jusqu’à ce que je tente d'ajouter un second compte de spotify family, et là le daemon plante. Quelqu'un a réussi ? Est-ce que c'est prévu pour fonctionner ou pas encore implémenté ? Merci.

INFO : Pour ceux qui rament encore, j'ai réussi en étant en 100% local (pas d'accès distant sur le rasp). Je me suis connecté de mon réseau local sur le site dev spotify et sur mon jeedom. Avec relance du daemon après token + delog de dev spotify.

elembee
GH + LMS + piCore Player + Spotify Family
Dernière édition par elembee le 31 mai 2019, 15:31, édité 1 fois.
elembee

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 28 mai 2019, 22:28

mithandir a écrit :
28 mai 2019, 09:47
Salut srb et merci pour ton retour.
J'ai ajouté le console.log comme demandé plus haut. Voici le résultat :

Démon :

Code : Tout sélectionner

--- STARTING ---
--- ENDING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
Spotify :

Code : Tout sélectionner

[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_id / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_id_set / "1395" ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_name / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_is_active / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_volume / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE device_volume_set / "1399" ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_id / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_album / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_title / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_artist / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE item_image / null ###
[2019-05-28 09:32:14][DEBUG] : ### GET VALUE playlist_id / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_id_set / "1406" ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE device_name_set / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_name / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playlist_name_set / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE previous / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE next / null ###
[2019-05-28 09:32:15][DEBUG] : ### GET VALUE playing / null ###
[2019-05-28 09:32:15][INFO] : --- DAEMON START ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON ALREADY STARTED ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON STOP ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON FIRST STOP ---
[2019-05-28 09:32:15][INFO] : --- CMD = sudo kill $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:32:15][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:32:15][INFO] : --- DAEMON SECOND STOP ---
[2019-05-28 09:32:15][INFO] : --- CMD = sudo kill -9 $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:32:16][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:32:16][INFO] : --- DAEMON STOP SUCCEED ---
[2019-05-28 09:32:16][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=remove callInstallFunction=1
[2019-05-28 09:32:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:32:16][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:42:03][INFO] : Début d'activation du plugin
[2019-05-28 09:42:04][INFO] : Info sur le démon : Array (     [launchable_message] =>      [launchable] => nok     [state] => nok     [log] => nok     [auto] => 0 )
[2019-05-28 09:42:04][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=install callInstallFunction=1
[2019-05-28 09:43:18][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:18][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:23][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:29][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:29][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:39][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:43:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][INFO] : --- DAEMON STOP ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:11][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:44:11][INFO] : --- DAEMON FIRST STOP ---
[2019-05-28 09:44:11][INFO] : --- CMD = sudo kill $(ps aux | grep "spotify.js" | awk '{print $2}') ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON INFO {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:44:11][INFO] : --- DAEMON STOP SUCCEED ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON START ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:11][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2019-05-28 09:44:11][INFO] : --- KEY = isPvMqLs6ECqVkRKnkeue906ymbSgq0K ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:12][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:12][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:17][DEBUG] : --- DAEMON NOT LAUNCH ---
[2019-05-28 09:44:21][INFO] : --- NET = https://home.sdewolf.be:433 ---
[2019-05-28 09:44:21][INFO] : --- URL = https://home.sdewolf.be:433/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=isPvMqLs6ECqVkRKnkeue906ymbSgq0K ---
[2019-05-28 09:44:21][INFO] : --- LOG LEVEL = 100 ---
[2019-05-28 09:44:21][INFO] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2019-05-28 09:44:21][INFO] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "https://home.sdewolf.be:433/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=isPvMqLs6ECqVkRKnkeue906ymbSgq0K" "true" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 1 ---
[2019-05-28 09:44:21][INFO] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2019-05-28 09:44:21][INFO] : --- DAEMON START SUCCEED ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:21][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:26][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:26][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:31][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:31][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:36][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:36][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:37][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE device_id_set / "1395" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE device_id_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE device_volume_set / "1399" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE device_volume_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
","dashboard::cmd.action.slider.default":"<span class=\"cmd cmd-widget\" data-type=\"action\" data-subtype=\"slider\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\">
<div class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/div>
<div class=\"slider\" style=\"margin : 5px 10px 8px 10px;width: 80px;\" value=\"#state#\"><\/div>
<script>
$(\".cmd[data-cmd_uid=#uid#] .slider.slider-horizontal\").css('z-index',1);
jeedom.cmd.update['#id#'] = function(_options){
$(\".cmd[data-cmd_id=#id#] .slider\").slider({
min: ('#minValue#' == '') ? 0 : parseInt('#minValue#'),
max: ('#maxValue#' == '') ? 100 : parseInt('#maxValue#'),
value: ('#state#' == '') ? 0 : parseInt(_options.display_value)
})
}
jeedom.cmd.update['#id#']({display_value:'#state#'});
$(\".cmd[data-cmd_uid=#uid#] .slider\").on('slidestop', function (event,ui) {
jeedom.cmd.execute({id: '#id#', value: {slider: ui.value}});
});
<\/script>
<\/span>"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE playlist_id_set / "1406" ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE playlist_id_set / {"_templateArray":{"dashboard::cmd.action.select.default":"<div class=\"cmd cmd-widget reportModeHidden\" data-type=\"action\" data-subtype=\"select\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"width: 146px;height: 44px;\">
<span class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/span><br\/>
<select class=\"selectCmd\" style=\"color:#cmdColor#;background-color:#background-color#;border-radius: 5px;width: 146px;\">#listValue#<\/select>
<script>
$(\".cmd[data-cmd_uid=#uid#] .selectCmd\").on('change', function () {
jeedom.cmd.execute({id: '#id#', value: {select: $(this).value()}});
});
<\/script>
<\/div>
","dashboard::cmd.action.slider.default":"<span class=\"cmd cmd-widget\" data-type=\"action\" data-subtype=\"slider\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\">
<div class=\"cmdName\" style=\"font-weight: bold;font-size : 12px;#hideCmdName#\">#name_display#<\/div>
<div class=\"slider\" style=\"margin : 5px 10px 8px 10px;width: 80px;\" value=\"#state#\"><\/div>
<script>
$(\".cmd[data-cmd_uid=#uid#] .slider.slider-horizontal\").css('z-index',1);
jeedom.cmd.update['#id#'] = function(_options){
$(\".cmd[data-cmd_id=#id#] .slider\").slider({
min: ('#minValue#' == '') ? 0 : parseInt('#minValue#'),
max: ('#maxValue#' == '') ? 100 : parseInt('#maxValue#'),
value: ('#state#' == '') ? 0 : parseInt(_options.display_value)
})
}
jeedom.cmd.update['#id#']({display_value:'#state#'});
$(\".cmd[data-cmd_uid=#uid#] .slider\").on('slidestop', function (event,ui) {
jeedom.cmd.execute({id: '#id#', value: {slider: ui.value}});
});
<\/script>
<\/span>","dashboard::cmd.info.string.default":"<div class=\"tooltips cmd cmd-widget\" data-type=\"info\" data-subtype=\"string\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\" data-version=\"#version#\" style=\"display: block;\">
<center><span style=\"font-size : 12px;#hideCmdName#\" class=\"cmdName\">#name_display#<\/span> <strong class=\"state\"><\/strong><\/center>
<script>
jeedom.cmd.update['#id#'] = function(_options){
$('.cmd[data-cmd_id=#id#]').attr('title','Valeur du '+_options.valueDate+', collect\u00e9e le '+_options.collectDate)
$('.cmd[data-cmd_id=#id#] .state').empty().append(_options.display_value);
$('.cmd[data-cmd_id=#id#]').removeClass('label label-warning label-danger')
if(_options.alertLevel == 'warning'){
$('.cmd[data-cmd_id=#id#]').addClass('label label-warning');
}else if(_options.alertLevel == 'danger'){
$('.cmd[data-cmd_id=#id#]').addClass('label label-danger');
}
}
jeedom.cmd.update['#id#']({display_value:'#state#',valueDate:'#valueDate#',collectDate:'#collectDate#',alertLevel:'#alertLevel#'});
<\/script>
<\/div>
","dashboard::cmd.info.string.item_image":"<div class=\"cmd\" data-type=\"info\" data-version=\"#version#\" data-eqLogic_id=\"#eqLogic_id#\" data-subtype=\"string\" data-cmd_id=\"#id#\" data-cmd_uid=\"#uid#\">
<img class=\"state\" src=\"#state#\" width=\"160px\" height=\"160px\">
<script>
jeedom.cmd.update['#id#'] = function(_options){
$('.cmd[data-cmd_id=#id#] .state').attr('src', _options.display_value);
}
jeedom.cmd.update['#id#']({display_value:'#state#',valueDate:'#valueDate#',collectDate:'#collectDate#',alertLevel:'#alertLevel#'});
<\/script>
<\/div>"}} ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE previous / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE previous / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE play / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE pause / false ###
[2019-05-28 09:44:38][DEBUG] : ### GET VALUE next / null ###
[2019-05-28 09:44:38][DEBUG] : ### GET CMD VALUE next / false ###
[2019-05-28 09:44:42][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:42][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:43][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:46][DEBUG] : ### EXECUTE device_volume_set / {"slider":"44","utid":"1559029477023"} ###
[2019-05-28 09:44:46][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:46][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:46][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:46][DEBUG] : --- ACCESS TOKEN BQB2evNKZJjOsV-Bp6KrTftpBtZWauAInFTXd0WWrY_zGH91MYN34SthE7mGYiEl1D5TiUCF1IpCsVdfKg-vAiWQDvBO99uH_itmr6-6thGZJ1dQJkjs8bZnjyowrRrYYrc6p3G1uk77-Ql4DZ0mIJCl8BtdxI1gjS6YmZ3olQE ---
[2019-05-28 09:44:46][DEBUG] : --- VOLUME REQUESTED ---
[2019-05-28 09:44:46][ERROR] : Erreur exécution de la commande [Salon][test][Device Volume Set] : Player command failed: No active device found
[2019-05-28 09:44:47][DEBUG] : ### EXECUTE device_volume_set / {"slider":"80","utid":"1559029477023"} ###
[2019-05-28 09:44:47][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:47][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:47][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:47][DEBUG] : --- ACCESS TOKEN BQAaRlkKvgdl-TcYR7IpctMFclGKjTQDPK59Y6nJbSIShYtRYJq48jOyowf3gx6DeRt62YX9t8Zh1Ai1VOfpG24mpwlb5HzeBX5sycXQN2PuJn808FovxjvSMczKShKv5TujOzxlpYL58R5eRQj9tiM7fm5gDm8p2oM7RgpqLSA ---
[2019-05-28 09:44:47][DEBUG] : --- VOLUME REQUESTED ---
[2019-05-28 09:44:47][ERROR] : Erreur exécution de la commande [Salon][test][Device Volume Set] : Player command failed: No active device found
[2019-05-28 09:44:48][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:48][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:49][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:51][DEBUG] : ### EXECUTE play / {"utid":"1559029477023"} ###
[2019-05-28 09:44:51][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:51][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:51][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:51][DEBUG] : --- ACCESS TOKEN BQBYALcYQS0lvNkTS-CcwyOaz-WQnwcOqFL9iX0TE0NsIm5ee_BUi2qwW9SE_gRoPdw-yMvHlONYI-i5RpoiTjyyKJUDJxZHHGvVpeN5j-Mo8PHcIeUuQbXW9F-dZwIoJCNCrcl8QXbyZW6WeSOt-OJkUmQIoVyNgQWUvjMHuj8 ---
[2019-05-28 09:44:51][DEBUG] : --- PLAY REQUESTED ---
[2019-05-28 09:44:51][ERROR] : Erreur exécution de la commande [Salon][test][Play] : Player command failed: No active device found
[2019-05-28 09:44:54][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:54][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:55][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:44:57][DEBUG] : ### EXECUTE play / {"utid":"1559029477023"} ###
[2019-05-28 09:44:57][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:44:57][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:44:57][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:44:57][DEBUG] : --- ACCESS TOKEN BQB-5tMNGcqUZZymhsQGevxosH48ezedUAs2k1cmeSfPZB0aMubBnwNEiHWOpXtVyytBvI6triZ3IkunzWhFnnxh2dPN0cPu-nHOBk6HMv4yqULQG_w3wFAkKU6KCcS63MLhhMqUATn50T5zpWAAmh4dDCAUpd5woyLS3ZC-e7U ---
[2019-05-28 09:44:57][DEBUG] : --- PLAY REQUESTED ---
[2019-05-28 09:44:57][DEBUG] : ### FORMAT VALUE play / null / false / "" ###
[2019-05-28 09:44:57][DEBUG] : ### GET VALUE play / null ###
[2019-05-28 09:45:00][DEBUG] : ### EXECUTE pause / {"utid":"1559029477023"} ###
[2019-05-28 09:45:00][DEBUG] : --- CLIENT ID 5dd90c4576ec4c91a2d1a81780eb96fb ---
[2019-05-28 09:45:00][DEBUG] : --- CLIENT SECRET 486529b5410c423184ecaab343b019e8 ---
[2019-05-28 09:45:00][DEBUG] : --- REFRESH TOKEN AQBzusWX5Tu3c_kW4fhHjfb4tfoWlNm4QdBagYE-FqACY6v9NGQH7D4kGETPVbzeIa4eM4qzqfujJBPr0c9zjgC-IEL9cb4oVL0JVuDGGV6OtK6QzE9c4OLUKSWp3f2nbw_5Tw ---
[2019-05-28 09:45:00][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:00][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:00][DEBUG] : --- ACCESS TOKEN BQCRqV9NMLS-Ao-lo6SWxmWyBJrxO_nIX-xkp2gsl7ZMJDbG9otv0JzJqxsMema1Gq0197jyilJYDyUt59FNQuQjlTreI708kS6deerhmuc8POBO2Lg7tGDxUdmaDvuDCui6apMcJ3CVN0CWeDMv41sD2hcT4DTNEO0bbtssW-g ---
[2019-05-28 09:45:00][DEBUG] : --- PAUSE REQUESTED ---
[2019-05-28 09:45:00][DEBUG] : ### FORMAT VALUE pause / null / false / "" ###
[2019-05-28 09:45:00][DEBUG] : ### GET VALUE pause / null ###
[2019-05-28 09:45:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:01][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:05][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:05][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:06][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:11][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:15][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:15][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:17][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:20][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:20][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:26][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:26][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:28][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:32][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:32][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:34][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:38][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:38][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:40][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:44][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:44][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:46][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:50][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:50][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:52][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:56][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:56][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:45:58][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:02][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:02][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:04][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:08][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:08][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:10][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:14][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:14][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:16][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:20][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:20][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:22][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:25][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:25][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON INFO ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON PID = 2 ---
[2019-05-28 09:46:27][DEBUG] : --- DAEMON PID = 2 ---
J'ai pas l'impression que le code arrive jusqu'à la ligne que j'ai rajoutée dans le code.. :-)

Merci d'avance !
Quelques infos:

1) Pour que le console.log soit pris en compte, il faut relancer le daemon.

2) Tu peux essayer de piloter spotify à partir de l'appli mobile pour vérifier que ça marche ou faire des traces.

Attention, si il n'y a pas de device actif, les commandes play/pause/next/pevious/volumeset n'ont auun effet et génère une erreur dans les logs :-)

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 28 mai 2019, 22:30

lunarok a écrit :
28 mai 2019, 09:23
Bonjour,

@sbr il faudrait que tu modifies les couleurs de tes plugins (spotify et l'autre)
la couleur des plugins est spécifique à un dev, on a chacun la notre et là tu utilises la mienne, ca prête à confusion

Merci

oups, dsl, je ne savait pas qu'il y avait des couleurs atitrées :-) Je trouvais cette couleur sympa, comment est-ce que je peux connaitre une couleur non utilisée ? :-)

lulu740
Actif
Messages : 562
Inscription : 03 oct. 2014, 07:38

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par lulu740 » 30 mai 2019, 06:48

Bonjour,
j'ai encore une fois essayé mais rien à faire, ci-dessous ce que je mets :

https://XXXXX.dns4.jeedom.com/index.php ... &p=spotify

le log ....
Pièces jointes
Capture d’écran.png
Capture d’écran.png (50.95 Kio) Consulté 18238 fois
spotify_daemon.TXT
(621 octets) Téléchargé 24 fois

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 30 mai 2019, 22:57

lulu740 a écrit :
30 mai 2019, 06:48
Bonjour,
j'ai encore une fois essayé mais rien à faire, ci-dessous ce que je mets :

https://XXXXX.dns4.jeedom.com/index.php ... &p=spotify

le log ....
Le plugin utilise l'url que tu as configuré en external dans la configuration jeedom => est-ce bien configuré ?

Sinon, peux-tu activer les logs en mode debug, arrêter le plugin et le redémarrer ?

il faudrait voir ce qui suit la trace "--- DAEMON START ---" dans le fichier de log, notamment "--- NET = xxxx ---" et "--- URL = xxxx ---".

lulu740
Actif
Messages : 562
Inscription : 03 oct. 2014, 07:38

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par lulu740 » 31 mai 2019, 09:21

Bonjour "SBR", merci de l'aide,
l'adresse URL que j'ai donné est fonctionnelle puisque c'est celle ci que j utilise pour acceder à mon Jeedom,
pour le log le NET et URL ne change pas malgré mes manips, ci joint la copie ecran....
j'ai fait egalement une redirection au niveau du compte developer chez spotify mais rien ne change.....
Pièces jointes
Copie ecran.png
Copie ecran.png (60.68 Kio) Consulté 18237 fois

Networks514
Actif
Messages : 578
Inscription : 02 sept. 2016, 22:22

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par Networks514 » 31 mai 2019, 10:30

lulu740 a écrit :
31 mai 2019, 09:21
Bonjour "SBR", merci de l'aide,
l'adresse URL que j'ai donné est fonctionnelle puisque c'est celle ci que j utilise pour acceder à mon Jeedom,
pour le log le NET et URL ne change pas malgré mes manips, ci joint la copie ecran....
j'ai fait egalement une redirection au niveau du compte developer chez spotify mais rien ne change.....
Mmm je pense que tu as supprimé ton adresse dans les logs, mais https sur le port 80 !! :(
c’est http:// sans :80 si c’est ton port par défaut, ou https:// sans :443 si c’est ton port par défaut, mais là c’est bizarre ...
Networks514
Jeedom / Synology DS411j / Synology DS916+8G / Rpi3 / Zibase
Zwave / Enocean / Rflink / Xiaomi / Bluetooth

unskil
Timide
Messages : 19
Inscription : 19 avr. 2017, 21:17

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par unskil » 31 mai 2019, 10:42

sbr a écrit :
28 mai 2019, 01:05
unskil a écrit :
27 mai 2019, 13:26
mithandir a écrit :
27 mai 2019, 10:53


Exactement le même problème. Pour le callback url, j'ai mis mon adresse externe, c'est ce qui me paraissait le plus cohérent..
Peut-être le dev @sbr a t'il une idée sur comment creuser notre problème?
J'ai essayé les 2. Adresse DNS et ip locale. j'ai toujours le même problème. Si je peux aider avec des logs, dites moi ce qu'il vous faut.
Merci
Le DNS ne devrait rien à voir avec le pb que vous rencontrez, car il est utilisé que pour l'authentification.

Pouvez-vous partager le contenu du fichier de log du daemon, généré en ajoutant la trace comme je l'ai mentionée, un peu plus haut dans les messages, afin que je puisse analyser ?

Merci

sbr
Bonjour,

j'ai ajouter les infos au fichier spotify.js
Dans les log j'ai ceci

--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---
Error: connect ETIMEDOUT mon ip internet ==> peut-être quand j'ai redémaré le deamon ???
--- WAITING ---
--- WAITING ---
--- WAITING ---
--- WAITING ---

Quand j'utilise une commande:
[2019-05-31 10:35:56][DEBUG] : ### EXECUTE device_volume_set / {"slider":"14","utid":"1559291486479"} ###
[2019-05-31 10:35:56][DEBUG] : --- CLIENT ID xxxxxxxxxxxxxxxxxxxxxxxxxx ---
[2019-05-31 10:35:56][DEBUG] : --- CLIENT SECRET xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf ---
[2019-05-31 10:35:56][DEBUG] : --- REFRESH TOKEN xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ---
[2019-05-31 10:35:57][DEBUG] : --- ACCESS TOKEN xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-txxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ---
[2019-05-31 10:35:57][DEBUG] : --- VOLUME REQUESTED ---
[2019-05-31 10:35:57][ERROR] : Erreur exécution de la commande [Maison][Jeedom_spotify][Device Volume Set] : Restricted device

Avatar de l’utilisateur
sbr
Timide
Messages : 70
Inscription : 28 janv. 2018, 02:16

Re: [Plugin Tiers][Sujet Principal] Spotify

Message par sbr » 31 mai 2019, 23:05

lulu740 a écrit :
31 mai 2019, 09:21
Bonjour "SBR", merci de l'aide,
l'adresse URL que j'ai donné est fonctionnelle puisque c'est celle ci que j utilise pour acceder à mon Jeedom,
pour le log le NET et URL ne change pas malgré mes manips, ci joint la copie ecran....
j'ai fait egalement une redirection au niveau du compte developer chez spotify mais rien ne change.....
Tu as quoi dans la config jeedom, au niveau de l'onglet réseau et dans les paramètres accès externe, car la fonction getNetworkAccess devrait retourner ton dns sur le port 443 du https ?

Code : Tout sélectionner

$net = network::getNetworkAccess('external', 'proto:127.0.0.1:port:comp');
log::add('spotify', 'info', '--- NET = '.$net.' ---');
      
$url = $net . '/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=' . $key;
log::add('spotify', 'info', '--- URL = '.$url.' ---');
Peux-tu vérifier ?

Répondre

Revenir vers « [Catégorie] Multimédia »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 12 invités