weekalarm
Amarok 1.x Scripts
Score 50%
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

Bezierk

8 years ago

Hello

Two days ago my weekalarm didn't start when it was supposed and since then I'm unable to open the configuration page. Meanwhile I've formated and reinstalled my system and I'm now running debian testing (squeeze).

The test script opens the config dialog and in general terms it all works fine except for weekalarm. It used to open underneath amarok but right now it will simply not respond to the button.

the versions are:

Amarok - 1.4.10-3+b1
Python (minimal)- 2.4.6-2 (i also have 2.5 just in case)
Python-qt3 - 3.17.4-1
Python-qt4 - 4.4.2-4
Weekalarm - latest from amarok's "get more"

Taking in consideration that i run gnome and that amarok runs just fine: could there be any KDE component that could be missing and that's necessary?

Any help will be as appreciated as the script itself as it will make me wake up in a better mood.

Report

Bezierk

8 years ago

hi, this is an update

i've just deleted the scripts folder, reinstalled weekalarm from the get more button, activated it and clicked configure. this is the log file of these actions:
Quote:
04/28/2009 02:12:33 AM weekalarm beginning (in MainThread) [INFO]
04/28/2009 02:12:33 AM [<Thread(sdinReader Thread, started)>] (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM [<Thread(sdinReader Thread, started)>, <_Timer(Thread-1, started)>] (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM executing `amarok.player.getVolume()' (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM got `100' from amarok (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM creating config dialog (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM None (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM load config at weekalarmrc (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM Reading configuration has failed, using default (in MainThread) [WARNING]
04/28/2009 02:12:33 AM saving settings (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM t:u'null' -> 'null' (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM write config to weekalarmrc (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM update (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM weekalarm.read (in MainThread) [DEBUG]
04/28/2009 02:12:33 AM Setting timer to None seconds from now (in MainThread) [DEBUG]
04/28/2009 02:12:34 AM ^configure$ match configure (with {}) (in sdinReader Thread) [DEBUG]
04/28/2009 02:12:34 AM loading settings (in sdinReader Thread) [DEBUG]
04/28/2009 02:12:34 AM update (in sdinReader Thread) [DEBUG]

just like before no response from the button and i'm hoping this helps.

have i thanked you for writing this script?

Report

maxischmeii

8 years ago

Sorry, i don't understand what did wrong. The log doesn't give any useful infos. I don't think we need more dependencies that those needed to run Amarok, and i don't have your problem, so i'm afraid i can't help you more. Are you sure the window doesn't appear anywhere, sometimes it is behind Amarok main window, or perhaps on different virtual desktop?

Report

filpiranesi

8 years ago

Hello there from greece.
I have exact the same problem.
I upgraded to 9.04 and then uninstalled amarok 2 and installed amarok 1.4.10.
Well on 8.10 the configure page was always hiding somewhere but i could always find it.
Now it seems that it just doesn't open.
Every other script works fine on amarok exept the weekalarm.
I hope you can fix this because it is a very nice script and very helpfull!

Thanx in advance.

Report

Bezierk

8 years ago

another update, hopefully this will shed some light. i have two weekalarmrc files one located under amarok/scripts/weekalarm and another under /amarok/scripts-data

if i run amarok/scripts/weekalarm/config.py the config dialog appears and is editable and it will save the settings under amarok/scripts/weekalarm/weekalarmrc. the other weekalarmrc file will remain unchanged.

Report

filpiranesi

8 years ago

You are right..
It seems that this is the only way to run it :\

Report

maxischmeii

8 years ago

Interesting. I think it is a bug in amarok, because you two use the same (beta?) version of amarok. Amarok should start scripts in the scripts-data/ directory. You should report it on bugs.kde.org to have some expert opinion on this

Report

bitlz

8 years ago

solution:
$ ln -s ~/.kde/share/apps/amarok/scripts/weekalarm/weekalarmrc ~/.kde/share/apps/amarok/scripts-data/weekalarmrc

After creating symlink, config dialog will work.

Report

kamaraju

8 years ago

If amarok is not already running, then running the weekalarm.py produces the following errors.

$python ./weekalarm.py
12:55:16 AM weekalarm beginning [INFO]
call failed
12:55:16 AM Return code of amarok.player.getVolume() was 1 [ERROR]
Traceback (most recent call last):
File "./weekalarm.py", line 386, in <module>
main()
File "./weekalarm.py", line 379, in main
app=WeekAlarm()
File "./weekalarm.py", line 78, in __init__
self.dcop.send("player", "getVolume")
File "/home/rajulocal/weekalarm/weekalarm/amarok.py", line 40, in send
raise self.DCOPError
amarok.DCOPError
^C12:55:28 AM got EOF [INFO]
Exception exceptions.KeyboardInterrupt in <module 'threading' from '/usr/lib/python2.5/threading.pyc'> ignored


I am using Debian, python 2.5.2, amarok 1.4.10.

If amarok is already running, then there is no problem.

Report

maxischmeii

8 years ago

A new standalone program compatible with Amarok 2, xmms2, vlc and many other player is available at http://www.gtk-apps.org/content/show.php?content=95482

This is still pre-alpha, and so has only a small subset of the weekalarm features, but it works for me (tm).

Note that it is based on pygtk, so you will need to install the python-gtk package.

Report

laiseng

8 years ago

i've installed weekalarm successfully without error
but i cant seems to start it

Report

maxischmeii

8 years ago

what do you mean by not starting? do you get an error? Is there a little play icon near weekalarm?

Report

laiseng

8 years ago

No there is no error at all
I've clicked on install button and choose week alarm tar.bz2 file and it says install successful
then i dont see any week alarm icon in the list of plugins windows

Report

maxischmeii

8 years ago

Are you using Amarok 2? It only work with Amarok 1.4.x (and it probably won't work with too old versions). Also, try to install it via "get more script".

Report

jupiterzoom

8 years ago

On an AA1 netbook with screen 1024x600 I'm unable to see and use the save button at the bottom of the configuration dialogue. I discovered this only when I was using an external monitor. Is there a command I can use or could you adjust the dialogue layout?

Report

staudi009

8 years ago

The options for the modes "random" and "repeat" are misinterpreted.
"Repeat" turns on "Repeat Track", definitely wrong, I would expect "Repeat Playlist".
"Random" switched on "Random Albums", I feel correct with "Random Tracks".

Would not it be good to be able to define the modes within a ComboBox?

Regards, Staudi

Report

Hydranmenace

8 years ago

I love it. Does it or will it work with Amarok 2? Please please? :)

Report

maxischmeii

8 years ago

It will, but it could take some times.

Report

Norwat

8 years ago

weekalarm keeps crashing after a while, it does work if i set it for the next minutes but more than that it crashes :|
heres the log... i can post the hole thing offline if necessary

09-10-2008 23:11:50 ^engineStateChange\s*:\s*playing$ match engineStateChange: playing (with {}) (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 ^engineStateChange\s*:\s*(empty)$ match engineStateChange: empty (with {}) (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 exiting (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 setting finished flag (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 waiting for the finished flag (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 [<_MainThread(MainThread, started)>, <Thread(sdinReader Thread, started)>, <_Timer(Thread-2, started)>] (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 [<_MainThread(MainThread, started)>, <Thread(sdinReader Thread, started)>, <_Timer(Thread-2, started)>] (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 Joining:<_Timer(Thread-2, started)> (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 done (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:53 amarok wait returned, joining timer (in sdinReader Thread) [DEBUG]
09-10-2008 23:11:54 weekalarm finished (in MainThread) [INFO]
09-10-2008 23:11:54 [<_MainThread(MainThread, started)>] (in MainThread) [DEBUG]

Report

maxischmeii

8 years ago

This should be fixed in 1.3.3

Report

Norwat

8 years ago

and it did ^^
thanks

Report

antieuclid

8 years ago

I'm still a linux newbie, so I apologize if it's something obvious, but I can't get this script to run. I installed it through the "Get more scripts" dialog, but it just crashes with a message that "The script 'weekalarm' exited with error code: 1" Under details it says
"Traceback (most recent call last):
File "/home/wiley/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 40, in <module>
import amarok
File "/home/wiley/.kde/share/apps/amarok/scripts/weekalarm/amarok.py", line 3, in <module>
from qt import *
ImportError: No module named qt"
I'm running Ubuntu 8.04 with Gnome 2.22.3 and Amarok 1.4.9.1.

Report

antieuclid

8 years ago

Never mind, after rereading the About page I figured out to install PyQT. Sorry to bother you, and thanks for the script.

Report

Contrast

8 years ago

Looks like a really nice script - almost a whole app in and of itself, built right into Amarok. My only complaint is a good chunk of the config dialog is cut off due to my text size being set to 16. Surprisingly, resizing the window doesn't rectify this; all the widgets stay exactly as they were before resizing. I've never seen this behavior in any other Qt window. Call me lazy, but changing the text size every time I want to change the alarm settings seems like a bit of a hassle. :-)

Report

XaMou

8 years ago

1.3.2:
- fix configuration not being shown

I'm using Amarok 1.4.9.10 on Ubuntu 8.10, and the configuration windows are not bing shown :/ .

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

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.4.0
updated Oct 22 2008
added Apr 17 2005
downloads today
0
page views today 2