webOS Nation Forums >  Homebrew >  webOS patches > [Patch] Snooze Times for Clock
[Patch] Snooze Times for Clock

  Reply
 
LinkBack Thread Tools Display Modes
Old 02/07/2010, 05:50 PM   #1 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default [Patch] Snooze Times for Clock

OK, so this one is pretty much a cut and paste job using the code from here.

In other words, the credit goes to Palm Engineer Matt Hornyak, but 5 months later this feature still hasn't been added to the clock which is a bit odd in my opinion...Anyhow, the original discussion can be found here.

The stock default is 10 min...With this patch, you'll have the choice of 5, 10, 15, or 20 minutes as your Clock app default.

Accepted for Preware as "More Default Snooze Times".

Preware Description: Adds more snooze times to the Preferences page for the Clock app. (based on code by Palm Engineer Matt Hornyak)

Patch creation is something I do in my spare time for myself and the Precentral community...If you use it, please take a moment to click the thanks button, as it goes a long way to keeping me motivated.
.
Attached Images
File Type: png ClockSnooze.PNG (115.3 KB, 51 views) Email Attachment
Attached Files
File Type: patch clock-add-snooze-times.patch (6.3 KB, 31 views) Email Attachment
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor

Last edited by xanthinealkaloid; 03/22/2010 at 01:57 PM. Reason: patch name change...can't do less then 5 min.
xanthinealkaloid is offline   Reply With Quote
Old 02/07/2010, 06:32 PM   #2 (permalink)
Member
 
Join Date: Apr 2009
Location: London, UK
Posts: 392
Likes Received: 0
Thanks: 46
Thanked 28 Times in 26 Posts
Default

Thank you!!

I was one of the original requesters and I will be installing this within the next few days - looking forward to it .

One question, you stated you tested it for 1.3.5.1.
I am guessing it will be okay for us on 1.3.5.2 ?
c_man is offline   Reply With Quote
Old 02/07/2010, 07:19 PM   #3 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

You're welcome.

I installed it in the emulator running the most current SDK, so I don't know of any reason it shouldn't work on 1.3.5.2.
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor
xanthinealkaloid is offline   Reply With Quote
Old 02/08/2010, 10:13 AM   #4 (permalink)
Member
 
lopezpm's Avatar
 
Join Date: Feb 2008
Location: Garden City, MI
Posts: 741
Likes Received: 0
Thanks: 24
Thanked 62 Times in 50 Posts
Default

Thanks. I've been looking forward to this one.
lopezpm is offline   Reply With Quote
Old 02/08/2010, 11:04 AM   #5 (permalink)
Homebrew Developer
 
milominderbinder's Avatar
 
Join Date: Mar 2005
Location: ↑ iPhone Black Launcher Theme
Posts: 4,593
Likes Received: 117
Thanks: 2,535
Thanked 3,156 Times in 908 Posts
Default

What was the outcome with submitting it to the Preware feed?

- Craig
__________________
- Milo
Getting StartedRingtonesVideos/MoviesPatches/ThemesMusic Player(Remix)
Battery LifeBackup/SyncingGreat Signal-AiraveiPhone ThemeForum Guidelines
milominderbinder is offline   Reply With Quote
Old 02/08/2010, 11:10 AM   #6 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

Quote:
Originally Posted by milominderbinder View Post
What was the outcome with submitting it to the Preware feed?

- Craig
It's in the Preware feed under the Clock app as "More Default Snooze Times".
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor
xanthinealkaloid is offline   Reply With Quote
Thanked By: sunshine_girl
Old 02/11/2010, 02:19 AM   #7 (permalink)
Member
 
Join Date: Apr 2009
Location: London, UK
Posts: 392
Likes Received: 0
Thanks: 46
Thanked 28 Times in 26 Posts
Default

Hi again,
I've tested this twice now - doesn't seem to work?
It just completely kills any snooze for the alarm - the alarm does not sound ever again after the first time.
I've been testing it on 3min snooze & yes, alarm preferences are enabled.

Any ideas?
c_man is offline   Reply With Quote
Thanked By: xanthinealkaloid
Old 02/11/2010, 12:33 PM   #8 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

Quote:
Originally Posted by c_man View Post
Hi again,
I've tested this twice now - doesn't seem to work?
It just completely kills any snooze for the alarm - the alarm does not sound ever again after the first time.
I've been testing it on 3min snooze & yes, alarm preferences are enabled.

Any ideas?
DUH!...I noticed at the bottom alarm.js is states that the service can't handle snooze less than 5 minutes.

I added the 3 minute option as a last minute thing.

All I can do at this point is remove the 3 minute option and submit an update to Preware...I really don't have enough time to do much more than that.

My apologies...Thanks for the feedback!

.
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor
xanthinealkaloid is offline   Reply With Quote
Thanked By: sunshine_girl
Old 02/11/2010, 01:28 PM   #9 (permalink)
Member
 
Join Date: Apr 2009
Location: London, UK
Posts: 392
Likes Received: 0
Thanks: 46
Thanked 28 Times in 26 Posts
Default

Ok no worries - thanks for the reply.

Can anyone else pick up this patch and add a 3min option?

Was the default snooze 5min?? I cannot remember...
c_man is offline   Reply With Quote
Old 02/11/2010, 01:31 PM   #10 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

Quote:
Originally Posted by c_man View Post
Was the default snooze 5min?? I cannot remember...
The stock default is 10 minutes.

Quote:
Originally Posted by c_man View Post
Can anyone else pick up this patch and add a 3min option?
Also to clarify, I'm not sure any option less 5 minutes is actually possible...It would be great if someone could qualify this statement.

.
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor

Last edited by xanthinealkaloid; 02/11/2010 at 02:01 PM.
xanthinealkaloid is offline   Reply With Quote
Thanked By: sunshine_girl
Old 03/31/2010, 11:33 AM   #11 (permalink)
Member
 
Join Date: Feb 2010
Location: Germany
Posts: 17
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Very nice idea this little patch but it doesn't work on my pre (european version, webos 1.4).
Is there any fix available?
tomm-jay is offline   Reply With Quote
Old 03/31/2010, 11:56 AM   #12 (permalink)
Member
 
xanthinealkaloid's Avatar
 
Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
Default

Quote:
Originally Posted by tomm-jay View Post
Very nice idea this little patch but it doesn't work on my pre (european version, webos 1.4).
Is there any fix available?
It's likely due to the one html file which gets patched...The only way to "fix" it would be to patch the file specific to your location.


Replacing [LOCALE] with your language code, the file path should look something like this:
Code:
/usr/palm/applications/com.palm.app.clock/resources/[LOCALE]/settings/settings-scene.html
__________________
a.k.a. Josh...

Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?

Various patches I've worked on:
Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor
xanthinealkaloid is offline   Reply With Quote
Reply

 

Tags
patch

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0