When I use get_core_ip, I have to allow execution in Roon. This makes it impossible to use this function in a script. Is there a way to get around this?
Thanks for the quick reply! That definitely works. The problem, however, is that I have two (soon probably three) locations where a Roon server is running. And I don’t want to write a separate script for each location, nor do I want to set the same IP address for the server in all locations. Therefore, the best and most general solution would be for the script to determine the address so that I know which one to use for the SSH connection.
I hope I have expressed myself clearly enough…
Is it possible to do this somehow?
I must admit that I don’t like this at all. Why should I travel via Rome if I want to go from Berlin to Potsdam? In other words: Why is this function implemented in such a way that it cannot be used in a script?
If you are reffering to the usage of this tool - Contents | RoonCommand, Unfortunately we might not advise much on it because Roon is not a developer of this tool. It is better to contact a developer of it.
For our part, we tried to offer you the best option that would meet your needs and that we could come up with.
I want to use the same script on different servers. And I don’t want to assign the same IP address to each one. My question is rather: if there is a function for the command line that allows you to query the IP address of the server, why is it implemented in such a way that you cannot use it in a script? This seems illogical to me. At the very least, I would expect there to be a way to bypass activation via the Roon interface.
I have the server on macOS and Ubuntu. I don’t yet know which system I will choose for the third (if that becomes necessary).
However, the tool you are questioning is not developer by Roon and we do not maintain it.
If you want to retrieve the ip address of Roon Server in local network you can also try to analyze multicast traffic via WireShark or similar tool, see what Roon Remote app sends to broadcast to find server and connect , and with this data ask chatGPT to help you to build your own script. I saw some enthusiasts successfully implement this, however since this is unofficial solution I may not advise on how to deal with it or recommend to use it.
Unfortunately, Roon does not officially provide CLI for this purpose.
If you have any other questions please contact the developer of the tool you are trying to use.