I’ve compiled the SVN version of LCD4Linux (Version 0.10.2-SVN-772) and patched the mpd plugin for OpenWRT v0.9 (kamikaze).
Get the source here: lcd4linuxsvn-src.tar.bz2,
or just the PATCH.
How to install the binaries:
1) get libmpd.tar and copy it’s content 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 compile lcd4linux on your own, first copy the compiled libmpd to ./whiterussian/openwrt/staging_dir_mipsel/lib. Then grap yourself a copy of the ipk source: lcd4linux.svn-src.
Example output (ncurses):
1 2 3 4 5 6 7 | # example: # +——————–+ +——————–+ # ¦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 Widget 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 | Widget mpd-album { class ‘Text’ expression mpd::album() width 20 align ‘C’ update tack } Widget mpd-artist-album { class ‘Text’ prefix mpd::artist(‘/’) expression mpd::album() width 20 align ‘M’ speed 250 update 400 } Widget mpd-title { class ‘Text’ expression mpd::title() width 20 align ‘M’ speed 250 update tack } Widget mpd-status { class ‘Text’ prefix mpd::elapsedTime() expression mpd::totalTime() postfix mpd::getRepRand() width 20 update tack align ‘C’ } Layout L20x2 { Row1 { Col1 ‘mpd-artist-album’ } Row2 { Col1 ‘mpd-title’ } Row3 { Col1 ‘mpd-status’ } Row4 { # Col1 ‘mpd-test’ } } Variables { tack 100 tick 100 tacku 100 } </code However, I wasn’t able to get some Bars showing up on my display, using this Widget: <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> Widget MP3Bar { class ‘Bar’ expression mpd::elapsedTimeSec() length 20 min 0 max mpd::totalTimeSec() direction ‘E’ update tick } myb0x:/home/lcd4linuxsvn/src# ./lcd4linux –F –vv –ii –q Version 0.10.2-SVN-772 starting plugin_cfg.c: Variable tack = ‘100’ (100) plugin_cfg.c: Variable tacku = ‘100’ (100) plugin_cfg.c: Variable tick = ‘100’ (100) [KVV] Using station 89 [KVV] Using default port 80 [KVV] Using default refresh interval of 60 seconds [KVV] Default abbreviation setting: off eval> mpd::elapsedTimeSec() 62 eval> mpd::totalTimeSec() 126 eval> |
