Aymkdn / assistant-plugins

Des plugins pour les Assistant (comme Google Home, Cortana, Alexa)
https://aymkdn.github.io/assistant-plugins/
MIT License
92 stars 21 forks source link

code telecommande eronné #34

Closed frhx closed 6 years ago

frhx commented 6 years ago

<bonjour j,ai tout installé correctement mais la console me dit que mon code telecommande est erronné alors que j'ai verifié cent fois et c'est le bon [assistant-freebox] Commande « off » exécutée [assistant] Commande reçue: [ 'freebox_off' ] [assistant] Appelle du plugin 'freebox' [assistant-freebox] Url => http://hd1.freebox.fr/pub/remote_control?code=6255637&key=power [assistant-freebox] Erreur : le code télécommande fourni (6255637) est incorrect !

Aymkdn commented 6 years ago

Quand tu essaies d'ouvrir le lien http://hd1.freebox.fr/pub/remote_control?code=6255637&key=power dans ton navigateur, qu'as-tu comme message ?

Et est-ce que la Freebox s'allume / éteint ?

frhx commented 6 years ago

non elle s'eteint pas et j'ai ce message quand je colle l'url dans le navigateur You don't have permission to access this file on this server. Cheyenne/2.2.8 Server at localhost Port 80

Aymkdn commented 6 years ago

Ce message apparait lorsque le code télécommande est incorrect.... Tu n'as qu'un Freebox Player chez toi ?

frhx commented 6 years ago

non j'en ai deux

frhx commented 6 years ago

mais j'ai bien attribué le nom du bon boitier

Aymkdn commented 6 years ago

Ah ! Donc tu essaies sûrement le code télécommande la mauvaise box. Essaie de remplacer hd1 par hd2 dans la configuration et de garder le même code télécommande

frhx commented 6 years ago

j'ai essayé... ça ne fonctionne pas :-(

Aymkdn commented 6 years ago

hd1 représente une box. hd2 représente l'autre box. Ensuite à toi de tester dans ton navigateur avec les différents codes télécommandes et avec hd1 ou hd2. Et de trouver la bonne combinaison.

frhx commented 6 years ago

ok je vais essayer mais je n'arrive plus a relancer l'install via node index.js

frhx commented 6 years ago

ntaxError: /Users/francoiscounil/Downloads/assistant-plugins/configuration.json: Unexpected token   in JSON at position 154 at JSON.parse () at Object.Module._extensions..json (module.js:654:27) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.exports.start (/Users/francoiscounil/Downloads/assistant-plugins/node_modules/assistant-plugins/index.js:4:23) at Object. (/Users/francoiscounil/Downloads/assistant-plugins/index.js:1:92)

frhx commented 6 years ago

"main": { "pushbullet_token": "o.BRzzdEnx8Tt7aq8rALIzhxv1nJCxTEed" }, "plugins": { "freebox": { "code_telecommande": "6255637" , "search_path": "/Disque dur/Vidéos/", "use_Mon_Bouquet": false, "box_to_control": "hd2", "app_token": "DDxVAti2iVnAezvn4KPc1WKgn9+lnQTbRl8wQGGpfRZgAiBO3RLADDERL4yNsd6q" }, "ifttt": { "key": "xxx" }, "notifier": { "host": "192.168.0.11" } $

Aymkdn commented 6 years ago

Pour le moment, teste dans ton navigateur les différentes URL pour trouver la bonne combinaison.

frhx commented 6 years ago

tu avais raison c'est la hd2

frhx commented 6 years ago

maintenant je vois pas ou est mon erreur de syntaxe

Aymkdn commented 6 years ago

Il manque un } à la fin du fichier

frhx commented 6 years ago

ou ça

Aymkdn commented 6 years ago

Fichier configuration.json

frhx commented 6 years ago

{ "main": { "pushbullet_token": "o.BRzzdEnx8Tt7aq8rALIzhxv1nJCxTEed" }, "plugins": { "freebox": { "code_telecommande": "6255637" , "search_path": "/Disque dur/Vidéos/", "use_Mon_Bouquet": false, "box_to_control": "hd2", "app_token": "DDxVAti2iVnAezvn4KPc1WKgn9+lnQTbRl8wQGGpfRZgAiBO3RLADDERL4yNsd6q" }, "ifttt": { "key": "xxx" }, "notifier": { "host": "192.168.0.11" } } }

frhx commented 6 years ago

la c'est OK ?

frhx commented 6 years ago

toujours la meme erreur..

Aymkdn commented 6 years ago

Une de trop cette fois... Ça doit être :

{
  "main": {
   "pushbullet_token": "o.BRzzdEnx8Tt7aq8rALIzhxv1nJCxTEed"
  },
  "plugins": {
    "freebox": {
    "code_telecommande": "6255637" ,
    "search_path": "/Disque dur/Vidéos/",
    "use_Mon_Bouquet": false,
    "box_to_control": "hd2",
    "app_token": "DDxVAti2iVnAezvn4KPc1WKgn9+lnQTbRl8wQGGpfRZgAiBO3RLADDERL4yNsd6q"
  },
  "ifttt": {
    "key": "xxx"
  },
  "notifier": {
    "host": "192.168.0.11"
  }
}
frhx commented 6 years ago

je comprends pas

frhx commented 6 years ago

desolé d'etre lourd vca ne fonctionne toujours pas

frhx commented 6 years ago

SyntaxError: /Users/francoiscounil/Downloads/assistant-plugins/configuration.json: Unexpected end of JSON input at JSON.parse () at Object.Module._extensions..json (module.js:654:27) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.exports.start (/Users/francoiscounil/Downloads/assistant-plugins/node_modules/assistant-plugins/index.js:4:23) at Object. (/Users/francoiscounil/Downloads/assistant-plugins/index.js:1:92) at Module._compile (module.js:635:30) iMac-de-francois-8:assistant-plugins francoiscounil$

Aymkdn commented 6 years ago

Efface tout et recommence, ça sera plus simple :-)

frhx commented 6 years ago

je pense oui je rprends tout à zero

frhx commented 6 years ago

merci de ton aide

frhx commented 6 years ago

bon ça marche le probleme maintenant quand je lui dit zappe sur une chaine il eteint la freebox

Aymkdn commented 6 years ago

As-tu activé le Air Media sur la box que tu souhaites piloter ? (https://aymkdn.github.io/assistant-plugins/?plugin=freebox)

Aymkdn commented 6 years ago

Voir https://github.com/Aymkdn/assistant-plugins/issues/35