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

staudi009

13 years ago

Sure i had python 2.4.
Installed pyton 2.5 but the same error occur. Are there more new dependencies?
I used already previous versions of weekalarm witch are working.
Btw. the new script says:"Depends on: Python 2.2, PyQt"

Regards, Werner

Report

C

maxischmeii

13 years ago

The script need python 2.5 because it use with.

I don't quite understand what's the problem. Can you uninstall the script in amarok, install version 1.0.1 run:
python2.5 ~/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py and tell me what happen, please.

Regards.

Report

staudi009

13 years ago

Differences between old and new script are by the imports. Maybe a Hint.

Regards, Werner

Report

staudi009

13 years ago

Hi maxischmeii

Thanks.
It does from bash, can see the config-dialog. But back in Amarok the same error with DCop.

Here the output:
Quote:
ws@lnx:~$ python2.5 ~/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py
00:11:37 weekalarm beginning (in MainThread) [INFO]

00:11:37 [<Thread(sdinReader Thread, started)>] (in MainThread) [DEBUG]

00:11:37 [<Thread(sdinReader Thread, started)>, <_Timer(Thread-1, started)>] (in MainThread) [DEBUG]

00:11:37 Reading settings (in MainThread) [DEBUG]

00:11:37 Error in parsing conf file, so run configure (in MainThread) [DEBUG]

00:11:37 creating config dialog (in MainThread) [DEBUG]

00:11:37 Reading config file (in MainThread) [DEBUG]

00:11:37 Error in reading setting (in MainThread) [ERROR]
Traceback (most recent call last):
File "/home/ws/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py", line 79, in readConfig
check.setChecked(config.getboolean("Days",day))
File "/usr/lib/python2.5/ConfigParser.py", line 330, in getboolean
v = self.get(section, option)
File "/usr/lib/python2.5/ConfigParser.py", line 511, in get
raise NoSectionError(section)
NoSectionError: No section: 'Days'

Report

C

maxischmeii

13 years ago

OK , so /usr/bin/python still link to python2.4, and it is not python2.5 that execute the script but python2.4. The solution is to do
Quote:
# cd /usr/bin
# rm python
# ln -s python2.5 python
(as root of course).
You can also remove python 2.4, if you don't need it.

Report

staudi009

13 years ago

Thanks maxischmeii

That does the job


Regards, Werner

Report

rangerGR

13 years ago

with qt4 script refuses to start.
terminates with error 1.

using arch

Report

arturaz1

13 years ago

There is a bug: if you select save current playlist as alarm playlist when configuring it, save button doesn't work anymore and all values get reseted to default.

Using eeeXubuntu :)

Report

C

maxischmeii

13 years ago

Thank you. It's fixed in 1.0

Report

hooligan44

13 years ago

Hey, this is a great script I just have one comment. When using the snooze feature it pauses the currently playing song but when it resumes it restarts the song. Is this typical? Would it be possible to have it resume from where it's paused? I'm using amarok 1.4.7 one opensuse 10.3.

Report

cherry316316

13 years ago

can you write a small quick step on how to set alarm using weekalarm.

also , i tried to set alarm by click the configure button on the scriptmanager,
and when i clicked save after i have set a time and other thing, it didnt close on its own, then i click the "close window" option on the upper right corner.

to my expectation, when i again opened the configure file, all the values were again set to "0"

also, do i need to keep amarok running or can i quit from amarok.
I am using Ubuntu Gusty 7.10 gnome

thanks

Report

bfl

13 years ago

To use the script you should just have to do the following:
In Amarok:
Tools menu -> Script Manager
Select General -> weekalarm
Click Run
Click Configure
Select the days and times you want the alarm to turn on, optionally set other parameters such as playlist, snooze, etc.
Clicking save should result in the window closing and your settings being saved.

I just tried this on a new Gusty Kubuntu install and it worked for me. The only thing I can think of is that you're having trouble saving, make sure you can write to ~/.kde/share/apps/amarok/scripts-data
Also, try starting amarok from the commandline using amarokapp and see if you get any errors when you run the configuration.

Amarok needs to be running for the alarm work.

