Roon Extension: Alarm Clock v0.9.1 (current)

I invisioned this being asked sooner than later and here we are :slight_smile: you might be SOL till the extension is certified by roon for inclusion, but thatā€™s only a guess.

I think there is currently no way to run it directly on ROCK. But you can run it on any other device in your network, that has nodejs (installed as written in the Roon API readme on GitHub). It is not required for extensions to be executed on the Core.

Ah thatā€™s interesting

As ROCK doesnā€™t support installation of 3th party software, it is at this moment not possible to run the Alarm Clock extension on it. Even if there was a way to ā€˜hack it inā€™ it still would be gone at the next ROCK update. So the final solution should be that it is an integral part of ROCK, but no clue if and when this will happen.

But as @crieke already said, you can run it on any PC or endpoint in your network that has node.js installed. My current approach for making extensions more accessible for users is to get them pre-installed on servers and endpoints. Iā€™m already in contact with @spockfish to get it included in his RoPieee endpoint image for the Raspberry Pi. The idea is to come up with a system that wraps an extension installer in a Roon extension. This make extensions manageable (install, update, uninstall) from within the Roon interface.

it will happenā€¦ we have a sandboxing environment plan to do exactly this. this project was one of the reasons that ROCK got delayed in releaseā€¦ we decided to push it off to a later release so we could get ROCK released!

5 Likes

Is it Rock spesific, or Roon core in general ?

1 Like

ROCK ā€“ we canā€™t sandbox stuff on your unknown operating system setup.

On your own Linux/Windows/Mac setup, you have the option to run extensions as you want, and you are free to manage the risk associated with that yourself.

We donā€™t give that you that option on ROCK, so itā€™s up to us to come up with that management/risk mitigation system.

@Jan_Koudijs: most of the time when I set a (fading) alarm, it does not show (Status: No active alarms). It does work though: music starts fading out at the chosen time.

Using 0.5.0 via extension manager 0.1.0.

Is this while the fading is in progress, or also before that?

The status already turns to ā€˜no active alarmsā€™ at the time the fading starts, some room for improvement here.

Before. I usually tend to listen to music a bit, then set the alarm to play for 10 more minutes and fade 30 after that.

When saving the alarm, it shows ā€˜No active alarmsā€™. After 10 minutes the fading starts like clockwork. :slight_smile:

Never seen that happening.
Is there only one alarm enabled?

Yup.

Iā€™ll keep an eye on it to see if and how itā€™s reproducible. For now, restarting the service makes the alarm appear.

1 Like

In version 0.5.0 I changed the status reporting, all pending alarms are reported instead of only the first one to occur. Looks like there is an issue in this part of the code, I will have a look at it. If you can find a way to reproduce, that would be of great help.

@Jan_Koudijs Hi Jan ā€¦ I just updated to v0.5.0 finally and note that you canā€™t pair the extension on 2 cores at the same time. How do I do this or it is even possible?

Hi @wizardofoz,

I never considered the ā€˜two coreā€™ case and had a look at the API documentation to find out a bit about it.

The core interface Iā€™m using at the moment indeed only permits one connection at a time. There seems to be an alternative to support multiple, but it would add complexity for a not so typical use case (I guess). I will keep it in mind, but it is not on the top of my list.

No Biggie Jan ā€¦ Just thought I would ask.

I tried to find rhyme and reason, but found nothing specific really. It works for a bit after a fresh start, but usually from the next day on, it just shows ā€˜No active alarmsā€™ after setting the fading stop. Same story when I restart the extension.

I use your extension manager these days, started with forever (with a @reboot in crontab). Works brilliantly, but same behaviour as above.

Just reporting ā€“ the alarms themselves work fine.

Once again ā€“ thanks for your efforts!

Crew, I have run into installation issues with the npm install command. W2012R2. The error says:

npm enoent ENOENT: no such file or directory, open ā€˜c:\Users\Administrator.CAPSZUMA\Downloads\roon-extension-alarm-clock-master\package.jsonā€™

npm roon-extension-alarm-clock-master No description

npm roon-extension-alarm-clock-master No repository field.

npm roon-extension-alarm-clock-master No README data

npm roon-extension-alarm-clock-master No license field.

So, what do I do now? Thanks. JCR

Hi @Jeffrey_Robbins,

On Windows you have to run the npm install command from the Git CMD window, this should be installed as part of the git installation.

Let me know if this solves the problem.

@Jan_Koudijs Indeed the alarm settings now appears in Roon desktop settings/extensions.

Thank you.

Two following questions:

  1. It appears that the git cmd pinging window must be left open at all times or the extension shuts down. This is normal?

  2. How do I find the extension on my iPhone, as that would be more useful to me than just on my PC desktop?

Thanks. JCR