Hydrogenaudio Forums

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: andrew_smolko on 2006-07-28 13:42:45

Title: foo_alarm
Post by: andrew_smolko on 2006-07-28 13:42:45
Superseded by foo_scheduler (topic (http://www.hydrogenaudio.org/forums/index.php?showtopic=49589))

Simple plugin that starts playback at the specified period of time. Just set up the period on Preferences/Playback/Alarm page.

I'd like to use my computer as alarm clock but I am tired of waiting scheduler plugin. And I don't want to use any external schedulers. Now I select playlist that should be played early in the morning and switch computer to sleep mode. When computer wakes up, playback is started. Of course, it's possible to start playback and then switch to sleep mode, but usually I power off the computer late at night and I don't want to disturb anybody with loud music.

Version 1.61 (download (http://asmo.at.tut.by/foo_alarm.zip))

Changelog:[/size]
Title: foo_alarm
Post by: sandb0y on 2006-07-28 14:36:06
Just intalled it and got
(http://xs204.xs.to/xs204/06305/untitledjfalk9.png)

foobar2000 0.9.3 beta 3, win 2k sp 4
Title: foo_alarm
Post by: andrew_smolko on 2006-07-28 16:23:24
Just intalled it and got
...
foobar2000 0.9.3 beta 3, win 2k sp 4


Fixed. Thanks for information about your windows version. Under WinXP this bug doesn't appear.
Title: foo_alarm
Post by: sandb0y on 2006-07-28 16:40:43
now it's working, btw if i set it to start time 2mins ago for instance, and then chage end time to after an hour foobar starts playing.

btw would be nice also to change days, and shutdown at end time options
Title: foo_alarm
Post by: andrew_smolko on 2006-07-28 17:05:52
now it's working, btw if i set it to start time 2mins ago for instance, and then chage end time to after an hour foobar starts playing.


It happens because alarm is restarted when you change "start time" or "end time".

btw would be nice also to change days, and shutdown at end time options


I'll think about it. If scheduler plugin doesn't appear in nearly future, I'll begin developing my own foo_scheduler
Title: foo_alarm
Post by: xliu5 on 2006-07-28 17:41:11
Thanks for the plugin.
Bug report: Start (e.g. 12:20PM) works fine. End (e.g. 12:23PM) doesn't stop playing. Also, if foobar2000 is stopped and closed, and reopened, the songs start playing. Is this intended behavior?
Title: foo_alarm
Post by: andrew_smolko on 2006-07-28 22:53:20
Thanks for the plugin.
Bug report: Start (e.g. 12:20PM) works fine. End (e.g. 12:23PM) doesn't stop playing.

Perhaps I should change descriptions for edit-boxes. "End time" doesn't mean "stop playing at this time". "Start" and "end time" describe time interval. If the current time is between "start" and "end" then playback is started.

I've done that way because sometimes I change wake up time in BIOS and I don't want to change it every time in foobar. In alarm preferences I set my usual wake up time, e.g 6:00-9:00, and then I change BIOS alarm, e.g 7:30. When computer wakes up from sleep mode, foo_alarm starts playback, because current time 7:30 is between 6:00 and 9:00. The next day I want to set alarm at 6:30, so I just change it in BIOS, not in foobar. But when computer is powered on manually at 13:00 there is no need to start playback, because most likely that I'm not sleeping 

Quote
Also, if foobar2000 is stopped and closed, and reopened, the songs start playing. Is this intended behavior?

Yes.
Title: foo_alarm
Post by: zver on 2006-07-29 12:24:29
Bud,thanks so much,couse i was still using the 0.8.3 couse i was waiting for scheduler,now i can switch to new one as simply wake up alarm is all what i need 
Thanks once again!!
Title: foo_alarm
Post by: iOsiris on 2006-07-29 13:19:46
Good job on the plugin, been looking for a foo_scheduler replacement !  THANK YOU
Title: foo_alarm
Post by: Don Reba on 2006-08-06 07:01:21
Thanks for the initiative. Just a request: for me, it is most important to have the alarm activate after a given delay, rather than at a specific time. I have now moved up from 8.3, however.
Title: foo_alarm
Post by: huythuy on 2006-08-11 14:01:41
FInally this day has come. I'm, too, the one who has been waiting for an updated of scheduler only before upgrade to 0.9 . I use it every day.

I have not tested yet, but may I raise a stupid question. I think your mainboard is a new one so that it support wake up time in BIOS, but mine doesn't . Can the plugin wakes up the PC itself if I turn my PC to sleep mode ?

GRAET GREAT GREAT , You have made my day !
Title: foo_alarm
Post by: andrew_smolko on 2006-08-11 17:58:50
I think your mainboard is a new one so that it support wake up time in BIOS, but mine doesn't .

Well, Epox 8RDA3I on nForce2 chipset. It's not a new mainboard, I've bought it 2 years ago.

Can the plugin wakes up the PC itself if I turn my PC to sleep mode?

No, it's impossible. Only BIOS controls this functionality.
Title: foo_alarm
Post by: huythuy on 2006-08-11 19:19:02
 LOL mine is ... my brain erased the chipset name already ... ESC mobo for my 6years old PIII 1.2G . So there is no hope, but it's ok for me anyway, I have my PC on for 24/7 and it's been like this long ago.

I hope you would add more functions to the component or your scheduler clone. As I said, my PC runs all day long and with ssheduler, I set a rule set :

- turn down volume at 11pm
- turn down a little bit more at 3am (about this time I go to sleep) . and keep playing during my sleep time.
- prepare all steps like: choose playlist, tracks, [the tracks after that], ... and RELEASE the volume to 0 , loud enough for me to wake up, then after 10mins reduce the volume to -10 (or someone would kill me )

I'm looking forward for any development of this must have component

thanks again
Title: foo_alarm
Post by: Borisz on 2006-08-12 08:11:23
Wait, so does this only work with sleep modes, or can I just specify a time at which it starts playing x song?
Title: foo_alarm
Post by: andrew_smolko on 2006-08-12 09:23:48
Wait, so does this only work with sleep modes, or can I just specify a time at which it starts playing x song?

Plugin doesn't work with sleep modes, it only starts playback at specified period of time.
Title: foo_alarm
Post by: jarsonic on 2006-08-13 05:50:50
Could you add a feature in the preferences, like a checkbox or something, to activate and deactivate the plugin?  Don't want it going off on the weekends, and I tend to leave fb2k open most of the time. 
Title: foo_alarm
Post by: andrew_smolko on 2006-08-13 13:48:07
Could you add a feature in the preferences, like a checkbox or something, to activate and deactivate the plugin?  Don't want it going off on the weekends, and I tend to leave fb2k open most of the time. 


I need such checkbox too, so download version 1.03, I've added this feature
Title: foo_alarm
Post by: Matyas on 2006-08-16 17:45:46
Now only fade in-out, and auto shutdown is missing. Having the skeleton, this can't be too difficult to implement. Please
Title: foo_alarm
Post by: andrew_smolko on 2006-08-22 16:10:32
Fade in has been added in 1.05.
Title: foo_alarm
Post by: Matyas on 2006-08-23 09:21:13
Superb, thanks!
Title: foo_alarm
Post by: jon.schaffer on 2006-08-23 10:13:53
Is there a way not to reach the 0.0 dB volume? I don't want to wake up my neighboors at the same time as me
(the only way I found is to enter 3600 seconds of delay before reaching 0dB). Maybe a slider for the target volume could be perfect.

Anyway: very nice plugin. Thanks!

Edit: another request: could the second time be de-activated?
Title: foo_alarm
Post by: jon.schaffer on 2006-08-24 10:14:16
I allow myself to make another suggestion. Few words, a pic:
(http://membres.lycos.fr/norbert/divers/foo_alarm_prop.png)

And thanks again for your useful plugin, Andrew.
Title: foo_alarm
Post by: andrew_smolko on 2006-08-25 12:14:46
I allow myself to make another suggestion. Few words, a pic:
....

I wish everybody describe their requests the way you've done! Thanks!
Wait for a few days, version 1.5 is on the way.
Title: foo_alarm
Post by: ktr on 2006-08-29 23:36:35

I allow myself to make another suggestion. Few words, a pic:
....

I wish everybody describe their requests the way you've done! Thanks!
Wait for a few days, version 1.5 is on the way.



*thumbsup*

this would be the perfect options menu for this plugin!

i cant already wait for this update )) *pushpush*
Title: foo_alarm
Post by: andrew_smolko on 2006-08-31 16:21:33
1.5 is ready!
Title: foo_alarm
Post by: jon.schaffer on 2006-08-31 17:56:14
Thanks Andrew, it works very well!

I will bother you with a last thing (after that, it will be perfect IMHO ):
once the fade-in is started, if one change the volume (or mute it), then this action is canceled and the fade-in process goes on its way. Could it be avoided, in order to "take control" of the volume quickly ? (it's not a big deal though: pause then un-pause does the trick). Anyway: already a good job!
Title: foo_alarm
Post by: ARiel G. on 2006-08-31 23:39:42
Wonderful, i very liked the new features.

Maybe is possible to add a button or/and symbol that u can click to apply alarm or to identify is alarm are in progress.
Title: foo_alarm
Post by: Matyas on 2006-09-01 08:29:10
Maybe this is a lame question, but anyway :-)
I understand, that foobar should be running during the timeframe the alarm is set to start. What if at that time my notebook is in sleep (or power off) mode and/or foobar is not running? Is there a way to tell the computer - either through this plugin, or otherwise - that it shall wake up a minute before the scheduled time and start foobar?
Title: foo_alarm
Post by: tomthomson on 2006-09-01 10:12:17
well, some mainboards have a wakeup function. You can set it up in the BIOS. Best is you search for it in your mainboard manual. I have seen this future in the manual of an ASUS mainboard but not all BIOS have this feature
And when your computer has started you can set up the time with the windows task scheduler when you want foobar to start
Title: foo_alarm
Post by: Matyas on 2006-09-01 14:28:52
So essentially it would be a three step approach:
1. set BIOS wake up
2a. set windows scheduler to start foobar
2b. Tell foobar to open a certain playlist
3. set foo_alarm

It would be great if steps 2a, 2b could be done by foo_alarm, and hence save a step. I made a little experiment, and it seems a scheduled JOB in Windows XP is able to get the machine out of the standby/sleep mode, which would be an ideal solution, because in that case there does not have to be a BIOS option for power on.

But essentially, implementing option 2b, i.e. telling foo_alarm which playlist to play would also be satisfactory! That way we could have a playlist for sleep, and a playlist for wake/up. And having the basic features, maybe it could be expanded to allow for multiple alarms based on weekdays...

Matyas
Title: foo_alarm
Post by: jon.schaffer on 2006-09-01 17:37:36
Matyas:
a scheduled task could be able to launch foobar and make it play, with a command line such as:
foobar2000.exe /play
(I dont remember if such command lines need a plug-in to work, though)
(and you won't get the fade-in effect)

Or, you can set a Foobar2000 link in your startup folder - no need then to use the task manager.
Title: foo_alarm
Post by: Matyas on 2006-09-01 21:31:08
Your workaround is just not the right way of doing it. The alarm is a great plugin, and I don't see reasons why not to improve it further. I have already tried the following command line:
foobar2000.exe /activate-playlist:MorningList /play

but the problem is, the playlist is just activated, but the next song in the queue is still from the old one, so this is not a solution. Therefore it would begreat if the alarm plugin would allow to select the playlist to start playing, and additionaly, yeah, it would be great if it could handle the task scheduling.

I am WILLING to help coding this - if help is needed!
Title: foo_alarm
Post by: andrew_smolko on 2006-09-02 19:42:53
...it seems a scheduled JOB in Windows XP is able to get the machine out of the standby/sleep mode, which would be an ideal solution, because in that case there does not have to be a BIOS option for power on.

Well, seems to me that it's impossible to get the computer out of the SLEEP mode by using windows scheduler. In sleep mode memory is unpowered. In STANDBY mode memory is powered so this is the only mode in which application is able to wake up the computer. But this mode is useless for long periods cause a lot of electrical schemes is working on the motherboard. And I don't like when there is working electronic device near me when I'm sleeping.

Quote
Therefore it would begreat if the alarm plugin would allow to select the playlist to start playing

I'll add this.
Title: foo_alarm
Post by: jon.schaffer on 2006-09-05 08:58:13
Yet another request:
could you add a "Run only once" button ?
It would allow the choice between an "daily" alarm or a "one time" alarm (since one could easily forget to manually disable it after it ran...). Thanks !
Title: foo_alarm
Post by: Matyas on 2006-09-05 09:14:56
@could you add a "Run only once" button:

...and make it possible to use a toggle button on the toolbar for this.
Like, for example:
1. Add a checkbox in the settings for "Run only once".
2. Add a toolbar button doing the same as the main enable/disable checkbox on the options page.

And the idea would be the following:
If "Only once" is enabled, it would turn the plugin automatically off after the first run. This would effectively change the state of the toolbar button as well, hence the next time I wanted to set it to alarm only once, the only thing I had to do was click the toolbar button. It would wake me up the next day, + disable itself afterwards, and so on.
Title: foo_alarm
Post by: jarsonic on 2006-09-08 12:53:13
foo_alarm doesn't seem to work if fb2k has been paused, only if its stopped.  If it is paused, it won't start playing at the time you specify. 
Title: foo_alarm
Post by: andrew_smolko on 2006-09-08 16:30:18
Version 1.55 fixes this issue + adds alarm playlist.
Title: foo_alarm
Post by: Matyas on 2006-09-08 17:02:37
@1.55: Yeeeehaaaaaoo
Thanks!
Title: foo_alarm
Post by: Andreasvb on 2006-09-08 17:13:52
Thanks.

Would it be possible to implement fade out and stop after specified time?

I use that with 0.8, set to pause after 30 min and then resume on the morning.
Title: foo_alarm
Post by: andrew_smolko on 2006-09-08 21:16:02
Thanks.
Would it be possible to implement fade out and stop after specified time?
I use that with 0.8, set to pause after 30 min and then resume on the morning.

You wanna say it's time for foo_alarm 2.0 (codename foo_scheduler  )? I hope I'll find time to start and maintain the development of this plugin...
Title: foo_alarm
Post by: NeXT on 2006-09-08 23:33:20
WOW! Thanks on beforehand!

As for me the main disadvantage of foo_alarm is inability of creation many alarm events at different times. Also I can't specify what song in alarm playlist should be played..
Title: foo_alarm
Post by: RogerG on 2006-09-11 05:08:36
You wanna say it's time for foo_alarm 2.0 (codename foo_scheduler  )? I hope I'll find time to start and maintain the development of this plugin...


That would be awesome! Many users would appreciate that.
Title: foo_alarm
Post by: andrew_smolko on 2006-09-16 23:48:31
1.6 is out. Now foo_alarm can wake up your computer from stand-by/hibernate mode. Use "Start playback beеtween ..." option, cause if you use "Start playback at %time%" your computer will wake up at this time and when it completes fast boot it will be %time%+fast_boot_time, so playback won't be started. Hope you've understood

P.S.
I've found myself mistaken in understanding how stand-by/hibernate modes work  I thought it's impossible to wake up computer from hibernate (sleep) mode but it's not true!
Title: foo_alarm
Post by: Matyas on 2006-09-17 08:25:16
@andrew:
Great job! I knew you could do it :-)

Edit: It seems that Fade-in does not work properly when using the wake-up.
Edit2: and though the playlist is changed, the played song remains from the old queue (playlist)
Edit3 - Request: and option to set the master volume (Windows volume) to a predefined level. This isimportant, because if I hibernate the notebook with a very low volume level (probably because I was using my headphones), I might not hear the alarm the next morning. Of course if I leave the headphones plugged in - then yeah, bad luck...
Title: foo_alarm
Post by: andrew_smolko on 2006-09-17 10:43:26
Edit: It seems that Fade-in does not work properly when using the wake-up.

Strange, I've test several times and everything worked...
Edit2: and though the playlist is changed, the played song remains from the old queue (playlist)

Fixed in 1.61
Edit3 - Request: and option to set the master volume (Windows volume) to a predefined level.

Well, currently I'm working on foo_scheduler, so possibly 1.61 is the last version of foo_alarm. I've decided to release 1.6 version because of the discovery wakeup from hibernate. All requests will be taken into consideration in foo_scheduler.
Title: foo_alarm
Post by: jon.schaffer on 2006-09-17 11:54:22
possibly 1.61 is the last version of foo_alarm... All requests will be taken into consideration in foo_scheduler.

I nevertheless allow myself to ask a last feature: a "run once" option.

I prefer foo_alarm for its simplicity. IIRC, in order to make the same action as foo_alarm (play + fade-in), you must set multiple events and tweak the time for each one. So if you want to change your alarm time, you must change the time of several events (or I did not understant the plug-in...)
Or... a solution would be to have the possibility with foo_scheduler to be able change the time for multiple actions.
Title: foo_alarm
Post by: andrew_smolko on 2006-09-17 21:59:49

possibly 1.61 is the last version of foo_alarm... All requests will be taken into consideration in foo_scheduler.

I nevertheless allow myself to ask a last feature: a "run once" option.

I prefer foo_alarm for its simplicity. IIRC, in order to make the same action as foo_alarm (play + fade-in), you must set multiple events and tweak the time for each one. So if you want to change your alarm time, you must change the time of several events (or I did not understant the plug-in...)
Or... a solution would be to have the possibility with foo_scheduler to be able change the time for multiple actions.

Yuo will not need multiple events. In my foo_scheduler there is an action list which is assigned to certain event. Ok, there is the teaser  of the configuration tree:

Title: foo_alarm
Post by: huythuy on 2006-09-17 23:13:17
I'm so glad to here that you're working on foo_scheduler . I can't wait to see and test it .

Keep on good work

thanks
Title: foo_alarm
Post by: Andreasvb on 2006-09-18 00:05:11
That looks very slick!
Even better than the original scheduler =)

I also have the fade in problem, it works sometimes, but most when it's a long time before it starts, like a night. It worked in 0.9.3, but not in 0.9.4 beta 3. What I remember.

Thank you again.
Title: foo_alarm
Post by: huythuy on 2006-09-25 21:15:58
up up up with more hope . Is there any development for us to test out ?
Title: foo_alarm
Post by: andrew_smolko on 2006-09-25 21:49:32
Work is in progress. It's not as easy as it seemed at first. When there will be something to test, a new thread will be started.
Title: foo_alarm
Post by: Matyas on 2006-09-26 08:30:53
Thanks andrew. Just please make sure you post the link to the new post into this thread.
Title: foo_alarm
Post by: astranger on 2006-10-03 01:27:36
Great work! Thank you very much!

Expecting multi-timers like those in "Scheduler"....

Thanks again!
Title: foo_alarm
Post by: woxyd on 2006-10-15 15:54:19
I have solved the problem with multiple alarms (for example starting playback of a specified playlist on weekdays and at the weekend at the different time) this way:

1. downloading foo_cmd_playlist component, that enables activating of specified playlist by name
2. making simple batch file named foobar.cmd with this: start /d"C:\Program Files\foobar2000\" foobar2000.exe /playlist-activate:"<SpecifiedPlaylist>" /play
3. setting windows task scheduler to execute foobar.cmd

Maybe this will help someone.....
Title: foo_alarm
Post by: andrew_smolko on 2006-10-22 19:18:41
Good news for those waiting for foo_scheduler! I've almost completed the development. During the next week you'll see foo_alarm 2.0 (or it's better to say foo_scheduler 2.0  )! Stay tuned!
Title: foo_alarm
Post by: Shinsou on 2006-10-22 20:23:59
good news!
Title: foo_alarm
Post by: Andreasvb on 2006-10-22 20:49:11
Great news, thanks soo much
Title: foo_alarm
Post by: philipshu on 2006-10-23 09:58:37
thanks,
i need something like that badly
Title: foo_alarm
Post by: andrew_smolko on 2006-10-25 21:24:46
No more foo_alarm, foo_scheduler is better!  (topic (http://www.hydrogenaudio.org/forums/index.php?showtopic=49589))
Title: foo_alarm
Post by: Matyas on 2006-10-26 08:20:58
Yeeeehaaaaao!
Title: foo_alarm
Post by: gren on 2006-10-26 11:32:37
Goodbye foo_alarm.  Our time together was short but sweet.

(thank you andrew)
Title: foo_alarm
Post by: hermitdruid on 2006-10-28 16:46:16
Sounds good, looking forward to it!
Title: foo_alarm
Post by: parabox on 2006-10-31 21:08:42
bug: foo_alarm.dll
doesen't work start-stop 23:59-0:01  i like to go to bed with music (radio streaming), and i don't like to switch it off.
suggestion: make button [start playing right now and stop after] xx hours  xx minutes 
Title: foo_alarm
Post by: andrew_smolko on 2006-10-31 21:38:37
bug: foo_alarm.dll
doesen't work start-stop 23:59-0:01  i like to go to bed with music (radio streaming), and i don't like to switch it off.
suggestion: make button [start playing right now and stop after] xx hours  xx minutes 

Have you read the first red message in the first post?  foo_alarm development is stopped, use foo_scheduler instead.
Title: foo_alarm
Post by: parabox on 2006-11-01 22:50:49
Have you read the first red message


good work;) i thought it will be long delayed development project
thank you.
SimplePortal 1.0.0 RC1 © 2008-2019