I’ve com­piled the SVN ver­sion of LCD4Linux (Ver­sion 0.10.2-SVN-772) and patched the mpd plu­gin for Open­WRT v0.9 (kamikaze).

Get the source here: lcd4linuxsvn-src.tar.bz2,
or just the PATCH.

How to install the bina­ries:
1) get libmpd.tar and copy it’s con­tent to /lib (home of libmpd: http://sarine.nl/gmpc-downloads)
2) install lcd4linux.svn_0.10.1-svn-1_mipsel.ipk.
If you want to com­pile lcd4linux on your own, first copy the com­piled libmpd to ./whiterussian/openwrt/staging_dir_mipsel/lib. Then grap your­self a copy of the ipk source: lcd4linux.svn-src.

Exam­ple out­put (ncurses):

1
2
3
4
5
6
7
# exam­ple:
#   +——————–+  +——————–+
#   ¦ad/It’s A Fire      ¦    ¦ Portishead/It’s A F¦
#   ¦***           /03:48¦    ¦*********     /03:48¦
#   ¦REP/RND PLAYING 128k¦    ¦REP/RND PLAYING 128k¦
#   ¦UP:2d03h33m  VOL:100¦    ¦267 of 734   VOL:100¦
#   +——————–+  +——————–+

Here is my Wid­get configuration:

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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Wid­get mpd-album {
    class ‘Text’
    expres­sion mpd::album()
    width 20
    align ‘C’
    update tack
}

Wid­get mpd-artist-album {
    class ‘Text’
    pre­fix mpd::artist(‘/’)
    expres­sion mpd::album()
    width 20
    align ‘M’
    speed 250
    update 400
}

Wid­get mpd-title {
    class  ‘Text’
    expres­sion  mpd::title()
    width  20
    align  ‘M’
    speed 250
    update tack
}

Wid­get mpd-status {
    class  ‘Text’
    pre­fix mpd::elapsedTime()
    expres­sion mpd::totalTime()
    post­fix mpd::getRepRand()
    width  20
    update tack
    align  ‘C’
}

Lay­out L20x2 {
     Row1 {
         Col1 ‘mpd-artist-album’
     }
     Row2 {
         Col1 ‘mpd-title’
     }
     Row3 {
         Col1 ‘mpd-status’
     }
     Row4 {
#       Col1 ‘mpd-test’
     }
}

Vari­ables {
   tack 100
   tick 100
   tacku 100
}
</code
How­ever, I wasn’t able to get some Bars show­ing up on my dis­play, using this Wid­get:
<span style=“font-weight: bold;”>** Edit (21.11.07):</span> this error was an lcd4linux bug and has been fixed (LCD4Linux-0.10.1-RC2, widget_bar nasty typo fixed) **

<code>
Wid­get MP3Bar {
    class ‘Bar’
    expres­sion mpd::elapsedTimeSec()
    length 20
    min 0
    max mpd::totalTimeSec()
    direc­tion ‘E’
    update tick
}

myb0x:/home/lcd4linuxsvn/src# ./lcd4linux –F –vv –ii –q
Ver­sion 0.10.2-SVN-772 start­ing
plugin_cfg.c: Vari­able tack = ‘100’ (100)
plugin_cfg.c: Vari­able tacku = ‘100’ (100)
plugin_cfg.c: Vari­able tick = ‘100’ (100)
[KVV] Using sta­tion 89
[KVV] Using default port 80
[KVV] Using default refresh inter­val of 60 sec­onds
[KVV] Default abbre­vi­a­tion set­ting: off

eval> mpd::elapsedTimeSec()
62
eval> mpd::totalTimeSec()
126
eval>