lcd4linux:plugin_file
Inhaltsverzeichnis
file plugin
This plugin allows reading of a line from a file.
Functions
file::readline('/path/to/file', line_number) |
This plugin returns up to 80 characters of a line from a file. Characters after that in the line are simply ignored.
The plugin could be a logical place to add more file operations, such as size, permissions display, etc.
Example
Widget dmesgline99 { class 'Text' expression file::readline('/var/log/dmesg', 99) width 20 align 'M' update 10000 }
lcd4linux/plugin_file.txt · Zuletzt geändert: 2022/02/15 20:09 von 127.0.0.1