nslu2-info.de ist ein privates Projekt von mir, welches jeden Monat aus eigener Tasche finanziert wird. Mit einer freiwilligen Spende wird der Erhalt und der weitere Ausbau dieses Forums unterstützt. Um mich beim Erhalt des Forums zu unterstützen, kannst Du entweder via Flattr oder Paypal spenden. Ich bedanke mich schon jetzt bei allen Unterstützern.
wcf.user.option.userOption68: NSLU2
wcf.user.option.userOption65: Debian
Location: Weinstadt
Occupation: Technischer Zeichner
wcf.user.option.userOption68: NSLU2
wcf.user.option.userOption65: Debian
Location: Weinstadt
Occupation: Technischer Zeichner
|
|
Source code |
1 2 3 4 5 6 |
+ [ possible plugins are:] + [ apm, cpuinfo, diskstats, dvb, exec, file, gps] + [ i2c_sensors, iconv, imon, isdn, kvv, loadavg,] + [ meminfo, mpd, netdev, pop3, ppp, proc_stat] + [ python, sample, seti, statfs, uname, uptime] + [ wireless, xmms], |
|
|
Source code |
1 2 3 4 5 6 |
apt-cache search [COLOR=yellowgreen]libmpd[/COLOR] [COLOR=red]ERGEBNISS:[/COLOR] [B][COLOR=yellowgreen]libmpd-dev[/COLOR] [/B][COLOR=red][B]- High-level client library for accessing Music Player Daemon[/B][/COLOR] [COLOR=red]libmpd0 - High-level client library for accessing Music Player Daemon[/COLOR] [COLOR=red]python-mpdclient - Python interface to MPD[/COLOR] |
|
|
Source code |
1 |
apt-get install [COLOR=yellowgreen]libmpd-dev[/COLOR] |
|
|
Source code |
1 2 3 4 5 6 7 |
cd /euer/pfad/zum/lcd4linuxarchiv/ ./configure --with-plugins=mpd --with-drivers=serdisplib --without-x make make install |
|
|
Source code |
1 |
cp /etc/lcd4linux.conf cp /etc/lcd4linux.conf.backup |
|
|
Source code |
1 |
rm /etc/lcd4linux |
|
|
Source code |
1 |
nano /etc/lcd4linux.conf |
|
|
Source code |
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
Display SerDispLib {
Driver 'serdisplib'
Port 'USB:4243/ee08'
Model 'L4ME5I'
Reverse 1
}
#########################################################MPD#########
Plugin MPD {
enabled 1
server 'localhost'
port 6600
user 'mpd'
# password 'secret'
minUpdateTime 500
}
#
# display artist and album, scrolling
#
Widget mpd-artist {
class 'Text'
expression mpd::artist()
prefix 'Artist: '
width 20
align 'A'
speed scroller
update tack
}
Widget mpd-lied {
class 'Text'
expression mpd::title()
prefix 'Titel: '
width 20
align 'A'
speed scroller
update tack
}
Widget mpd-name {
class 'Text'
expression fiel::readline('/mnt/filez/s3.txt', 1)
width 21
align 'L'
update tack
}
#
# display current song id and number of total song
#
Widget mpd-posid {
class 'Text'
expression mpd::getMpdPlaylistGetCurrentId().' of ' .mpd::getMpdPlaylistLength()
width 11
align 'L'
update tack
}
#
# display 30s the mpd uptime (ex. UP:2d03h32m) then 30s the current song id and number of total songs (ex. 267 of 734)
#
Widget mpd-toggler {
class 'Text'
expression ( (mpd::getMpdUptime()%60)<31 ? ('UP:'.mpd::formatTimeDDHHMM( mpd::getMpdUptime() ) ) : (mpd::getMpdPlaylistGetCurrentId().' of ' .mpd::getMpdPlaylistLength()) )
width 11
align 'L'
update tack
}
#
# display playerstate (play, pause, stop, unknown)
#
Widget mpd-playerstatus {
class 'Text'
expression (mpd::getStateInt() == 1 ? 'PLAYING' : '').(mpd::getStateInt() == 2 ? 'PAUSED ' : '').(mpd::getStateInt() == 3 ? 'STOPPED' : '').(mpd::getStateInt() == 0 ? 'UNKNOWN' : '')
width 7
align 'L'
update tack
}
#
# get repeat/random
# example: REP/RND, REP/---, ---/RND, ---/---
#
Widget mpd-reprnd {
class 'Text'
expression (mpd::getRepeatInt()>0 ? 'REP' : '---') . '/' . (mpd::getRandomInt()>0 ? 'RND' : '---')
width 7
align 'L'
update tack
}
#
# display track position example: <00:48/04:33>
#
Widget mpd-tracktime {
class 'Text'
expression mpd::elapsedTimeSec() .'/'. mpd::totalTimeSec()
width 11
align 'A'
update tack
}
#
# display uptime of mpd, example: <0d06h51m>
#
Widget mpd-uptime {
class 'Text'
expression '-=AUDI-S3-MUSIC=-'.mpd::formatTimeDDHHMM( mpd::getMpdUptime() )
width 21
align 'L'
update 10000
}
#
# small playbar and track time
#
Widget smallMP3Bar_part1 {
class 'Bar'
expression mpd::elapsedTimeSec()
length 21
min 0
max mpd::totalTimeSec()
direction 'E'
style 'H'
update tack
}
#
# display volume
#
Widget mpd-vol {
class 'Text'
expression 'VOL:'.mpd::getVolume()
width 7
align 'R'
update tack
}
Widget smallMP3Bar_part2 {
class 'Text'
expression '/'.mpd::formatTimeMMSS( mpd::totalTimeSec() )
width 21
update tack
align 'L'
}
#
# display volume
#
Widget mpd-vol {
class 'Text'
expression 'VOL:'.mpd::getVolume()
width 7
align 'R'
update tack
}
Widget mpd-bitrate {
class 'Text'
expression mpd::bitRate().'k'
width 6
update tack
align 'L'
}
Widget mpd-status1 {
class 'Text'
expression 'Status: '.mpd::getStateInt()
width 21
update tack
align 'L'
}
Widget mpd-status2 {
class 'Text'
expression 'W: '.mpd::getRepeatInt().' Z: '.mpd::getRandomInt()
width 21
update tack
align 'A'
}
####################################################
Layout MPDGLCD {
Row1 {
Col3 'mpd-uptime'
}
Row3 {
Col1 'mpd-artist'
}
Row4 {
Col1 'mpd-lied'
}
Row6 {
Col1 'mpd-reprnd'
Col9 'mpd-tracktime'
}
Row5 {
Col1 'smallMP3Bar_part1'
}
}
Variables {
t_onesec 1000
t_500m 500
tack 500
tick 100
tacku 100
scroller 300
}
#######################################################
Display 'SerDispLib'
Layout 'MPDGLCD'
|
|
|
Source code |
1 2 3 |
chmod 600 /etc/lcd4linux.conf chown root:root /etc/lcd4linux.conf |
|
|
Source code |
1 |
reboot |
wcf.user.option.userOption68: NSLU2
wcf.user.option.userOption65: Debian
Location: Weinstadt
Occupation: Technischer Zeichner
|
|
Source code |
1 |
lcd4linux -Fvv |
|
|
Source code |
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 |
brokenslug:/# lcd4linux -Fvv Version 0.10.1-RC2-796 starting cfg.c: Warning: key <Widget:mpd-vol.class>: value <'Text'> overwritten with <'Text'> cfg.c: Warning: key <Widget:mpd-vol.expression>: value <'VOL:'.mpd::getVolume()> overwritten with <'VOL:'.mpd::getVolume()> cfg.c: Warning: key <Widget:mpd-vol.width>: value <7> overwritten with <7> cfg.c: Warning: key <Widget:mpd-vol.align>: value <'R'> overwritten with <'R'> cfg.c: Warning: key <Widget:mpd-vol.update>: value <tack> overwritten with <tack> plugin_cfg.c: Variable scroller = '300' (300) plugin_cfg.c: Variable t_500m = '500' (500) plugin_cfg.c: Variable t_onesec = '1000' (1000) plugin_cfg.c: Variable tack = '500' (500) plugin_cfg.c: Variable tacku = '100' (100) plugin_cfg.c: Variable tick = '100' (100) lcd4linux.c: initializing driver serdisplib serdisplib: $Rev: 773 $ serdisplib: header version 1.97 serdisplib: library version 1.97 serdisplib: using model 'L4ME5I' serdisplib: using options '' serdisplib: display size 128x64 initializing layout 'MPDGLCD' Evaluator: wrong number of arguments in <mpd::artist()> lcd4linux.c: starting main loop *** glibc detected *** lcd4linux: double free or corruption (out): 0x00016c88 *** Abgebrochen brokenslug:/# |



This post has been edited 1 times, last edit by "djk1o" (Dec 2nd 2010, 1:52pm)