Page 1 sur 2

Controler un ampli Onkyo

Publié : 15 févr. 2015, 08:54
par ziaziung
Bonjour à toutes et tous.
Je cherche à piloter mon pole multimedia via domoticz.
J'ai des pistes pour mon demo VU plus.
Par contre pour l'ampli Onkyo c'est plus compliqué.
J'ai néanmoins trouvé cela :
https://github.com/miracle2k/onkyo-eiscp

J'ai l'impression que cela pourrait résoudre mon problème mais j'ai difficultés pour comprendre ce qu'il faut réellement faire.
J'ai cru comprendre qu'une fois installer je pourrai lancer des scripts python qui ferrons faire des actions à mon ampli.


Pouvez vous m'aider? Merci d'avance.

Re: Controler un ampli Onkyo

Publié : 15 févr. 2015, 20:14
par Jose
Bonsoir,

J'ai compris exactement comme toi :) J'ai un TX-NR515 et j'ai fait un test sur mon raspi de test.

Tu installes le bouzin en faisant un sudo asy_install onkyo-eiscp

Pour trouver l'adresse de ton ampli : onkyo --discover => chez moi la réponse est TX-NR515 192.168.10.54:60128
La commande onkyo --host 192.168.10.54 --port 60128 volume=60 fonctionne parfaitement par contre la commande power=off un peu moins. Mais je ne me suis pas penché sur les options de l'ampli permettant sa gestion externe.

Je vais regarder la partie python cette semaine.

@ +

Re: Controler un ampli Onkyo

Publié : 16 févr. 2015, 11:28
par ziaziung
Merci José.

Par contre je suppose qu'il faut telecharger des fichiers depuis le site
https://github.com/miracle2k/onkyo-eiscp

sur le raspi, pour pouvoir lancer la commande dont tu parles. Mais là ...... je ne sais pas faire. J'ai bien essayé un wget, mais je n'ai eu qu'un fichier xml.

Peux tu, stp, m'expliquer comment faire?

Merci par avance.

Re: Controler un ampli Onkyo

Publié : 16 févr. 2015, 13:21
par Jose
Salut,

C'est plus simple que ça. Tu ouvres une console sur ton rasp et tu tapes directement.

Code : Tout sélectionner

sudo easy_install onkyo-eiscp
Tout s'installe et tu ne devrais pas avoir d'erreur. Ensuite, tu devrais découvrir ton ampli avec cette commande

Code : Tout sélectionner

onkyo --discover
On en reparle ce soir en cas de problème. Je file les vacances sont finies :cry:

Re: Controler un ampli Onkyo

Publié : 16 févr. 2015, 20:59
par ziaziung
Merci pour ton aide mais

sudo asy_install onkyo-eiscp

ou

sudo easy_install onkyo-eiscp

donnent

command not found

Re: Controler un ampli Onkyo

Publié : 16 févr. 2015, 22:16
par patrice
Bonjour
La commande est easy_install et non pas asy_install

Pour installer easy_install il faut faire une

sudo apt-get install python-setuptools
Voila

Re: Controler un ampli Onkyo

Publié : 16 févr. 2015, 22:20
par Jose
Ah oups copier coller trop rapide, dsl :oops:
C'est corrigé

Re: Controler un ampli Onkyo

Publié : 29 août 2015, 15:58
par glybra
Bonjour,
avez vous reussi a piloter votre ampli onkyo? si oui, j aurais aimé savoir comment?
Merci

Re: Controler un ampli Onkyo

Publié : 16 mai 2018, 08:59
par ziaziung
Bonjour,
j'ai suivi le guide (
sudo apt-get install python-setuptools
puis
sudo easy_install onkyo-eiscp
voici ce que j'obtiens :

raspberrypi:~/domoticz/scripts/python $ sudo easy_install onkyo-eiscp
Searching for onkyo-eiscp
Best match: onkyo-eiscp 1.2.5
Processing onkyo_eiscp-1.2.5-py2.7.egg
onkyo-eiscp 1.2.5 is already the active version in easy-install.pth
Installing onkyo script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/onkyo_eiscp-1.2.5-py2.7.egg
Processing dependencies for onkyo-eiscp
Searching for netifaces
Reading https://pypi.python.org/simple/netifaces/
Best match: netifaces 0.10.7
Downloading https://files.pythonhosted.org/packages ... cb329d8cbd
Processing netifaces-0.10.7.tar.gz
Writing /tmp/easy_install-r7BYJ9/netifaces-0.10.7/setup.cfg
Running netifaces-0.10.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-r7BYJ9/netifaces-0.10.7/egg-dist-tmp-tV8Ndx
checking for getifaddrs...found.
checking for getnameinfo...found.
checking for IPv6 socket IOCTLs...not found.
checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un ash ec ll atmpvc atmsvc dn irda llc.
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...yes.
will use netlink to read routing table
netifaces.c:1:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
#include <Python.h>
^
compilation terminated.
error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

Commnet faire?

Re: Controler un ampli Onkyo

Publié : 30 nov. 2018, 09:14
par nissart
Bonjour,

je ne sais pas si ton sujet est toujours d'actualité.
J'ai eu le même soucis et j'ai creusé un peu.

Lance ces commandes

sudo apt-get install python-dev
sudo apt-get install python3-dev

puis a nouveau

sudo easy_install onkyo-eiscp

enfin

onkyo --discover

tu devrais voir apparaitre ton ampli :mrgreen: