Apr 23
OpenWRT 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):

┌────────────────────┐
│Snuff/e Minkie Pinki│
│ Bit Cosy        │
│00:51 02:08  REP/---│
│                    │
└────────────────────┘ 
Here is my Widget configuration:

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
}

However, I wasn't able to get some Bars showing up on my display, using this Widget:
** Edit (21.11.07): this error was an lcd4linux bug and has been fixed (LCD4Linux-0.10.1-RC2, widget_bar nasty typo fixed) **

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>

Posted by michu

Defined tags for this entry: , ,

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as(Linear | Threaded)
  1. No comments

Add Comment


Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA