-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic rediscover after power restore #37
Comments
Hmm.. in fact it should be no problem for the node-raumsever to automatically find the host again if it comes online. I will check this |
Okay. Anyways is there already implemented a function in raumserver that could be called to trigger a rediscover? |
Maybee you may look into the log file and tell me if there is an error like that?
Thanks! |
And please may you provide the log here? |
For a workaround you may add a fixed IP in the settings for the host! |
@gahujipo Can you update the node.raumserver to the newest version and check if the problem is gone! |
after restoring power the following log entries appear.
Of course the connection is refused because after reboot the speaker uses different ports. The fixed IP was already set to the config. I do not use autodiscover. After updating node-raumserver to 0.10.0 by issuing npm update the problem still exists and the following logs appear regularly
|
An addition to my previous comment: the entries come up every time a call to raumserver gets done. They come up regularly only because I have a system running that queries some information regularly. |
I'm writing the following paragraph in german to be as clear as possible. Seit dem letzten Update von node-raumkernel/node-raumserver (ich bilde mir ein, das seitdem zu beobachten) habe ich folgendes Problem:
Ich habe den Raumserver seit 2 Tagen mal deaktiviert und kann das Problem nun nicht mehr feststellen. Dazu zu sagen ist, dass ich, wenn er aktiviert ist alle 10 Sekunden /raumserver/controller/getRendererState?id=Raum aufrufe um verschiedene Parameter weiterzuverarbeiten. Nutzt du Spotify? Ist dir ein solches Verhalten auch aufgefallen? Gibt es einen Teil im Code, der hier u.U. zu einer höheren Auslastung (von bspw. Speicher oder Prozessor) auf dem Speaker führt? Das Phänomen stelle ich auf meinen Stereo L fest. Danke schon mal im Voraus. |
I have similar problems as gahujipo writes since the last update of node-raumserver. I did not do researh yet but the symptoms are also in my Raumfeld at home. Seit dem letzten Update von node-raumkernel/node-raumserver (ich bilde mir ein, das seitdem zu beobachten) habe ich folgendes Problem: |
To give you more useful information than just writing what does not work I'd like to send you the relevant part of the log. How can I let raumserver log to a file? My raumserver runs in the background so that I usually don't have access to the stdout. |
it should write a log file anyway in the "logs" folder |
This happens when I standby the speaker with EnterManaualStandby. When I do EnterAutomaticStandby, the speaker stays visible. So for me this is not an issue anymore, but I think this behaviour should be documented somewhere. I will add that note in my wiki proposal (#38)
I tested this a few weeks now, but with the v0.0.9 and I can see only a delay for one second or so. So I think this issue was introduced with v0.0.10.
I added an additional speaker (One S) which shows the same behaviour with v0.0.10. So this issue is neither limited to a single speaker installation nor to the hardware (of Speaker L). The logs that appear after power has beeen restored, for the connections that fail I already posted above. |
added that: gahujipo/node-raumserver-wiki@47998b8 I retested the behaviour after power restore. Unfortunately it still does not recognise the device anymore without a restart of node-raumserver. Could you maybe fix that too? |
@gahujipo Das Problem mit den Reconnect kann ich jetzt aber nachvollziehen wenn das System über den Bonjour den host sucht anstatt mit SSDP. Ich sehe mir das an |
Okay, worauf beziehst du dich diesbezüglich? Hatte den alten Raumserver nie auf einem RF-Device installiert. Alle meine Issues habe ich von einer Installation auf einem Debian. Die Raumfelds sind bei mir komplett untouched, weil ich mögliche dadurch entstehende delays bei der Annahme von Befehlen (next, prev, pause, play) partout nicht leiden kann :)
Sehr, sehr gerne! Das würde mir bei meinem Wecker sehr helfen. Im Moment helfe ich mir mit einem getriggerten Neustart der Maschine auf dem der raumserver läuft und nachfolgende um einige Minuten verzögerte Befehle für die richtige Lautstärke der Speaker. Das läuft mittelmäßig gut, weil die Neustarts nicht immer gleich lange dauern und oftmals Befehle verloren gehen. :-( |
Durch die paar Zeilen habe ich gedacht du hast den node-raumserver auf einem device installiert. BTW: getRendereState beherrscht auch longPolling. Du musst nicht alle 10 Sekunden pollen. |
Diese 3 Punkte wurden mit #42 bereits gelöst und sind somit nicht mehr aktuell. v0.0.10 mit der neuen raumkernel version ist davon nicht mehr betroffen.
Dies ist wohl nicht auf ein Problem vom raumserver zurückzuführen, sondern ist wohl eine Eigenheit vom Raumfeld-System selbst. Siehe auch hier in meinem Vorschlag für die Wiki: https://github.com/gahujipo/node-raumserver-wiki/blob/master/Use/Standby.md#enter-standby
Leider verwende ich als "client" für den Raumserver ein System bei dem ich ohne zusätzlichen "Proxy" keine Möglichkeit sehe ein long polling zu implementieren. Nochmal zum rediscover:Eventuell wäre als kurzfristigen Workaround auch schon geholfen, wenn man einen Befehl an den Raumserver schicken könnte, welchen ihn neu startet. |
Ich muss hier etwas aufpassen. Nicht das hier wieder einen Bug mit den offenen Ports generiere! |
Das mit den offenen Ports durch die externen Libraries leuchtet mir ein. |
problem should be solbed with 0.1.1 and newest kernel |
I tested this now for a while. It seems to me, that it isn't fully solved yet. I read that you are busy at the moment. Could you explain the following parameters in the default.json-config-file in the meantime? "alivePingerIntervall" : 2500,
"ssdpDiscovertimeout" : 5000,
"bonjourDiscoverTimeout" : 3000,
"rendererStateTriggerConfirmationTimout": 3500,
"zoneTriggerConfirmationTimout": 6000 Maybe I can find out something on my own in the meantime. Are those values always ms? |
All values are in [ms] alivePingerIntervall bonjourDiscoverTimeout ssdpDiscoverTimeout rendererStateTriggerConfirmationTimout and zoneTriggerConfirmationTimout are internal values which do not have any relation to finding/rediscovering the host |
Hi, Thank you very much |
I use only one speaker (1 zone) which I control via node-raumserver. Overnight I disconnect the power so the speaker isn’t available during that period. I realized that without a restart of the server, node-raumserver isn’t able to send it’s commands to the speaker once the power gets restored the morning after. I think that node-raumserver has to do a rediscover to get all new used ports and description XMLs.
The text was updated successfully, but these errors were encountered: