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

C

maxischmeii

12 years ago

The fix is simply to show the dialog when user click very soon on the configure button. Are you sure it doesn't show? it may pop under amarok, especially on a gnome environment.

Report

stevenjoseph

12 years ago

this script was good ... now t just kills my system everytime i start it ... X crashes and system hangs. whats going on ????

Report

stevenjoseph

12 years ago

Sorry about this post. My system was crashing because i ran out of space on /, because my backup drive did not mount .
It was NOT because of week alarm i guess when it tried to write data it must have run out of space completely.

I sincerely apologize.

Report

C

maxischmeii

12 years ago

Hi, i would need some info:
* The content of ~/.kde/share/apps/amarok/script-data/weekalarm.log
* The version of PyQt you use
* Version of python


You can send all this by mail if you want.

Thank you.

Report

defenderBG

12 years ago

I can reproduse the problem of not having of not having start and cancel button as well. And I can reproduse it on 2 systems.
Not only this, changing from 1.20 to 1.31 brings yet another problem. When I press configure the window is not shown unless I have started amarok from a console.
I know that changing from python 2.4 to 2.5 has opened quite a lot of problems, but can you please support an older version (or actualy all older versions), so that I can try them and find out which one works for me.
Thanks in advance

Report

C

maxischmeii

12 years ago

And i didn't understand what you said about python: As the README says, weekalarm support python 2.4, which is the oldest maintened version of python. I don't think many person still use python2.3.

Report

C

maxischmeii

12 years ago

I think i have fixed your second problem.

For the save and cancel buttons, it may be caused by an outdated version of python-qt, but i don't really know. Was it working with a precedent version? On what distrib are you?

Report

kdefish

12 years ago

I love this script. Will it be available for Amarok 2 any time soon? Just wondering...

Report

C

maxischmeii

12 years ago

The support of amarok 2 will need a complete rewrite, and the api is not finished yet, so be patient...

Report

vrghost

12 years ago

Is seems like the script lacks a Save and a Cancel button on my machine.

I am using 64Studio
KDE4
Python 2.4.4

Report

C

maxischmeii

12 years ago

Do you have screenshot ?

Report

pfmiller

12 years ago

I modified my copy of weekalarm so that the alarm is disabled when Amarok is already playing. The reason for this is that on occasion I have woken up early and started listening to something, and then the alarm goes off and interrupts what I am listening to.

I can't imagine a time when you would want the alarm to go off when something else is already playing so I didn't bother adding an option for it in the preferences.

Report

SugarFree

12 years ago

When I'm going to bed I like to listen to an irternet radio so I set Amarok to repeat one stream all the time because sometimes i loose connection with this station. Your Wakeup alarm is set to "Save current playlist for alarm playlist" and "Random mode" so when it starts it sould change play mode from "repeat one track" to "random tracks" but it doesn't. Every time I wake up there is one randomly choosed track going round and round :/

Another ?bug/suggestion?. When you clik "Configure" in "Script Manager" "WeekAlarm Configuration" window opens under an Amarok window while it should appear above all of windows.

I miss goodnight funkcions. Like "fade out after X minutes and stop plaing" and so.. Hope those will come in future ;)

But overall - great job ;)

// I use Amarok 3.5.9 at KDE 4.0.3 from Kubuntu 8.04 KDE 4 Remix

Report

C

maxischmeii

12 years ago

Thank you for your comments, I don't have much time now but i will look at this as soon as i have some time

Report

ChesterKatz

12 years ago

Is it possible to configure WeekAlarm to use a Smart Playlist or a Dynamic Playlist? In "Wakeup Options" I only see the option to set to the current playlist or a static playlist from a file.

I have some specific Smart/Dynamic Playlists that I'd like to wake up to, but I can't see any way to do that with the current script.

Report

C

maxischmeii

12 years ago

Unfortunately, I don't think it's possible with the current dcop interface. Maybe this will be possible in Amarok 2 (but I doubt).

Report

ChesterKatz

12 years ago

I can get Smart and Dynamic Playlists to load via DCOP:

dcop amarok playlistbrowser loadPlaylist playlistName

The one thing that I can't seem to do is get Amarok to return an actual list of the available playlists. I pored over the list of functions available, and nothing seems to fit. These playlists don't seem to be stored in the database either, so querying is pointless as well.

Could you perhaps add a text field for a playlist name? This would require the user to know the actual name of his desired playlist, so it's not as ideal as selecting from some sort of list would be. Still, it's better than nothing.

Report

ucal

12 years ago

Thanks. I installed nearly every python qt package I could find, but I guess I missed that one.

Report

ucal

12 years ago

Every time I try and run the script, I get this error:

file "/home/me/.kde/share/apps/amarok/scripts/weekalar/weekalarm.py",line24, in <module>

import amarok

file "home/me/.kde/share/apps/amarok/scripts/weekalarm/amarok.py" line 1, in <module>

from qt import*

ImportError: No module named qt.

Any ideas?

Report

C

maxischmeii

12 years ago

You need the PyQT bindings. In Ubuntu, they are available in the python-qt3 package. You can also dowload it directly from http://www.riverbankcomputing.co.uk/software/pyqt/intro

Report

apfritts

12 years ago

Hi,

I am running Python 2.5, Amarok 1.4.8 and PyQt 3.17.4 and PyQt4 4.3.3. When I try to configure the weekalarm from Amarok, nothing comes up. When I run weekalarm from the command line, I get this output:

23:03:22 weekalarm beginning [INFO]
Traceback (most recent call last):
File ".kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 572, in <module>
main()
File ".kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 565, in main
app=WeekAlarm()
File ".kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 263, in __init__
self.dcop.send("player","getVolume")
File ".kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 60, in send
stdin = subprocess.PIPE ,stdout=subprocess.PIPE
File "/usr/lib/python2.5/subprocess.py", line 593, in __init__
errread, errwrite)
File "/usr/lib/python2.5/subprocess.py", line 1079, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Report

C

maxischmeii

12 years ago

It seems that you don't have dcop installed (or it is not in your PATH). what does "which dcop" return?

Report

apfritts

12 years ago

Figured it out....In Gentoo with KDE 4: for some reason the /usr/kde/3.5/bin path has been excluded from my PATH variable...which makes dcop unreachable. I haven't been able to figure out how to fix this, since /usr/kde/3.5/bin is in my PATH when I login from the basic console, but in Konsole, it is all messed up.

http://forums.gentoo.org/viewtopic-p-5046857.html

Report

staudi009

13 years ago

Hi maxischmeii

Tried this new version, but after starting it stops with:
File "/home/user/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 187
class DcopAmaroK():
^
SyntaxError: invalid syntax


Regards, Werner

Report

C

maxischmeii

13 years ago

Thank you. This script need python 2.5 at least. Your python interpreter is probably older.

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 1
System Tags addon