1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
FREQUENTLY ASKED QUESTIONS ABOUT IRMP3
INDEX
1.0 How do I control IRMP3
1.0 How do I control IRMP3
IRMP3 can receive commands in six ways:
1. You can use LIRC to receive signals from an infrared remote control and
map those buttons to IRMP3 commands. These commands are sent directly from
the LIRC application to the IRMP3 application using LIRC's internal
client/server architecture: IRMP3 is the client, LIRC is the server.
The actual commands to be sent are defined within LIRC configuration files
which map buttonpresses to commands.
2. You can use LCDProc to receive keypresses from a serial keypad and map
those buttons to IRMP3 commands. In this case, IRMP3 internally maps
buttons to commands as defined in /etc/irmp3.conf
3. You can enter commands from stdin by compiling IRMP3 with mod_debug
enabled and starting IRMP3 with 'irmp3 -f'. Many people prefer
'irmp3 -fvv' or 'irmp3 -fvvvv' to get more verbose output.
4. You can create some "alarm environments" in irmp3.conf (env_alarm1 &
env_alarm2), which allow you to "stack" commands together, and then trigger
them with the USR1 and USR2 signals. You can trigger these commands with
'kill -USR1 <irmp3 PID>','kill -USR2 <irmp3 PID>'. In scripts, it may
be handy to try 'killall -USR1 irmp3'.
5. You can issue commands to IRMP3 via a network socket. In this case,
you must include and compile mod_netctl. Then you can send commands across
a network by connecting to the IRMP3 socket (defined in /etc/irmp3.conf)
with a client program (like telnet).
This feature allows easy control of irmp3 inside a script.
#!/bin/sh
# tellirmp3 - sends commands to irmp3
# usage: tellirmp3 [irmp3 commands]
# requires: netcat
$HOST=localhost
$PORT=9232
echo $* | nc $HOST $PORT
6. You can pass a single command to IRMP3 on the command line using
the -m startup flag.
|