imgrant / roon-extension-radio-presets-api

A Roon extension to play radio presets via an API trigger
Other
0 stars 1 forks source link

Can't install via Extension Manager v1.0 #1

Open nidr opened 2 years ago

nidr commented 2 years ago

Dear all,

thank you for this great extension, i really like it.

Unfortunatly I could not find a propper or working way to install it: I'm running the theappgineer/roon-extension-manager:latest docker image on rpi and extensionmanager does show up in roon. However the extension radio-preset-api is not avialable. I tried to put to the repo file of this extension in several folders in the docker, but it did get availabe for install in roon.

To work around this I tried to append the content of the above mentioned repo file to the file /root/.RoonExtensions/lib/node_modules/roon-extension-repository/repository.json and i was able to install and run the roon-extension-radio-presets-api from roon and it worked very fine !

However, after a couple of hours the extension stopped an disappered from the extension manager menu within roon. I don't know why and how to fix this.

What is the right way to add roon-extension-radio-presets-api to the roon extension manager? Could you please help a bit further?

Thanks!

imgrant commented 2 years ago

Hello, thanks for your issue. I think this is due to changes in the way Roon Extension Manager works — version 1.0 mandates that all extensions are distributed as Docker containers/images, which this extension is not (it's in the legacy Node/NPM format).

I suspect the behaviour where you see it stop working is due to the Extension Manager updating its repo file(s), and/or re-provisioning the container.

I would need to update the extension to the new format for it to work via the Extension Manager. I'll leave this issue open as a task for that (I need to do it for my own installation too, which is currently still running the legacy 0.x version of the Extension Manager). In the meantime, you could use the manual installation method to run the extension without involving the Extension Manager.

nidr commented 2 years ago

Hello, thanks for quick response! I really can imagine that the repo update will kick out the radio-presets-api. I'm a bit sorry to tell that i'm running Extensionmanager still on @Docker 0.11.9 should this extension show up on this version of Extensionmanager? 2021-11-09 00_53_11-Roon 2021-11-09 00_53_52-Roon

Thanks!

imgrant commented 2 years ago

Oh, that is the same as mine. In my Extension Manager container, I just put the radio-presets-api.json file in /root/.RoonExtensions/lib/repos/ (also in the lib dir are backup, log, node_modules directories).

nidr commented 2 years ago

Well the repos directory did not exist at all, so I created one, downloaded radio-presets-api.json 2021-11-10 23_12_13-Docker rebooted extension manager and extension was offered to be startet in roon: 2021-11-10 23_15_51-Roon if I then run the update repo command in roon it still disappears: 2021-11-10 23_18_13-Roon 2021-11-10 23_18_59-Roon (downloaded file is still in directory) -> reboot extension manager Extension is avialable to be startet again: 2021-11-10 23_20_36-Roon Any idea?

imgrant commented 2 years ago

Sorry, I'm unable to replicate what you describe — when I run the update extension respiratory action, the extension is still listed. You could try restarting the extension manager with logging enabled and look at the logs.