-
Notifications
You must be signed in to change notification settings - Fork 1
Unable to launch module configuration #4
Comments
I have some timeout also with my onkyo avr. I need to completly shutdown and power on. (remove plug) |
I tried that but got no luck 😕 |
No it's OK your model is compatible. Can you test the python version? |
The python version works, I tried the following commands:
That being said, it takes arount 5s to execute which seems to be quite long no? |
@Molkobain good catch , 5s is to mutch. I have no idea on how to solve this... |
Can you test on other Platform ( not rpi ) ? |
Do you mean your module through another Gladys device or the python lib? I'm gonna set up an Ubuntu VM :) |
No just the python lib is ok |
Tested on 2 Ubuntu VMs (17.04 & 18.04), the python lib takes less than 1 second when a give both the --host and --port parameters. Around 3-4 seconds when I just give --id parameter. On the RPi with --host and --port it takes around 3-4s. Yesterday I was giving only the --id parameter when I measured 5s. |
What command do you send to the receiver? I saw in the package.json that there is a dependancy to the onkyo.js package, but I didn't found it in npm. |
Weird because it is available Sources are here https://github.com/jupe/onkyo.js I use a discover function |
From what I see in the lib, using the discover function takes some time as it broadcasts to the whole network and waits for answers. I tried to modify your lib/onkyo.setup.js to make it use the Onkyo object instead of the OnkyoDiscover with the following code:
And I got results!
So the lib is working with this receiver, just a timeout issue maybe. I'll check into onkyo.js to see if the timeout comes from it or my nodejs server. Note: As you can see, the onkyo.device.info is undefined so I to manually populate it in order for your setup script to complete. |
If you create device and devicetype manually in Gladys the setup is useless. The timeout come from bluebird promise. And thank you for feedback 😊 |
Maybe this is a lead. Do you where dependancies are stored? I could try to hack the timeout part to see if it solves the problem. |
Yeah obviously, I wanted to run it like this to be sure what the issue was (and create the deviceTypes in the process) |
It's stored in node_module folder |
Describe the bug
Exception thrown when launching module configuration from Gladys backend.
To Reproduce
Steps to reproduce the behavior:
Informations:
The text was updated successfully, but these errors were encountered: