Txt2osd
Aus M740 WikiWeb
Inhaltsverzeichnis |
Übersicht
Betriebssystem: MIPS-Linux (läuft auf der Box)
Homepage: Noch keine
Aktuelle stabile Version: 0.06 (2/2006)
Aktuelle Testversion: txt2osd-0.06.tgz
Download: Txt2osd V0.06
Dokumentation: txt2osd -h und Readme
zugehörige Threads: http://www.m740.de/forum/showthread.php?t=2863
Feature Request: colomy
Funktionen
Mit dem Programm txt2osd lassen sich farbige Text-Meldungen via TCP-Verbinungen mit Port 10102 (default) auf dem Fernseher darstellen. Vergleiche auch menu2osd, srt2osd und sndcmd.
Aufruf über bash:
echo txt2osd Hello World > /dev/tcp/m740av/10102
Roten "TEXT" in Schriftgröße 20 für 3 Sekunden zentriert anzeigen über bash:
echo txt2osd -s 20 -d 3000 -f ffff0000 -x -1 -y -1 TEXT > /dev/tcp/m740av/10102
Aufruf direkt auf der Box (z.B. über Key-control-Makro):
txt2osd "`df | grep USB-HDD-1`"
Aufruf über Windows-Cmd (benötigt das Programm netcat):
echo txt2osd Hello World |nc m740av 10102
Aufruf über http (z.B. per wget von einer FritzBox aus)
wget -O /dev/null "http://m740av/cgi-bin/usb/txt2osd?Anruf%20von%20${caller}%20auf%20${called}"
(Quelle: tlorenz)
Dazugehörendes Script txt2osd z.B. unter /usb/htdocs/cgi-bin/
#!/bin/sh line=`httpd -d "$QUERY_STRING"` /usr/bin/txt2osd -s 30 -d 15000 -f ffff0000 -x -1 -y -1 $line
m740av steht für die IP-Adresse der Box.
Voraussetzungen
- Netzwerkverbindung zur Box
- M740AV mit Lemmis Firmware ab Firmware 2.00.51.lemmi
Installation
- Wird mit Lemmis Firmware ab Firmware 2.00.51.lemmi mitgeliefert
- Konfiguration und Start über /var/etc/lemmi-settings.txt
Optionen
Folgende Optionen werden unterstützt (V0.06):
txt2osd [options] the text to display
- as text to display uses stdin as source for the text
-s FontSize size of the screen fon in pixel (default=20)
-t FontFile the true type font file (default=/data/SISAN06.TTF)
-f FG foreground color 0xTTRRGGBB (default=FFFFFFFF)
-b BG background color 0xTTRRGGBB (default=7F000000)
-c Delay time before text is displayed ms (default=0)
-d Delay time to display text in ms (default=2500)
0 ms: exit without removing the text
-e Delay time period for flashing the displayed text in ms (default=0)
-r clear screen before displaying text
-o clear screen after displaying text
-p Port server socket port to receive commands (default=0)
if not 0 the server socket waits for connections forever
send strings to this socket using the command line syntax
e.g. echo -n txt2osd -s 50 my text > /dev/tcp/localhost/9999
-x X x coordinate (default=0)
-1 for centered, -2 for right aligned
-y Y y coordinate (default=0)
-1 for centered, -2 for bottom aligned
FG,BG: 32 bit hex value
TT 8 bits transparency
RR 8 bits red
GG 8 bits green
BB 8 bits blue
-h Diese Hilfe

