IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

 
Reply to this topicStart new topic
How can I get this auto-shutdown feature I'd like?
Harreh
post May 6 2011, 00:35
Post #1





Group: Members
Posts: 10
Joined: 6-May 11
Member No.: 90379



So I've got an idea for a component, it might exist but I dunno.

Basically, I want to be able to automatically shutdown/hibernate/sleep/whatever my PC after all the tracks in a playlist have played.
Kinda like setting uTorrent to auto shutdown after downloads complete.

Here's what I do to get this functionality:
- I create a playlist containing all the music that I want to listen to. I put downtempo and ambient music on.
- I set my PC to auto hibernate by using the Task Scheduler to execute a .bat file at a specified time.
The time I choose is just calculated based on how long the music in the playing I made is and the current time.
The .bat file contains "shutdown /h".
- I go to bed, fall asleep and the music keeps on playing.
- My PC automatically hibernates shortly after the music stops playing.

It works, but it'd be sooo much simpler if I could just set foobar to automatically handle it all.


I'm guessing this component doesn't exist (or does it?) so I figured I'd make it. Now, I'm totally new to this but I'm sure this component should be easy enough to make. I'm gonna be graduating from uni doing computer science so yea.

Any initial reading material and stuff you can point me to, and thoughts on my idea are welcome.
Go to the top of the page
+Quote Post
tpijag
post May 6 2011, 00:41
Post #2





Group: Members
Posts: 2355
Joined: 19-May 08
Member No.: 53637



foo_scheduler

Set event to be end of playlist
set action to shut down
quiet time

terry

Download link

This post has been edited by tpijag: May 6 2011, 00:48
Go to the top of the page
+Quote Post
Harreh
post May 6 2011, 01:03
Post #3





Group: Members
Posts: 10
Joined: 6-May 11
Member No.: 90379



QUOTE (tpijag @ May 6 2011, 00:41) *
foo_scheduler

Set event to be end of playlist
set action to shut down
quiet time

terry

Download link


Thanks, just checked that out but it can't actually perform exactly what I'm after wink.gif

edit: Or I'm just not sure how to use it... I dunno I'm sure it can.



This post has been edited by Harreh: May 6 2011, 01:06
Go to the top of the page
+Quote Post
tpijag
post May 6 2011, 01:09
Post #4





Group: Members
Posts: 2355
Joined: 19-May 08
Member No.: 53637



What does it not do - exactly.

It will trigger action when music finishes.
Action to Shut down has hibernate option.

Edit: More detail

Add action
Shutdown / hibernate

Add player event
On playback stop
Right click added event
Assign appropriate action



This post has been edited by tpijag: May 6 2011, 01:12
Go to the top of the page
+Quote Post
carpman
post May 6 2011, 03:50
Post #5





Group: Developer
Posts: 1342
Joined: 27-June 07
Member No.: 44789



Or there's foo_shutdown:
http://skipyrich.com/wiki/Foobar2000:Foo_Shutdown

MAIN MENU > Playback > "Shutdown when noise stops" (or hibernate etc ..)

I have foo_scheduler but use this component for such functions.
It's also useful in conjunction with stop after current.

C.


--------------------
TAK -p4m :: LossyWAV -q 6 | TAK :: Lame 3.98 -V 2
Go to the top of the page
+Quote Post
Harreh
post May 6 2011, 12:37
Post #6





Group: Members
Posts: 10
Joined: 6-May 11
Member No.: 90379



I got there in the end.

QUOTE (tpijag @ May 6 2011, 01:09) *
What does it not do - exactly.

It will trigger action when music finishes.
Action to Shut down has hibernate option.

Edit: More detail

Add action
Shutdown / hibernate

Add player event
On playback stop
Right click added event
Assign appropriate action


That's where the confusion is. "End-of-file signal" sounds like nonsense to me. I expected that to trigger whenever any EOF was reached.

QUOTE (carpman @ May 6 2011, 03:50) *
Or there's foo_shutdown:
http://skipyrich.com/wiki/Foobar2000:Foo_Shutdown

MAIN MENU > Playback > "Shutdown when noise stops" (or hibernate etc ..)

I have foo_scheduler but use this component for such functions.
It's also useful in conjunction with stop after current.

C.


Sounds great, think I'll use that one instead. Much easier to use I reckon.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th December 2014 - 07:59