Table of Contents

FIFO plugin

example config

Here is my (michu / neophob.com) fifo widget config:

Plugin FIFO {
    FifoPath '/tmp/lcd4linux.fifo'
    FifoBufSize 80
}	    

Widget fifo {
    class 'Text'
    expression fifo::read()
    width 20
    align 'L'
    speed scroller
    update 500
}

...

Usage

You may use BASH to add a message to LCD4Linux:

 # echo Hello FIFO Plugin! > /tmp/lcd4lnx.fifo

Now LCD4Linux will display “Hello FIFO Plugin!”:

┌────────────────────┐
│Hello FIFO Plugin!  │
│                    │
└────────────────────┘

┌──Stderr:────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│initializing layout 'Default'                                                                                        │
│lcd4linux.c: starting main loop                                                                                      │
...

Open issues

If buffer gets overflowed, some messages get lost\

\

Redirect file to this plugin does not work yet:

tail -f /var/log/auth.log -n0 > /tmp/lcd4lnx.fifo

Result:\

[[:FIFO]] Error 11: Resource temporarily unavailable
[[:FIFO]] Error 11: Resource temporarily unavailable
[[:FIFO]] Error 11: Resource temporarily unavailable
[[:FIFO]] Error 11: Resource temporarily unavailable