I just installed RoonCommandLine on macOS and I have have two questions about it:
Port number: For the config I need my Roon Core’s IP and port number. The Core is on a Synology (default install from roononas.org) and Roon’s About screen gives me the local IP - but not the port of the Core. What is the default port the Core listens on?
Token file: Also, in tge config I noice a field for the token file. What is the file roontoken.txt for and how can I obtain a copy of it (to put it in /usr/local/Roon/etc)?
I don’t think the RoonCommandLine tool is getting to my core yet. When i type
$ roon -i
I get
Traceback (most recent call last):
File "list_zones.py", line 46, in <module>
roonapi = RoonApi(appinfo, token, server, port)
File "/Library/Python/3.8/site-packages/roonapi/roonapi.py", line 692, in __init__
raise "host and port of the roon core must be specified!"
TypeError: exceptions must derive from BaseException
Hi @hallo_leo , as @GregD points out, the RoonCommandLine installation should auto-discover your Roon Core and set the IP and Port appropriately. If this is not happening then provide details and I will try to assist (I’m unavailable this weekend but will be online Monday).
The roontoken.txt is just a way to store an authentication token for subsequent API requests. It can safely be ignored. There should be no need to copy it to another system. It gets initialized during post-install when you authorize the extension.
It may be confusing at first, getting setup. Do not hesitate to ask for help. Also, I have mostly been using Linux lately so I would appreciate any feedback you may have on the Mac install/config/anything.
@hallo_leo let’s dig into this. sorry for the delay, it was my birthday and i’m still recuperating from the party
The Roon Core IP and Port should get auto-discovered and set during installation. On a Mac, when you run the ./Install script it executes ./macInstall and that runs /usr/local/Roon/bin/get_core_ip. This is where the Roon Core should get discovered and you would be prompted to authorize the extension in Roon settings. Did that happen during your install process and did you authorize the extension in Roon settings?
Once authorized the installation writes the discovered IP and Port to the configuration file /usr/local/Roon/etc/roon_api.ini. Check this file and verify that the RoonCoreIP and RoonCorePort settings are correct. I suspect they are not but let’s verify.
You can run /usr/local/Roon/bin/get_core_ip manually as your Roon user and see what that does. It should say something like “Waiting for authorization …”. At that point go to the Roon application and navigate to Settings -> Extensions where you should be able to authorize the RoonCommandLine extension. This manual run is just a test, it will not modify roon_api.ini - it’s just to verify that part of the process is working.
Let me know what roon_api.ini looks like and what the results of manually running get_core_ip produces.