Questions tagged [luci]

LuCI (a WebUI for OpenWrt)

LuCI was founded in March 2008 as "FFLuCI" as part of the efforts to create a port of the Freifunk-Firmware from OpenWrt? Whiterussian to Kamikaze.

The initial reason for this project was the absence of a free, clean, extensible and easily maintainable web user interface for embedded devices. While most similar configuration interfaces make heavy use of the Shell-scripting language LuCI uses the Lua programming language and splits up the interface into logical parts like models and views, uses object-oriented libraries and templating. That ensures a higher performance, smaller installation size, faster runtimes and what is even more important: better maintainability.

Meanwhile LuCI evolved from a MVC-Webframework to a collection of several libraries, applications and user interfaces with general purpose for Lua programmers while the focus still remains on the web user interface which also became an official part of OpenWrt? Kamikaze.

References :

http://luci.subsignal.org/trac

57 questions
0
votes
1 answer

Add an option under a specific section using UCI's C API

How can I add a NEW option under a specific section in an UCI config file? I would like to achieve that programmatically using the C API. Can someone put an example here ?
cuv
  • 919
  • 1
  • 9
  • 16
0
votes
1 answer

A textbox need to be visible or Hidden based on radio option selected in Openwrt Luci

I want to make visible or hidden a textbox based on radio option selected in openWRT Luci. Is there any way to avoid JavaScript? Thanks in advance
Raihanhbh
  • 35
  • 8
0
votes
1 answer

Why luci can not execute dispatcher target for entry

I am new in Luci/lua,work on LuCI 15.05-154-gb81a22b and lua 5.1 Face problem to execute view show me bellow error Controller syntax is bellow e=entry({"admin","network","macclone"},arcombine(template("admin_network/mac_clone")),_("MacClone"),14) …
shamim
  • 6,186
  • 19
  • 71
  • 139
0
votes
0 answers

luci2 save & apply button not working

I am trying to do the save and apply button on luci2, as it is not developed by the main developer. I am keeping the reference of save function for this. save: function() { var self = this; if (self.options.readonly) return…
Awanti
  • 109
  • 8
0
votes
2 answers

"index of /" displayed instead of Luci interface

I have an openWRT running and I have installed nginx on it. Nginx is running perfectly fine on port 80. In order to avoid conflict in the /etc/config/uhttpd I have changed port from 80 to 89, but when I open it in a web browser, I get "index of /"…
0
votes
1 answer

Including "Force "option to onclick "install" button for a particular package

Is it possible to include --force-overwrite option inside the on-click of "install" button for any particular package in the openwrt lua web page??
Prasad
  • 61
  • 1
  • 1
  • 9
0
votes
0 answers

Default username and password for LUCI2

I uploaded the LUCI2 from Git to my OpenWrt box. For the first access to the web interface we must input login name and password. What should these two parameters be? I typed admin/admin, and they did not work. Even if I execute the command: 'passwd…
Feten besbes
  • 394
  • 1
  • 6
0
votes
2 answers

Function in LuCI project

Here is a code block in LuCI (OpenWrt web UI) project. I don't understand what this function is doing, and I am unable to find where it is called. Where is this function being called and what it is doing? p = s:option(ListValue, "proto",…
teik
  • 474
  • 4
  • 19
0
votes
1 answer

Why can I see LuCI wired but not wireless?

I installed OpenWRT on my router, but LuCI I can see only if connect to my router via lan cabel, but not via wireless. Why, how could I configure LuCI for it? UPDATE root@OpenWrt:~# cat /etc/config/firewall config defaults option syn_flood …
János
  • 27,206
  • 24
  • 130
  • 270
0
votes
1 answer

OpenWRT Luci persistent install

I have a TP-WR710N running OpenWRT. When I install Luci via putty (CL), everything works as it should. However, after a reboot or unplugging the router - everything is reverted back to the default OpenWRT settings and luci has to be installed…
Stevanicus
  • 6,876
  • 7
  • 43
  • 66
0
votes
1 answer

Documentation for SimpleForm in luci

I try to manipulate the code that generates the config mode in the freifunk firmware gluon but I cannot find the documentation how to add a TEXTAREA instead of an INPUT field at this lines: o = s:option(Value, "_contact", "Kontakt") o.default =…
rubo77
  • 15,234
  • 23
  • 111
  • 195
-1
votes
1 answer

why i need to use init() and cursor() in luci program

In my cbi files I have: local t=require"luci.model.network".init() local e=require"luci.model.firewall".init() local i=require"luci.util" local e=require"luci.model.uci".cursor() In the above syntax if i remove init() and cursor() then my program…
shamim
  • 6,186
  • 19
  • 71
  • 139
1 2 3
4