fewieden / MMM-AlarmClock

Alarm Clock Module for MagicMirror²
MIT License
47 stars 18 forks source link

Use random song? #9

Closed kurnalbert closed 6 years ago

kurnalbert commented 7 years ago

Do you know if it is possible to have the alarm select a random file from the sounds folder when the alarm goes off?

I have been looking into the code but I know very little with regards to javascript so I haven't been able to find a way.

Thanks for making such an awesome module!

fewieden commented 7 years ago

you would have to scan for all files and then choose a random one or provide a list with all files and then choose a random one