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

59 questions
1
vote
0 answers

Luci.sys.exec() function shows syntax error when adding a variable

I'm trying to print IP address of a particular interface using luci.sys.exec() function. My requirement is to add a variable which consists of the interface name for eg: eth0 or eth1. code executed is : local interfacename=…
Amritha
  • 11
  • 1
1
vote
1 answer

UCI. Lua script. How to edit firewall rule

I have redirect rules for one host in my config, but sometimes I need to change the…
Murad
  • 89
  • 1
  • 9
1
vote
1 answer

Alignment change when adding a new tab in Luci OpenWRT

I am trying to add a new tab in Luci . I added a new file page.lua with following code in /lua/luci/controller/admin module("luci.controller.admin.page",package.seeall) function…
user2986042
  • 1,098
  • 2
  • 16
  • 37
1
vote
1 answer

How to add new pages in OpenWRT Luci Web Interface?

I am new in Luci openwrt. I want to add a new page or new tab in openwrt Luci Web Interface . This is the existing WebUI Interface and i want to add a page1 marked as red text . I can see all main pages in lib/lua/luci/controller/admin path .…
user2986042
  • 1,098
  • 2
  • 16
  • 37
1
vote
0 answers

How to execute a shell command in lua without return value

how to execute this shell script command = SCRIPT_PATH.."/R.sh "..rfu_path..rfu_file_name.." &" io.popen(command) without return value? I want to execute this shell script first. After I called this script it will runs background and my lua code…
vct
  • 73
  • 1
  • 10
1
vote
1 answer

jquery-2.1.1.min.js Openwrt Luci

I trying to make my on module for openwrt. I make simple pages for luci and now need for jQuery. So I add to my htm file. But browser returns a 404 for…
Nick
  • 9
  • 3
1
vote
1 answer

luci compilation error:iwinfo.h: No such file or directory

I downloaded the luci trunk from git https://github.com/openwrt/luci.git and got the following error when i compile it on centOS. I already have iw package intalled but still got the error. Package iw-3.10-4.el7.x86_64 already installed and…
vaj oja
  • 1,151
  • 2
  • 16
  • 47
1
vote
1 answer

Add JavaScript in OpenWRT LuCI interface?

I would like to add a javascript in the gluon webinterface so if you enter a pair of coordinates into the latitude input field, the logitute part is automatically moved to the other input field. The LuCI documentation doesn't shw such options. How…
rubo77
  • 19,527
  • 31
  • 134
  • 226
0
votes
0 answers

Develop a web interface for custom embedded device

I have developed the hardware for a location tracker (basically reports its GPS coordinates via 3G mobile connection to a remote server) This device is running Debian GNU/Linux on 512MB of RAM, and has an Ethernet port. I would like to add a web…
chronos00
  • 101
  • 1
0
votes
1 answer

Luci lua. The file is not displayed in the editor because it is either binary or uses an unsupported text encoding

When I try to open a lua file in VScode. Gives an error message The file is not displayed in the editor because it is either binary or uses an unsupported text encoding There is no error when opening notepad++. Strings mixed with special…
KordDEM
  • 177
  • 10
0
votes
0 answers

How does luci handle an incoming ajax request?

Normal ajax request in js before luci on the user side object.ajax("set_param", { noOverlay: 1 }, e, { success: function (e, t, a) { console.log("Success") }, fail: function (e, t, a) { console.log("fail") …
KordDEM
  • 177
  • 10
0
votes
1 answer

Openwrt: Sending SIGSEGV to rpcd for invalid write access to 77d09fec

openwrt version - 21.02 and 22.03 luci2 web interface is ported to openwrt from the github link - https://github.com/mvaello/luci2 (luci2-2014-07-06-ef48c52) rpcd (default…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
0
votes
1 answer

OpenWrt LUCI run UI only

I have to modify the UI of OpenWrt LUCI. I'm an UX developer & don't want to build system packages every-time to test the dev work. Is there a way to run LUCI only so we can modify the UI code ?
nish1013
  • 3,658
  • 8
  • 33
  • 46
0
votes
1 answer

Unable to upload file from GUI

I'm trying to upload file in a custom view. The file is uploaded in the following form:
">
Virthuss
  • 3,142
  • 1
  • 21
  • 39
0
votes
0 answers

luci on lighttpd- 500 internal server error

I'm running LUCI with lighttpd on ubuntu 16.04. i'm using lua5.1 and luci-0.9 the directory structure in www/html/ is: root@toor-VirtualBox:/var/www/html# ls cgi-bin cgi-bin-nodes.html cgi-bin-status.html index.html index.lighttpd.html luci …
umer
  • 3
  • 3