[MOD] Alarm & Sleep

Suggestions/requests/ideas for RuneAudio core features and functions

[MOD] Alarm & Sleep

Postby restinpieces » 11 May 2017, 12:50

Attachments
alarm_sleep_1v2.tar
(50 KiB) Downloaded 622 times
alarm1.png
alarm1.png (48.94 KiB) Viewed 5541 times
alarm_sleep_2.png
alarm_sleep_2.png (19.48 KiB) Viewed 5592 times
Last edited by restinpieces on 16 May 2017, 22:29, edited 1 time in total.
restinpieces
 
Posts: 19
Joined: 28 Feb 2016, 22:26

Re: [MOD] Alarm & Sleep

Postby restinpieces » 13 May 2017, 18:21

V1.1
- Styled checkboxes
- Added a stop sleep timer button
restinpieces
 
Posts: 19
Joined: 28 Feb 2016, 22:26

Re: [MOD] Alarm & Sleep

Postby hondagx35 » 14 May 2017, 11:34

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: [MOD] Alarm & Sleep

Postby restinpieces » 15 May 2017, 22:15

I think its generally a good idea to have a small threshold. Does your code work with positive and negative Diff? (I'm not the greatest shell programmer)
restinpieces
 
Posts: 19
Joined: 28 Feb 2016, 22:26

Re: [MOD] Alarm & Sleep

Postby hondagx35 » 16 May 2017, 09:05

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: [MOD] Alarm & Sleep

Postby restinpieces » 16 May 2017, 22:33

V1.2 Bugfixes
- Sleep fade calculation was wrong
- Sleep page didn't correctly reload
- Fade in exit condition now with threshold (thx hondagx35)
restinpieces
 
Posts: 19
Joined: 28 Feb 2016, 22:26

Re: [MOD] Alarm & Sleep

Postby Stephane » 22 May 2017, 20:43

Hello,

Tested on my garage player with a 7" screen, it works after reinstalling cronie and at as stated.
Thank you for your work.
Stephane
 
Posts: 71
Joined: 06 Feb 2017, 10:35

Re: [MOD] Alarm & Sleep

Postby lakeuk » 20 Jun 2017, 17:02

Excellent mod/instructions, could the alarm/sleep have an option to not use the fade, volume level stays constant
(Pi 3, Ver. 0.4b build 20170229, usage m3u radio streams playlists)
lakeuk
 
Posts: 15
Joined: 20 Jun 2017, 16:54

Re: [MOD] Alarm & Sleep

Postby restinpieces » 02 Jul 2017, 12:47

restinpieces
 
Posts: 19
Joined: 28 Feb 2016, 22:26

Re: [MOD] Alarm & Sleep

Postby lakeuk » 04 Jul 2017, 22:18

Last week I tinkered about with the alarm template and added 0 to the array, works a treat. I'm ok having a set volume with no fade in, I don't have it loud enough to shock me, got a bedside alarm clock to do that for me 10 minutes after the runeradio goes off. Once first alarm of the day goes off I use the alarm as a scheduling function, switching to radio stations that I'm interested at certain times of the day.

Got a surprise when the sound stopped after an hour so in mpcfadectl.sh I've upped the timeout to 240minutes. I've starting adding to the template a timeout section, not yet fed it through to the shell script.

I'll look at the sleep again, just tried the 5min and noticed the volume going down straight away, on my RaspPi sound is only heard in the 80-100% range, once a minute passes silence.
Attachments
templates.zip
Alarm.php - 0 added to fade, timeout dropdown placeholder for future. Sleep.php - extra buttons upto 240mins
(6.13 KiB) Downloaded 480 times
(Pi 3, Ver. 0.4b build 20170229, usage m3u radio streams playlists)
lakeuk
 
Posts: 15
Joined: 20 Jun 2017, 16:54

support RuneAudio Donate with PayPal

Next

Return to Feature request

Who is online

Users browsing this forum: No registered users and 5 guests
cron