Hope this helps.

Report

atrox

13 years ago

The "Change song on startup" would be nice next to "Play random track on startup". Its function would be the same as pressing Next before starting playing, so I can use my queues, random track settings etc.

Right now I can choose only to play random song on startup, but not play the whole queue etc. Sure I can do it by editing my playlist, but doing it every time before going to bed wouldn't really be an easy task (because maybe I don't want my daily playlist to be the same as wakeup-playlist).

What do you think? :)

Report

Coq

13 years ago

Hello,

thanks a lot for this script, wich I like a lot :)

Yet I have a bug using it: because of my work, I have to change the time I wake up every week (and almost every day), and I am sometimes awaken too early... It seems like the script keeps in memory the previous time I had entered in addition to the real one.

Therefore, sometimes amarok starts playing 1 hour before the expected time (which seems to be the previous time entered), so I just pause it and go back to sleep. After that, it starts playing again at the right hour, without changing a thing. It "wakes up" twice...

I thought that exiting Amarok and launching it again solves the problem, but it didn't this week.

I am using Kubuntu 7.04 and Amarok 1.4.6.

Thanks for the good work!

Report

bfl

13 years ago

I suspect this is caused by two instances of weekalarm running: one started by the KDE session manager, and one by amarok. This should be fixed in the 0.9.1 release.

Report

Coq

13 years ago

Thanks!
I'll try this as soon as possible (starting from tomorrow :)).
I had a problem last weeks : weekalarm didn't work anymore. There was update for some Ubuntu packets saturday and it seems it works fine again now :D
I'll keep you in touch if I find anything wrong.
Anycase, than you for the idea and for the good work!

Report

JanMalte

13 years ago

It would be nice, if you can add the feature to sert a time when it fade down amarok and stop AND set a time for start playing.

Some kind of sleeptimer an wake up timer.

But now, it is a realy nice skript, which only this missing feature.

i want to go to bed with amarok, listening musik and being waked up by amarok with my musik.

Report

bfl

13 years ago

I've thought of this, but I haven't been able to think of a way to implement it without duplicating all of the time selection dialogs and adding quite a bit of complexity to the alarm function.

Is it something that you'd use for going to sleep at night, or for a nap? If it's mostly for napping I could make it work by adding a startup delay to the nap timer.

Report

JanMalte

13 years ago

Great to see that Developers look for new Ideas of the Users :)

I usually use it to going to sleep at night. With the double Code it works as i want it to work.

It would be great if you can just rebuild it and call it gotosleep and publish it. Maybe this would be better, two applications instead of one big.

Report

Coq

13 years ago

Personaly, I do this using the "stop after this song" option, available with a right click in the playlist :)

Report

JanMalte

13 years ago

Yes, i often use this too.
But then i have to make an order of the next playing songs.

Report

pompomtom

13 years ago

Me too!

I'm wondering if it's possible to rename Weekalarm, and run two instances...

Anybody reckon that might work? (not at Amarok just now...)

Report

atrox

14 years ago

Hi!

I've got a feature/option proposal :)

It would be nice if there was possibility to choose whether Amarok will play any (random) track on alarm or some certain track.

I.e. if I have my usual playlist in Amarok and I'd like Amarok to surprise me in the morning, I'd set Amarok to play "Random: tracks" and check option "Change track before playing" in WeekAlarm, so I'd get random track in the morning.

If I'd like Amarok to play some certain track, I'd leave the option unchecked, so that Amarok would continue from where it was; or I'd check the option and add some track into queue.

What do you think of that? :)

Report

polrus

14 years ago

how can i use this option-

i run the script with snooze option set to 30 min and enabled

then i go to sleep and amarok keeps playing till mornin- and when i wake up i can see a dialog "Snooze?Yes/no"


i don't think it should work like this

Report

bfl

14 years ago

Setting snooze for 30 minutes means that when the alarm goes off, the "Snooze? Yes/No" dialog pops up, and if you select "Yes", the alarm will shut off for 30 minutes letting you grab a bit more sleep. It's for the type of people who set their alarms for before they really have to get up.
Cheers,
bfl

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