Alarm

Amarok 2.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

4
Score 47.5%
Description:

Let your favorite music wake you up or put you to sleep.

This is the first second public version of this script, which gives you the much-requested functionality to play music at preset times.

[indent]Features:[/indent]
- Two alarms to configure
- You can determine initial and final volumes for your alarm
- Ability to control the speed of the volume changes
NEW as for 0.9
- Option to keep volume as it is for the initial value
- Now you can start an alarm in the same minute
- Ability to stop running alarms

[indent]Known Bugs/Issues[/indent]
- Overlapping times for the alarms = chaos
- The alarm will play the current playlist, there is no option to choose a different playlist for each alarm.
- The transition times are a little off (~20 sec)

Please leave your feedback (and votes) along with suggestions, feature requests and anything else. Thanks!
Last changelog:

10 years ago

0.9

-Added stop button
-Added status line
-Checkbox to keep volume as-is
-Alarm settings now get saved (!!!!)
-Fixed many other small things
-New screenshot


0.8
-Initial release

lengau

8 years ago

Thanks for the awesome script!

One thing I really would like to see is the ability to set a playlist to play when the alarm goes off. Ideally, I could choose a playlist from the automatic playlist generator. I made a playlist that wakes me in the morning, but I don't like that I still have to set it manually.

Report

sukharevd

9 years ago

Why alarm doesn't work after rebooting my computer? I've just settled turning my computer on by timer and... after Ubuntu finished loading (it was before alarm time), Amarok wasn't started.

Report

per

9 years ago

Thanks for this script. It wakes me up in the mornings :). A tip to make it even better is to be able to tell which weekdays I want the alarm. As it is now I turn it off Fridays and turn it back on Sundays to not be woken early in the weekends. It could even be configured to start different times for different weekdays. Something similar to this script for Amarok 1: http://kde-apps.org/content/show.php/weekalarm?content=23160

Report

fandingo

9 years ago

Great script, I really like it. There's a couple things that I think are confusing to new users.

1) When configuring the alarms, there is a save button (good) and a "cancel" button. Since the dialog does not close when "save" is clicked, it is unintuitive to click "cancel" after saving. Perhaps changing it to "close" would be more clear.

2) I like the info box that appears, but it is also a little unclear. Do I need to leave amarok running for the alarm to activate? I think clarifying the text would be fairly easy. Hate to have someone miss work because they misunderstood "alarm's" abilities.

Thanks for the script; previously I had to use kalarm+vlc, which was a pain.

Report

fcool

9 years ago

Hi Gabriel!

Gratulation for this great script!

Wouldn't it be even better, if it could wake up the computer (if he supports ACPI-RTC wake up)?

HINT:

use
echo UTCTIMESTAMP > /sys/class/rtc/rtc0/wakealarm
to store an alarm. If the boards accepts alarms you can read the stored alarm in
/proc/driver/rtc

Report

C

tog000

9 years ago

Hi there Ferd!
Thats actually a super cool idea! I had no clue that acpi had that feature... I'm currently testing the auto resume on my computer, hopefully i'll get it working reliably and then add the functionality to the script.

Thanks a lot for your suggestion!

Report

wizzi

10 years ago

you can add ticks by patching with the following

*** main.js Tue May 5 01:52:02 2009
--- main.js.new Tue Jul 7 23:17:52 2009
***************
*** 179,184 ****
--- 179,186 ----
g.objectName="init_vol";
g.orientation = Qt.Horizontal;
g.maximum=100;
+ g.tickInterval = 10;
+ g.tickPosition = QSlider.TicksAbove;
g.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Fixed);
l.setWidget(1,QFormLayout.FieldRole, g)

***************
*** 202,207 ****
--- 204,211 ----
h.objectName="final_vol";
h.orientation = Qt.Horizontal;
h.maximum=100;
+ h.tickInterval = 10;
+ h.tickPosition = QSlider.TicksAbove;
h.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Fixed);
l.setWidget(3,QFormLayout.FieldRole, h)

Report

plaristote

10 years ago

I have a bug with the Mandriva 2009.1 version of Amarok 2.

At first, I had no menu entry in order to open the configuration panel...
So I looked in the Alarm sources and tried to execute some of this : I managed to make the menu entry appear, but not to make the connexion with the function onConfigure (it tells me that onConfigure isn't defined).

No way to understand what's wrong with it.
Anyway, glad to see this add-on ! The world need this feature.

Report

C

tog000

10 years ago

Thanks! :D
Try the new version, hopefully it will fix the problems you're experiencing.
If they continue, contact me, we need to get that script running on your computer ;)

Report

plaristote

10 years ago

It works hahaha ! IT'S ALIVE !

Thanks a lot ! I began searching that feature something like one month ago, never suspected there was a Amarok script doing that !

Report

rangerGR

10 years ago

Great script. Very useful. But it doesn't work after updating amarok to svn (amarok 2.1 betas).
Debug shows:

amarok: [ScriptManager] [ERROR!] Script Error: "01:46:50 Error: Function.prototype.connect: ambiguous connect to KAction::triggered(); candidates are
triggered()
triggered(bool)
triggered(Qt::MouseButtons,Qt::KeyboardModifiers)
Use e.g. object['triggered(Qt::MouseButtons,Qt::KeyboardModifiers)'].connect() to connect to a particular overload on Line: 177"

Report

krohlas

10 years ago

The problem is not Amarok 2.1 but Qt 4.5. So please update soon, as for users of Amarok 2.0.1 this leads to a crash on startup...

Report

C

tog000

10 years ago

New version is out, please try it out on your system. Its working on mine with Qt4.5

Report

C

tog000

10 years ago

Thanks for pointing it out. I'm aware of this and its fixed in my 'local' version. I will be uploading the new version that fixes this along with a few new features shortly.
Thanks for your patience!

(to make amarok work, you can delete $HOME/.kde/share/apps/amarok/scripts but you have to be aware that it will delete all other scripts also)

Report

rangerGR

10 years ago

Thanks for the answer.

I just disabled the script, no need to unistall it.

Report

C

tog000

10 years ago

Please try the new version. These problems should be fixed.
Thanks!

Report

infectedsoundsystem

10 years ago

Thought it wasn't working at first when I tested it with a time 1 minute in the future, until I realised that it won't start for alarms less than 2 minutes from the current time.

Works really well otherwise - thanks for this, it's been the only thing I've been missing from Amarok 2. :)

Report

C

tog000

10 years ago

Thanks for your message!
The new version is out, it carries a few improvements, one of them being that now you don't have to wait the minute for it to start, the alarms start just in time.
I recommend you to try it

Report

10 years ago

0.9

-Added stop button
-Added status line
-Checkbox to keep volume as-is
-Alarm settings now get saved (!!!!)
-Fixed many other small things
-New screenshot


0.8
-Initial release

12345678910
31
product-maker dgalecki Mar 09 2011 3 bad
product-maker aminesay Jan 09 2011 3 bad
product-maker Scamandrio Nov 02 2010 3 bad
product-maker MetalByte Nov 01 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
dgalecki
Mar 09 2011
Draget
Oct 06 2010
Mada
Aug 13 2009
scriper
May 09 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.9
updated May 05 2009
added Apr 15 2009
downloads 24h
1
pageviews 24h 1
System Tags addon