LCDproc development and user support list

Text archives Help


[Lcdproc] lcdproc menu not visible


Chronological Thread 
  • From: johannes.bauchinger at e-complete.at (Johannes Bauchinger)
  • Subject: [Lcdproc] lcdproc menu not visible
  • Date: Thu, 23 Dec 2010 16:43:26 +0100

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





-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20101223/6de4257f/attachment.htm>




Archive powered by MHonArc 2.6.18.

Top of page