LCDproc development and user support list

Text archives Help


[Lcdproc] lcdproc menu not visible


Chronological Thread 
  • From: bsdfan at nurfuerspam.de (Markus Dolze)
  • Subject: [Lcdproc] lcdproc menu not visible
  • Date: Wed, 29 Dec 2010 14:08:11 +0100

On 23.12.2010 16:43, Johannes Bauchinger wrote:
>
> Hello!
>
> We have some trouble with lcdproc menu!
>
> First a short description of the topic:
>
> The user should be able to change IP, netmask and gateway of its item.
> Therefore, he just have to enter the menu and immediately the ip
> address should appear to change. When he has changed, netmask should
> appear and so on.
>
> Now the problem:
>
> We are able to change ip address, but not to see it. Just the cursor
> is shown on lcd... We tried to delete all screens, but no change. Here
> a short part oft he script:
>
> #!/usr/bin/perl -w
>
> use IO::Socket;
>
> use Fcntl;
>
> use strict;
>
> my $remote = IO::Socket::INET->new(
>
> Proto => "tcp",
>
> PeerAddr => "localhost",
>
> PeerPort => "13666") || die "Cannot connect to LCD\n";
>
> $remote->autoflush(1);
>
> sleep 1;
>
> print $remote "hello\n";
>
> print $remote "client_set name iptest\n";
>
> print $remote "menu_add_item \"\" ipconfig menu \" \"\n";
>
> print $remote "menu_add_item \"ipconfig\" ipconfig_ip ip \"IP\" -value
> \"192.168.1.1\"\n";
>
> print $remote "menu_set_item \"\" ipconfig -text \"IP\"\n";
>
> print $remote "menu_set_item \"ipconfig\" ipconfig_ip -text \"ip\"\n";
>
> print $remote "menu_set_main \"ipconfig_ip\"\n";
>
> while(1){
>
> while(defined(my $input = <$remote>)){
>
> print $input;
>
> if($input eq "menuevent enter ipconfig\n"){
>
> print $remote "menu_goto ipconfig_ip\n";
>
> }
>
> }
>
> sleep 1;
>
> }
>
> --END---
>
> We work with an 2 line USBLCD with 16chars (each 5x8bit)
>
> 4 keys are activated (the events work fine)
>
> Thank you for your answers!
>
> Johannes
>
>

Hi,

works fine here.

Does the size configured in LCDd.conf match the size of the display? On
my 20x4 display the IP address appears at line 3. If the display size is
incorrently configured the IP address may appear 'outside the display
area' (e.g. if you have a 16x2 display, but configured it as 16x4).

Regards,
Markus

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20101229/886aa4ba/attachment.htm>




Archive powered by MHonArc 2.6.18.

Top of page