Benutzer-Werkzeuge

Webseiten-Werkzeuge


lcd4linux:plugin_fifo

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
lcd4linux/plugin_fifo.txt · Zuletzt geändert: 2022/02/19 14:31 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki