Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== FIFO plugin ====== ===== example config ===== Here is my (michu / neophob.com) fifo widget config: <code> Plugin FIFO { FifoPath '/tmp/lcd4linux.fifo' FifoBufSize 80 } Widget fifo { class 'Text' expression fifo::read() width 20 align 'L' speed scroller update 500 } ... </code> ===== Usage ===== You may use BASH to add a message to LCD4Linux: <code> # echo Hello FIFO Plugin! > /tmp/lcd4lnx.fifo </code> Now LCD4Linux will display "Hello FIFO Plugin!": <code> ┌────────────────────┐ │Hello FIFO Plugin! │ │ │ └────────────────────┘ ┌──Stderr:────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │initializing layout 'Default' │ │lcd4linux.c: starting main loop │ ... </code> ===== Open issues ===== If buffer gets overflowed, some messages get lost\\\ \\\ Redirect file to this plugin does not work yet: <code> tail -f /var/log/auth.log -n0 > /tmp/lcd4lnx.fifo </code> Result:\\\ <code> [[:FIFO]] Error 11: Resource temporarily unavailable [[:FIFO]] Error 11: Resource temporarily unavailable [[:FIFO]] Error 11: Resource temporarily unavailable [[:FIFO]] Error 11: Resource temporarily unavailable </code> plugin_fifo.txt Last modified: 2020/07/17 18:33(external edit)