ALARMED Commands List

(Undo revision 45770 by 70.135.114.247 (Talk) SPAM)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
-
Hi All,
+
The purpose of this article is to collect a list of [http://maemo.org/packages/view/alarmed/ Alarmed] codes for beginners to use. The idea came from a [http://talk.maemo.org/showthread.php?t=64519 talk.maemo org thread] which contained the instructions for setting up an [[#Radio1 Alarm Clock|Internet radio alarm clock]]
-
I thought it would be a great idea to power up the usability of Alarmed for novice users (such as myself). I am a (I hate this word) 'noob' and I really dont have the time to start learning linux/commands etc so am hoping that the power users here can help us 'noobs' and chuck in a few of their codes they use to make the N900 even better than it already is.
+
-
I use Alarmed but at the moment I have only 3 timed functions:
+
They should be put in the following format:
-
*Switch to silent just before I get to work (built in function)
+
-
*Switch to geral profile just after I leave work (built in function)
+
-
*Turn streaming Radio 1 on at 7:00am so my N900 is, in effect a radio alarm clock (command execution)
+
-
The latter one I was able to get working as someone posted the code for this function to work on maemo thread http://talk.maemo.org/showthread.php?t=64519 otherwise I would never have got this by myself.
+
-
So the purpose of this wiki.maemo page is if you have some brilliant codes that you use/would work on Alarmed please post them here and hopefully we will get an awesome list of codes that will power up our N900's without having to wait for apps to be created by the fantastic power users!!
+
* Name
 +
* Description
 +
* Code
-
'''
+
Which should be all the information we need.
-
''
+
-
'''If you dont have a wiki.maemo account and cant be bothered to create one please inbox me your commands and I will add them to this page.'''''
+
-
They should be put in the following format:
+
==List of Phone Control commands==
-
Name:
+
A comprehensive list of commands for Phone Control that work as commands from Alarmed can be found in the [[phone control]] article.
-
Description:
+
==Radio1 Alarm Clock==
-
Code:
+
This code will make your phone startup the [[Nokia N900|N900]] stock media player and connect to Radio 1 (UK station) using your wi-fi (wi-fi is recommended for connection to be made). It is a good idea to set up a regular alarm clock for 5 mins after just in case there is an internet connection error ... wouldn't want you to be late for work.
-
Which should be all the information we need.
+
dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:http://www.bbc.co.uk/radio/listen/live/r1.asx > /dev/null
 +
 
 +
==Internet Radio Alarm Clock using KMPlayer==
 +
 
 +
If you have KMPlayer installed, you may find it less prone to halting from buffering issues than the stock Media Player.  Add this as a Command Execution string in Alarmed to play an internet radio stream's URL (in this case, the stream for WCLV):
 +
 
 +
/opt/kmplayer/bin/kmplayer http://auggie.wclv.com/wclvmp3
 +
 
 +
==Set Speaker Volume==
 +
You may want to set the speaker volume to a certain level before starting an internet radio station.  50 in the command below sets the volume level to 50%, replace 50 with whatever % volume is desired (0 - 99).
 +
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:50
-
I will start off with the Radio alarm clock one I use.
+
==Play a sound file==
-
'''Name:'''Radio1 Alarm Clock
+
This uses the play-sound command to play a sound file.
-
'''Description:''' This code will make your phone startup the N900 stock media player and connect to Radio 1 using your wi-fi (wi-fi is reccomended for connection to be made). It is a good idea to set up a regular alarm clock for 5 mins after just in case there is an internet connection error ... wouldnt want you to be late for work.
+
'''Important note: play-sound always plays a sound file at full volume, regardless of the volume set by command or by use of the volume rocker.''' Therefore it is essential when calling a file with play-sound to be sure the file is recorded at the volume that is desired for playback. Typical sound files will be at the level of 0 or -3 dB attenuation, which can blow speakers at full volume. If you call a sound file with play-sound, it's best to make a new copy of the file at much lower volume using sound editing software such as GoldWave (or audacity on Linux+Mac+Windows, or 'sox' on the command line for any of those systems with "-v <ratio>" option)
 +
play-sound ''/path/filename.wav''
-
'''Code:''' dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:[url]http://www.bbc.co.uk/radio/listen/live/r1.asx[/url] > /dev/null
+
[[Category:Beginners]]
 +
[[Category:Software]]

Latest revision as of 02:47, 22 November 2011

The purpose of this article is to collect a list of Alarmed codes for beginners to use. The idea came from a talk.maemo org thread which contained the instructions for setting up an Internet radio alarm clock

They should be put in the following format:

  • Name
  • Description
  • Code

Which should be all the information we need.

Contents

[edit] List of Phone Control commands

A comprehensive list of commands for Phone Control that work as commands from Alarmed can be found in the phone control article.

[edit] Radio1 Alarm Clock

This code will make your phone startup the N900 stock media player and connect to Radio 1 (UK station) using your wi-fi (wi-fi is recommended for connection to be made). It is a good idea to set up a regular alarm clock for 5 mins after just in case there is an internet connection error ... wouldn't want you to be late for work.

dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:http://www.bbc.co.uk/radio/listen/live/r1.asx > /dev/null

[edit] Internet Radio Alarm Clock using KMPlayer

If you have KMPlayer installed, you may find it less prone to halting from buffering issues than the stock Media Player. Add this as a Command Execution string in Alarmed to play an internet radio stream's URL (in this case, the stream for WCLV):

/opt/kmplayer/bin/kmplayer http://auggie.wclv.com/wclvmp3

[edit] Set Speaker Volume

You may want to set the speaker volume to a certain level before starting an internet radio station. 50 in the command below sets the volume level to 50%, replace 50 with whatever % volume is desired (0 - 99).

dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:50

[edit] Play a sound file

This uses the play-sound command to play a sound file.

Important note: play-sound always plays a sound file at full volume, regardless of the volume set by command or by use of the volume rocker. Therefore it is essential when calling a file with play-sound to be sure the file is recorded at the volume that is desired for playback. Typical sound files will be at the level of 0 or -3 dB attenuation, which can blow speakers at full volume. If you call a sound file with play-sound, it's best to make a new copy of the file at much lower volume using sound editing software such as GoldWave (or audacity on Linux+Mac+Windows, or 'sox' on the command line for any of those systems with "-v <ratio>" option)

play-sound /path/filename.wav