weekalarm

Amarok 1.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

Versatile alarm script for Amarok. Includes the ability to set different alarm times for each day, control volume fading, use wakeup playlists, enable snoozing, and take a nap.
Last changelog:

12 years ago

1.4.0:
- nl translation (thanks to garo)
1.3.3:
- fix crash when amarok stop playing
1.3.2:
- fix configuration not being shown
1.3.1:
- Fixed problems with accents in the playlist box.
1.3.0:
- French translation
- Italian translation (thanks to Guybrush88)
- some minor bugfixes
1.2.0:
- Added dynamic playlists support
- Repeat option
1.1.1
- Retro-compatibility with python 2.4
- bugfixe (handling volume option)
1.1
- Adding some options: volume update when fading; stop fading when amarok is stoped or paused, etc.
- some bugfixes
- reorganisation of gui
1.0.1
-updated README. we need python 2.5.
1.0.0 Rewrittal of much code
- fading stop when amarok pause, stop or has it's volume changed. To work with replaygain, an option is added to decrease sensibility
- stop more cleanly when killed by amarok
- somme bugfixes to avoid problems with accents
0.9.1 Bugfixes
- disable launch by KDE session manager
- fix custom playlist startup
0.9
GUI and code overhaul. Added option for random track on startup. There are many changes in this version, please let me know if you encounter any bugs.
0.6.1
*Hotfix* fix custom playlist startup
0.6
- changes to volume fading (bug fixes and feature add)
0.5.1
- use kdialog so snooze pops into foreground
0.5
- added snooze feature

dasbooter

14 years ago

oops after some playing around I have found that using your own custom playlist or the save the current playlist options causes the right playlist to queue but it does not play on its own?

Using amarok 1.4 beta 3
and Python 2.4.1

Report

bfl

14 years ago

Thanks for the tip, fixed this for 0.6.1. It worked previously, and then I broke it for 0.6.

Report

dasbooter

14 years ago

Totally watching this page with eager anticipation. Thanks for the added option "increase volume in time interval"

Now crumpling my own bad hack alarm bash script and tossing in garbage and implementing your wonderful alarm script. I am still going to have to figure out this problem with replay gain perhaps a simple script to disable it for the duration of this alarm script or maybe this problem is fixed as I havent even tested it out anyways thanks again for the new option :) (Bows low and hits the good vote button)

Report

dasbooter

14 years ago

This is just the thing I need unfortunately it has a battle with the replaygain script on my system.Perhaps you could stop the replaygain script then reenable it when the volume is finished changing
dcop amarok script stopScript amarok_replaygain.py

then

dcop amarok script runScript amarok_replaygain.py

Also a feature request would be to add an option to change the amount of time it takes for the volume to increase or decrease.Thanks ever so much sorry if this is repeated the server is slow or I am not doing something right ;)

Report

dasbooter

14 years ago

This is perfect except for one thing... this sucker has an all out battle for supremacy with the replaygain script on my system.Maybe you could have your script disable replaygain at the beginning and reenable at the end.

dcop amarok script stopScript amarok_replaygain.py

then

dcop amarok script runScript amarok_replaygain.py

Also would it be possible to set the time it takes for the volume to increase or decrease as the case may be. Pretty please and thanks

Report

bfl

14 years ago

>Maybe you could have your script disable replaygain at the beginning and reenable at the end.

I'd rather not start disabling other scripts from within the script. If you would like to add it in yourself, the function you are looking for is
def fadeVol(self,start,step,stop)
Just add the line
system('dcop amarok script stopScript amarok_replaygain.py')
before the "for i in range" line, and add
system('dcop amarok script runScript amarok_replaygain.py')
after the "time.sleep" line.

> would it be possible to set the time it takes for the volume to increase or decrease

I added this to the 0.6 release, enjoy!

Report

exclude

15 years ago

Maybe you cound cindider to copy the coplete UI and functionality to a 'stop playing' tab.

I often go to bed with some nice bedtime music. It would be great not to have to wake up at 03.00 only to find the music is still playing :)

Report

bfl

15 years ago

I think you can do this already. Head over to the volume tab and check "slowly decrease the volume and stop player".
Cheers.

Report

charliecompany

15 years ago

I am trying to use this with Python 2.4 and it doesn't want to activate the alarm at the time I set it for. Would it be possible for this to work or would I need to go back to python 2.3?

Report

bfl

15 years ago

I'm using python 2.4, and it works alright for me. Can you email some more info on the problems you're having? Thanks.

Report

McQuaid

15 years ago

Hey thx for adding this feature! very cool. My only issue is the pop up asking for snooze/awake does not pop up. It stays minimised for me. I'd like it to pop up for me and have focus so I can bind alt s to my remote. Maybe it's a kde issue on my end not having something set up for it to get focus, I'll play around. Just wanted to let you know. I'm still on amarok 1.2.4, maybe this isn't an issue in 1.3

