plugin suggestion: sleeptimer/alarm clock

Discussion about user contributed plugins

Moderator: Moderator

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

plugin suggestion: sleeptimer/alarm clock

Postby frosch » Mon Feb 25, 2008 3:47 pm

is there anybody out there who see a need for a
sleeptimer/alarm clock plugin?

in my opinion it should have the following functions:

sleeptimer:
- configurable sleeptime
- maybe volume dimming in the last minutes
- shutdown the machine (poweroff, standby sleep ??)

alarm clock:
- start the machine to a preconfigured time/date
using ACPI as well as the ingenious NVRAM_Wakeup by Sergei Haller (configurable)
- after starting the machine and MMS, run a configurable job to tune to a certain
radio/tv station or play a certain mp3 file or playlist
- extended feature could be:
-- preconfigurable wakeup times for different weekdays
-- dimming the volume up slowly after start

any other suggestions ??

frosch

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Mon Feb 25, 2008 4:09 pm

sorry, just found the "feature request" forum
maybe a mod can move this thread into it...

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Mon Feb 25, 2008 6:38 pm

the request is fitted very well here ;)

You know we have "shutdown on playlist end"?
Lg
Roman

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Mon Feb 25, 2008 8:01 pm

Uatschitchun wrote:You know we have "shutdown on playlist end"?


Yes, but for watching TV or listen to inet radio there is no ending playlist :)

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Mon Feb 25, 2008 8:08 pm

frosch wrote:
Uatschitchun wrote:You know we have "shutdown on playlist end"?


Yes, but for watching TV or listen to inet radio there is no ending playlist :)

don't wanna smart assign around, but feature request fit best into our feature request & bugs base ;-)

it's a good place to discuss them here though

Regards,
Andreas
Last edited by acmelabs on Wed Mar 19, 2008 3:08 pm, edited 1 time in total.

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Sat Mar 15, 2008 2:16 pm

hello: i'm working on alarm/clock. This is my idea for implements on:

Clock plugin:
    enable/disable from configure (implemented)
    show in Notify Area: Hour, number of day and day of week. (implemented)
    enable/disable from options menu
    set multiple alarms: ej (monday 7:00, friday 7:00, friday 18:00).
    select a playlist to play when alarm ringing.

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Sun Mar 16, 2008 9:34 am

castorinop wrote:Clock plugin:
    enable/disable from configure (implemented)
    show in Notify Area: Hour, number of day and day of week. (implemented)
    enable/disable from options menu
    set multiple alarms: ej (monday 7:00, friday 7:00, friday 18:00).
    select a playlist to play when alarm ringing.


he, sounds good :lol:

just for interest:

- is it a feature plugin or works it via Python?
- do you use Nvram-wakeup and/or ACPI?



full of expectations...,

frosch

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Tue Mar 18, 2008 2:00 pm

frosch wrote:- is it a feature plugin or works it via Python?
feature plugin
frosch wrote:- do you use Nvram-wakeup and/or ACPI?

ACPI method change depends of version of kernel. But my idea is call a script helper with the datetime as param.

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Wed Mar 19, 2008 2:01 pm

hello

i need a little help.

1º who is best way of load playlist and play in audio plugin from other plugin (in this case clock plugin) ? (code example, better!)

2º how list playlist stored in audio plugin. (list_playlist method is protected)

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Tue Mar 25, 2008 9:38 am

castorinop wrote:
frosch wrote:- do you use Nvram-wakeup and/or ACPI?

ACPI method change depends of version of kernel. But my idea is call a script helper with the datetime as param.


yeah, thats the best way...

castorinop wrote:i need a little help.

1º who is best way of load playlist and play in audio plugin from other plugin (in this case clock plugin) ? (code example, better!)

2º how list playlist stored in audio plugin. (list_playlist method is protected)



unfortunatly I never coded a plugin,
so one of the much more skilled guys
are able to help you...
(i.e. arj, lorenzodes, acmelabs or Uatschitchun)

castorinop wrote:Location: Argentina


so you from Argentina - very interesting,
feel free to join our little "google-maps-game" in
http://forum.mymediasystem.org/viewtopic.php?t=1220

regards,

frosch

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Tue Mar 25, 2008 8:17 pm

castorinop wrote:1º who is best way of load playlist and play in audio plugin from other plugin (in this case clock plugin) ? (code example, better!)


I havn't exposed the functions that are needed. But you'd do that with the following function in audio:

virtual bool load_playlist(const std::string& playlistfile) = 0;

Just change it to public.

castorinop wrote:2º how list playlist stored in audio plugin. (list_playlist method is protected)


This function should play the currently selected song in the playlist:

virtual void play() = 0;

It's also not public.

Actually what you're asking for is supposed to be taken care of by the Playback class in global.hpp. So it might be better to extent that to what you need and then hook up audio accordingly.

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Tue Apr 01, 2008 6:43 pm

hey friends !

i need a little brainstorming for define the GUI for add/remove alarms. the plugin support multiples alarms. example:

Code: Select all

# Alarm
# number of day, hour.
#
alarm = 1,  7:25
alarm = 2,  7:25
alarm = 3,  7:25
alarm = 4,  7:25
alarm = 5,  7:25


other issue: in the option plugin can select the playlist to load when alarm is ringing. but the list of playlists is loaded at start of mms. if you have a idea how be update the list when enter in Global Options.

Thanks !

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Thu Apr 03, 2008 3:02 pm

castorinop wrote:hey friends !

i need a little brainstorming for define the GUI for add/remove alarms. the plugin support multiples alarms. example:


do you have access to a windows pc ?
have a look to the "My Alarm" Plugin of MediaPortal
http://www.team-mediaportal.com/

it's nice and usefull...

greetings,

frosch

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CC/IT d- s+:- a+ C++(+++) UL+> P L++> E- W+++ N+ o-- K- w O- M- !V-- PS+++ PE+ Y+ PGP++ t+ 5@ X? R tv- b++(+++) DI-? D---- G++ e* h---- r- y+++
------END GEEK CODE BLOCK------

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Apr 03, 2008 4:22 pm

frosch wrote:have a look to the "My Alarm" Plugin of MediaPortal

Have you got a direct link?
Lg

Roman

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Mon Apr 07, 2008 3:29 am

@acme: i need a alarm icon!


Return to “user plugins”

Who is online

Users browsing this forum: No registered users and 2 guests