I had a question with the menu/widget options that are available to lcdproc clients.
Let's take the example of changing the ip address via the "ip" item. After the new address is entered, how does the client update it's field? For example:
-> Psuedo code
menu_add_item "" ipconfig ip "Change IP" -v6 false -value "192.168.1.1" # Create ip menu item
menu_set_main "" # Return to main menu
Perl example:
while(defined(my $input = <$lcd_data>)) # Parse client/server data
{
if ($input eq "menuevent enter ipconfig") # Check if user selects ip menu item
{
-> update field/variable here (basically the "value" field of the "ip" item)
}
}
Thanks in advance!
--Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I had a question with the menu/widget options that are available to lcdproc clients.
Let's take the example of changing the ip address via the "ip" item. After the new address is entered, how does the client update it's field? For example:
-> Psuedo code
Perl example:
while(defined(my $input = <$lcd_data>)) # Parse client/server data
{
if ($input eq "menuevent enter ipconfig") # Check if user selects ip menu item
{
-> update field/variable here (basically the "value" field of the "ip" item)
}
}
Thanks in advance!
--Jeff
NVM...
Disregard this.
I suppose it does help to pay attention to what the server is sending back to the client...