Report

bfl

15 years ago

This should be fixed in 0.5.1. I resorted to using kdialog instead of a custom class; it's probably simpler and better that way anyhow.

Report

bfl

15 years ago

I noticed this same thing. I think the problem is that the snooze popup dialog is a child of the script manager window, so if the script manager is in the foreground the snooze dialog will popup into the foreground, otherwise it stays minimised. If anyone knows how to get around this please let me know. I'm sure there's some Qt window flag that I can set: looks like I'll be doing some documentation browsing ;)

Report

McQuaid

15 years ago

I've tried a few of the alarm plugins for xmms and beep media player and now came across yours.

What I'd love to have is a snooze feature.
For example, I have a rf remote hooked up to my computer that works in linux. I'd love to be able to push a key on the remote and have the alarm 'snooze' only to be started again in X amount of minutes.

So say a check box to enable snooze.
A key to activate snooze. Something like space or even user configurable would be great.
And then a box to set the amount of minutes when the alarm would come out of snooze mode and start to play again.

Maybe this is out of the scope of what you want to provide but I think it would be a great feature that's missing in all the other alarm plugins. I really need to learn to code to be able to do this myself :)

Report

bfl

15 years ago

That's a good idea, and I think it would be doable. I'll look into it when I get a chance.

Report

bfl

15 years ago

Version 0.5 has the snooze feature added. When the alarm triggers, a little dialog box pops up asking if you want to snooze or wakeup. I didn't make the snooze key user configurable - mostly because I don't know how. Snooze is the default button on the dialog, so space and enter should work the same as clicking.
It works for me, so test it out if you get a chance and let me know if you have any problems.

Report

jimmybfan

15 years ago

I get this error when i try and configure the script

File "/home/matt/.kde3.4/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 428, in timerEvent
self.configure()
File "/home/matt/.kde3.4/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 433, in configure
self.dia = ConfigDialog()
File "/home/matt/.kde3.4/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 178, in __init__
self.listPick.setSizePolicy(0,0,True)
TypeError: argument 1 of QWidget.setSizePolicy() has an invalid type

Any ideas as to what is going on?

Report

bfl

15 years ago

Thanks for the heads up, fixed this in version 0.3.1.

Report

jimmybfan

15 years ago

hey. thanks for the quick reply, but now i get another error when i try and save the settings.

File "/home/matt/.kde3.4/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 280, in saveConfig
self.config.set("Playlist","playlist",self.pl)
AttributeError: pl

Report

Superstoned

15 years ago

ask the amarok dev's to include this script by default! its cool...

Report

stormking

15 years ago

When I activate the script in amarok, it starts altering the volume, even when it's not "wakeup-time".

Report

bfl

15 years ago

Thanks, for some reason launching the config triggers the alarm. I'll fix this as soon as I can. Hopefully by this weekend.

Report

bfl

15 years ago

Figured out the problem and fixed it. I'm going to hold off on releasing the new version until I get the "wakeup playlist" implemented.

Report

stormking

15 years ago

Can you add the possibility to load a custom "wakeup-playlist" before starting the playback.

Report

bfl

15 years ago

That's a good idea! I'll look into seeing how I could implement this.

Report

12 years ago

1.4.0:
- nl translation (thanks to garo)
1.3.3:
- fix crash when amarok stop playing
1.3.2:
- fix configuration not being shown
1.3.1:
- Fixed problems with accents in the playlist box.
1.3.0:
- French translation
- Italian translation (thanks to Guybrush88)
- some minor bugfixes
1.2.0:
- Added dynamic playlists support
- Repeat option
1.1.1
- Retro-compatibility with python 2.4
- bugfixe (handling volume option)
1.1
- Adding some options: volume update when fading; stop fading when amarok is stoped or paused, etc.
- some bugfixes
- reorganisation of gui
1.0.1
-updated README. we need python 2.5.
1.0.0 Rewrittal of much code
- fading stop when amarok pause, stop or has it's volume changed. To work with replaygain, an option is added to decrease sensibility
- stop more cleanly when killed by amarok
- somme bugfixes to avoid problems with accents
0.9.1 Bugfixes
- disable launch by KDE session manager
- fix custom playlist startup
0.9
GUI and code overhaul. Added option for random track on startup. There are many changes in this version, please let me know if you encounter any bugs.
0.6.1
*Hotfix* fix custom playlist startup
0.6
- changes to volume fading (bug fixes and feature add)
0.5.1
- use kdialog so snooze pops into foreground
0.5
- added snooze feature

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.0
updated Oct 22 2008
added Apr 17 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon