My Alarm V2 (1 Viewer)

A

Anonymous

Guest
Hi Devo,

I think that the wake-up-thing should be coded only once and made public to all plugins.
I've not talked to frodo yet but I'm thinking in terms of something like this.

If the current plugin interface was extended by a few more methods/events like
getNextEvent() return DateTime
allowShutdown() return bool
wakeupevent() - triggered when time is up

and the whole collections of plugings from MP core where made accessible to PowerScheduler then it could easily scan every active plugin for a time to wake'em up or check if any of them would prevent MP from going into sleep.

When I get some time I will do some testing to se if it could work.

/ Fred
 

devo

Retired Team Member
  • Premium Supporter
  • September 2, 2004
    215
    0
    Canada
    fred said:
    Hi Devo,

    I think that the wake-up-thing should be coded only once and made public to all plugins.
    I've not talked to frodo yet but I'm thinking in terms of something like this.

    If the current plugin interface was extended by a few more methods/events like
    getNextEvent() return DateTime
    allowShutdown() return bool
    wakeupevent() - triggered when time is up

    and the whole collections of plugings from MP core where made accessible to PowerScheduler then it could easily scan every active plugin for a time to wake'em up or check if any of them would prevent MP from going into sleep.

    When I get some time I will do some testing to se if it could work.

    / Fred

    Sounds good. As long as I can set a wakeup timer and control it somehow from my plugin then I am happy. Till then I am going to make some changes to get ready for this functionlity.

    I look forward (and many others) look forward to this integration.
     
    A

    Anonymous

    Guest
    devo said:
    Sounds good. As long as I can set a wakeup timer and control it somehow from my plugin then I am happy. Till then I am going to make some changes to get ready for this functionlity.

    I look forward (and many others) look forward to this integration.

    Good,
    You don't seem to need any help but this is what I think needs to be done to your plugin to make it fit the future wake-up-functionality of MP.

    To prepare your plugin you should make a function that returns the Datetime representing the next pending Alarm occurring after a DateTime given as argument to the method.

    Also the function to answer whether it's ok or not to suspend/hibernate will be needed. (check if there are any pending alarms in the nearest future or any other important ongoing activity in your plugin)

    Do you think there will be a problem that PowerScheduler (of today) only can hibernate when at HomeWindow.
    When an Alarm goes off I guess we're no longer at home
    - how do we get back?
    - how to enable automatic hibernate?
    Any thoughts?


    / Fred
     

    devo

    Retired Team Member
  • Premium Supporter
  • September 2, 2004
    215
    0
    Canada
    fred said:
    Good,
    You don't seem to need any help but this is what I think needs to be done to your plugin to make it fit the future wake-up-functionality of MP.

    To prepare your plugin you should make a function that returns the Datetime representing the next pending Alarm occurring after a DateTime given as argument to the method.

    Also the function to answer whether it's ok or not to suspend/hibernate will be needed. (check if there are any pending alarms in the nearest future or any other important ongoing activity in your plugin)

    Do you think there will be a problem that PowerScheduler (of today) only can hibernate when at HomeWindow.
    When an Alarm goes off I guess we're no longer at home
    - how do we get back?
    - how to enable automatic hibernate?
    Any thoughts?


    / Fred

    I am pretty much done a method to return the next alarm datetime and going to write a property right now called "CanHibernate" I don't know if there is any specific circumstances that may differ from the normal video/ music playing but it is good to allow plugins their own control over this.

    Do you have an inactivity timer? If there are no events fired for an amount of time(excluding watching videos or music playing etc) you could activate the home screen then hibernate.
     
    A

    Anonymous

    Guest
    Hi devo,
    Just to keep you posted:

    The thoughts about a generic wake-up-facility seem to work in practice.
    I will be ready to handover the altered files to frodo for approval and CVS update in a couple of days.
    I do not wish to upload this to SF yet but if you want to get the hold of the sources and try it out please send me a PM with an e-mail address or place where I can upload.

    / Fred
     

    devo

    Retired Team Member
  • Premium Supporter
  • September 2, 2004
    215
    0
    Canada
    rien-ne-va-plus said:
    how is it going? there are people out there waiting desperately!

    I apologize for the length its taking to impliment this. I am inbetween homes right now and Christmas is coming fast. I have already made certain changes to support freds code but haven't implimented it fully yet. Hang tight and I will get it done.
     
    A

    Anonymous

    Guest
    Alarm automation

    I think it would be cool, if as well as Radio, file etc, imagine if at 6:00 am, a soothing voice bids you good morning, and as you roll out of bed, last headlines from “My News” are read to you along with today’s weather forecast, and so on.

    What do you think
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Re: Alarm automation

    Don Ciccio said:
    I think it would be cool, if as well as Radio, file etc, imagine if at 6:00 am, a soothing voice bids you good morning, and as you roll out of bed, last headlines from “My News” are read to you along with today’s weather forecast, and so on.

    What do you think

    Would be cool if it also said the time, like: "Good morning <name>, (today is <date>, )it is <time>, (personal message like: "Time to get up"). It is sunny|rainy|overcast with an outside temperature of <temp>. (The sun will rise in appr. 13 minutes). Scheduled recordings for today <recordings> Today's headlines......

    Give you an Example:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <Beep beep beep> (not sure how long this would go before beginning to read)
    (Maybe a user defined mp3 could play quite in the background)
    Good morning Stefan, today is Saturday, Jan. 8th, it is 07:00 hours.
    It is sunny outside with a termperature of 5° C. Rain is forcast for the afternoon with termperatures rising to 10°C.

    The sun has risen 23 minutes ago.

    Today News at 10, Simpsons and Friends are scheduled for recording.

    Todays headlines from cnn:
    George W. Bush prepares to invade yet another country.
    MediaPortal voted best Software of the year.
    ......
    <Beep Beep>
    (play mp3(beep for a minute or so, then repeat from beggining (assuming the user is still sleeping)

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Something like this. It could utillize that sapi speech engine to read/say stuff. I think this would be very cool if made customizable in such a way. Plus with the sapi system it shouldn't be too hard I believe.....but then again what do i know :)

    Come to think of it, this could also be used as a general information plugin, like press a special button and it will read out all the above to you (regardless of an alarm).

    Anyways, keep up the great work.

    Inker

    EDIT: I have just created such an example: http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma
    It uses a SAPI voice (this one, give it a try yourself: http://www.neospeech.com/demo/demo_text.php)
    I have then simply added a beep effect and a background music.

    Now, wouldn't that be cool?
     

    merci1983

    Portal Pro
    November 13, 2004
    128
    6
    Near Bremen
    Home Country
    Germany Germany
    devo

    First i like to say how much i love your plugin. I use my htpc in my bedroom and its great with the sleeptimer. But there are three wishes for a future version.

    1. Is it possible to get longer time for the sleeptimer (i.e. 180 minutes). When possible it would be nice to set the maximum time in configuration.

    2. I would like set my own time for sleeptimer like i can set time for the alarm (i.e. Saturday at 5.00 pm i would set the sleep-timer for 1.00 am on Sunday)

    3. In combination with the sleep-timer an Option to go back to the home-screen so the power-scheduler can do his work

    Inker
    That would be really cool!!!!!!!!

    cu
    merci
     

    Users who are viewing this thread

    Top Bottom