ALARMED Commands List

m (Radio1 Alarm Clock: you're rather assuming people live in the uk here, just added some context)
(Radio1 Alarm Clock)
Line 8: Line 8:
Which should be all the information we need.
Which should be all the information we need.
 +
 +
==List of Phone Control commands==
 +
 +
A comprehensive list of commands for Phone Control that work as commands from Alarmed can be found at
 +
http://wiki.maemo.org/Phone_control
==Radio1 Alarm Clock==
==Radio1 Alarm Clock==
Line 14: Line 19:
  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
  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
 +
 +
==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 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.
 +
play-sound ''/path/filename.wav''
[[Category:Beginners]]
[[Category:Beginners]]
[[Category:Software]]
[[Category:Software]]

Revision as of 23:58, 11 March 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.

List of Phone Control commands

A comprehensive list of commands for Phone Control that work as commands from Alarmed can be found at http://wiki.maemo.org/Phone_control

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

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

play-sound /path/filename.wav