Found my notes 
intall onkyo coomands in Ubuntu
sudo -i
apt install python3-pip
pip3 --version
apt-get install python-setuptools
pip3 install onkyo-eiscp
---------------------------------examples to put tun in radio-
sets the Onkyo to NET
onkyo SLI2B
#sets the onkyo to tunin radio
onkyo NSV0E0
$ Selects the first entry (my prestes)
Onkyo NLSI00001
#Selects the third entre(my rock station)
onkyo NLSI00003
------------------------------------------------------------Spotifyâ
sets the Onkyo to NET
onkyo SLI2B
#Sets it to Spotify
onkyo NSV0A0
Python module
In a simple case, this might look like this:
import eiscp
Create a receiver object, connecting to the host
receiver = eiscp.eISCP(â192.168.1.125â)
Turn the receiver on, select PC input
receiver.command(âpower onâ)
receiver.command(âsource pcâ)
receiver.disconnect()
Donât forget to call disconnect() to close the socket. You can also use a with statement:
with eiscp.eISCP(â192.168.1.125â) as receiver:
receiver.command(âsource all-ch-stereoâ)
The command language is explained above. You can also be more explict with the structure:
receiver.command(âpowerâ, âonâ, zone=âmainâ)
If you prefer to send low-level ISCP commands directly, you can use the raw method:
receiver.raw(âMVLUPâ)
-------------if you have problems installingâ
pip3 install --upgrade https://github.com/danieljkemp/onkyo-eiscp/archive/v0.9.2.zip