[Lcdproc] Client questions
Uli Brueggemann
uli.brueggemann@gmail.com
Tue Apr 17 18:36:02 2007
------=_Part_76106_27900413.1176834934592
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Peter,
thanks.
In the meantime I have recognized that the description of how to send
commands to the server is in the development document.
This already has allowed me to modify a C client and to achieve the display
I like to get. Including the possibility to run the program with the text to
show as command parameters. This is not too complicated.
What I anyway like to get rid of is the server message if no client is
running. I know I can disable the LCDd display when a client is on. But if I
like to switch of a client or if I simply start LCDd first in the
initialization then the upcoming server message is not ok for me. It would
be great if the ServerScreen parameter in LCDd.conf would allow to switch
off.
Uli
On 4/17/07, Peter Marschall <peter@adpm.de> wrote:
>
>
> On Tuesday, 17. April 2007 09:00, Uli Brueggemann wrote:
> > Hello,
> >
> > I've seen some discussion about the Perl client tail.pl
> > So I understand that I can show some text of a file on a display.
> >
> > I have tried to do this and I have got some questions now:
> > My display has two lines only (imon). tail.pl displays in the first line
> a
> > header message with the filename.
> > I guess this is achieved by the two lines:
> > print $remote "widget_add tail title title\n";
> > print $remote "widget_set tail title {Tail: $filename}\n";
> >
> > Now I do not want to get this header. If I comment these two lines then
> I
> > get an empty first line only showing a # at the line end with a
> heartbeat.
> >
> > How to get rid of the header and how to show a meaningful line of the
> input
> > file in the first display line?
> >
> > Also: can the heartbeat get stopped?
>
> Please read:
> http://lcdproc.sourceforge.net/docs/current-dev.html#language-screens
> It should answer both questions.
>
> Hope it helps
> Peter
>
> --
> Peter Marschall
> peter@adpm.de
> _______________________________________________
> LCDproc mailing list
> LCDproc@lists.omnipotent.net
> http://lists.omnipotent.net/mailman/listinfo/lcdproc
>
------=_Part_76106_27900413.1176834934592
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Peter,<br><br>thanks.<br>In the meantime I have recognized that the description of how to send commands to the server is in the development document.<br>This already has allowed me to modify a C client and to achieve the display I like to get. Including the possibility to run the program with the text to show as command parameters. This is not too complicated.
<br><br>What I anyway like to get rid of is the server message if no client is running. I know I can disable the LCDd display when a client is on. But if I like to switch of a client or if I simply start LCDd first in the initialization then the upcoming server message is not ok for me. It would be great if the ServerScreen parameter in
LCDd.conf would allow to switch off.<br><br>Uli<br><br><div><span class="gmail_quote">On 4/17/07, <b class="gmail_sendername">Peter Marschall</b> <<a href="mailto:peter@adpm.de">peter@adpm.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Tuesday, 17. April 2007 09:00, Uli Brueggemann wrote:<br>> Hello,<br>><br>> I've seen some discussion about the Perl client tail.pl<br>> So I understand that I can show some text of a file on a display.
<br>><br>> I have tried to do this and I have got some questions now:<br>> My display has two lines only (imon). tail.pl displays in the first line a<br>> header message with the filename.<br>> I guess this is achieved by the two lines:
<br>> print $remote "widget_add tail title title\n";<br>> print $remote "widget_set tail title {Tail: $filename}\n";<br>><br>> Now I do not want to get this header. If I comment these two lines then I
<br>> get an empty first line only showing a # at the line end with a heartbeat.<br>><br>> How to get rid of the header and how to show a meaningful line of the input<br>> file in the first display line?<br>>
<br>> Also: can the heartbeat get stopped?<br><br>Please read:<br><a href="http://lcdproc.sourceforge.net/docs/current-dev.html#language-screens">http://lcdproc.sourceforge.net/docs/current-dev.html#language-screens</a>
<br>It should answer both questions.<br><br>Hope it helps<br>Peter<br><br>--<br>Peter Marschall<br><a href="mailto:peter@adpm.de">peter@adpm.de</a><br>_______________________________________________<br>LCDproc mailing list
<br><a href="mailto:LCDproc@lists.omnipotent.net">LCDproc@lists.omnipotent.net</a><br><a href="http://lists.omnipotent.net/mailman/listinfo/lcdproc">http://lists.omnipotent.net/mailman/listinfo/lcdproc</a><br></blockquote>
</div><br>
------=_Part_76106_27900413.1176834934592--