![]() |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Alarms in Alarmed can be deleted with "-D 'ID'". Not sure if you can create events specifing an ID. If not, you could search the specific ID's according to characteristics and then delete them (would be a simple scripts that can be scheduled in... alarmed :)). |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
I created a bunch of alarmed items with different radio stations, & as I wish just activate and/or change the time for them as needed. Quote:
Directions toward the 'now +' feature & syntax are in the notes on the first page for ver. 0.1.8-1 Here's the chunky shell script if anyone wants to play with it. It takes 3 command line arguments: -The stream's URL -How many seconds to remain mute after connecting (in case they always play a commercial on connection) -The % (0-100) volume to set the speaker at when it plays. Some internet stations are louder than others. Code:
#!/bin/sh |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Just something I created in a few minutes:
Replace the alarm creation line with: Code:
/opt/alarmed/alarmed.py -C --title='Clockradio Safety Alarm' -A --date='now +30 minutes'|awk '{print $NF}' >> /tmp/clockalarms_ids.txt Now when this alarms can all be removed start this script: Code:
#!/bin/sh |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Thank you, ade & misiak. It is a nicely-behaved & self-contained little routine now. If anyone else would like to use it for an internet alarm clock, here's the final version.
Code:
#!/bin/sh |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
If you want to configure minutes from now:
Alarmed also accepts double quotes. So the most easy solution is to use double quotes instead of single ones, so variables get expanded. As indication: Code:
MINUTES=40 |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Thanks, ade. I might never have gotten the syntax right!
Here's the final version, if anyone would like it. Code:
#!/bin/sh I touched it up so that it could be called with just one argument, the stream URL, & default to no delay, 50% speaker volume, & a regular N900 alarm 15 minutes later in case of internet radio station silence. Either clockradio.sh StationURL or clockradio.sh StationURL Pause(in seconds) Volume(1-100) N900AlarmDelay(in minutes)" example: Code:
clockradio.sh http://109.123.116.202:8010 |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Anybody looking for an alarmclock in alarmd without writing a script.
I did a walkthough here... http://talk.maemo.org/showpost.php?p...7&postcount=10 @shaihkritzer This is posix/unix time as above, safer to edit the time in the GUI IMO. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
As I mentioned a few post ago, Code:
/opt/alarmed/alarmed.py -C -D <your_job-nr> |
All times are GMT. The time now is 05:42. |
vBulletin® Version 3.8.8