[PROPOSAL]: Alarm Clock

Suggestions/requests/ideas for RuneAudio core features and functions

[PROPOSAL]: Alarm Clock

Postby cyber7 » 05 Feb 2015, 14:35

I have a proposal for an alarm-clock. Basically working just like a normal clock:

ENTRY: Once off/Repeatedly.
ENTRY: Start Time. (Mon-Fri)
ENTRY: Playlist.
ENTRY: MAX Volume.
ENTRY: Weekend Start Time.

Function:
Fade "Playlist" from 0 to "MAX Volume" over 10 Minutes starting at "Start Time".

Screens:
SCREEN1: Currently set-screen.
SCREEN2: Settings.

Depending on the amunt of interest, I will have a look at creating this as an add-in.

cheers
cyber7 (aka Aubrey Kloppers; Cape Town; South Africa)
To err is human, to err again is machine!
User avatar
cyber7
 
Posts: 28
Joined: 04 Feb 2014, 14:49
Location: Cape Town, South Africa

Re: [PROPOSAL]: Alarm Clock

Postby ACX » 05 Feb 2015, 16:53

My suggestion for the clock setup on the frontend side is to use this component:
http://weareoutman.github.io/clockpicker/
It's built on Bootstrap and jQuery, and can be perfectly integrated in the RuneUI.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: [PROPOSAL]: Alarm Clock

Postby JB314 » 09 Feb 2015, 15:01

Hi,
I'm new to RuneAudio, great work by the way, and I've developed an Alarm Clock feature.
The ACX's suggestion is perfect and I'll integrate this time picker in my page !

Currently how it works :
- new "WakeUp" item in the menu
- a new page where you enable/disable globally the alarm feature, then, for each week day, enable/disable the alarm, set start time, set a duration and select a playlist from a drop down list (known bug : playlist name without space...).
- alarms infos stored into a separated file, json format.
- a cron is created from these data
- cron will contains 2 lines per alarm : start and stop
- start @ time: start a shell script which clear the current mpd playlist, load the new playlist and play it.
- stop @ time + duration : start a shell script which stop playing.

I would like to add a "fade-in" mode to this feature, but my volume knob a is motorized knob... need to code some gpio related stuff in order to drive this knob. But I'm looking to something more "transparent" with a alsa driver or something like that. Something which react correctly when we execute standard commands like mpc volume +5...

I'm very new to php and php-fpm and runeUI code, so I'm not sure my code is well designed (used to use C# instead ;) ), so how then can I send the new files to be reviewed ? (I have a github account)

(I've also dev a new "Podcast" entry in the library, where we can add and parse rss podcast (xml) and listen to it, don't know if it's a good feature but, if you want it too I can sent it too, just need to know how ? )
JB314
 
Posts: 8
Joined: 09 Feb 2015, 14:31

Re: [PROPOSAL]: Alarm Clock

Postby ACX » 10 Feb 2015, 01:04

User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: [PROPOSAL]: Alarm Clock

Postby cyber7 » 10 Feb 2015, 08:16

To err is human, to err again is machine!
User avatar
cyber7
 
Posts: 28
Joined: 04 Feb 2014, 14:49
Location: Cape Town, South Africa

Re: [PROPOSAL]: Alarm Clock

Postby JB314 » 12 Feb 2015, 10:33

Hi and thanks for your answers,
I'll probably push the files tonight or tomorrow.

@ACX, could you give me some info about how you imagine "plugins" should work ? (menu items into a separate file ? Separate file for all specific functionality ? avoid adding things into runeaudio.php ? ... )

BTW, I'm currently adding functionality directly on the RPi, but vi is not very "dev friendly", I'm installing a VM with Arch and the cookbook, it will be easier for future dev.
JB314
 
Posts: 8
Joined: 09 Feb 2015, 14:31

Re: [PROPOSAL]: Alarm Clock

Postby cyber7 » 12 Feb 2015, 13:35

Just completed the following alarm plugin. I decided not to go with clockpicker as it does not work that well with SmartPhones.

Function:
* Enable/Disable with the SET ALARM or RESET ALARM options
* Uses Playlists from Webradio
* 2 date functions: MON-FRI or MON-SUN[/list]

I am busy getting all the code into a tar file and will be posting it later this afternoon/tomorrow...

alarm.jpg
alarm.jpg (70.14 KiB) Viewed 5179 times
To err is human, to err again is machine!
User avatar
cyber7
 
Posts: 28
Joined: 04 Feb 2014, 14:49
Location: Cape Town, South Africa

Re: [PROPOSAL]: Alarm Clock

Postby ACX » 12 Feb 2015, 18:24

User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: [PROPOSAL]: Alarm Clock

Postby JB314 » 22 Feb 2015, 17:24

Attachments
RuneAudio-Wakeup.png
RuneAudio-Wakeup.png (80.9 KiB) Viewed 5103 times
RuneAudio-Wakeup.tar.gz
(41.52 KiB) Downloaded 834 times
Last edited by JB314 on 23 Feb 2015, 14:48, edited 2 times in total.
JB314
 
Posts: 8
Joined: 09 Feb 2015, 14:31

Re: [PROPOSAL]: Alarm Clock

Postby dwijtsma » 23 Feb 2015, 08:48

Maybe a little bit of topic, but what are the advantages of cron compared to systemd? I use systemd to make my runeaudio add-on script work after a reboot. I guess there's a reason both exist next to each other...
Audio gear: RuneAudio on Raspberry Pi 2 + Dr. DAC nano, Marantz pm66se, Avalon Avatar
dwijtsma
 
Posts: 51
Joined: 03 Nov 2014, 20:16

support RuneAudio Donate with PayPal

Next

Return to Feature request

Who is online

Users browsing this forum: No registered users and 4 guests