Extending the configuration page

Hello,

I would like to know if and how it is possible to add my own reference to a webpage in the login page. It might be something like this (Mark the 'CONFIGURE DEVICES' addition)

Even better would it be, to let the user land on my own page on the Yun in stead of the standard login page.

Any advice would be welcome.

Friendly greetings Rens

Directly update Arduino LUCI section might not smart move since it will be erase after next firmware updated.

the file are located at /usr/lib/lua/luci/view/arduino incase you like try.

Add your own Modules is solution.

http://wiki.openwrt.org/doc/uci/uhttpd

http://wiki.openwrt.org/doc/devel/luci

http://luci.subsignal.org/trac/wiki/Documentation/ModulesHowTo

RensD once you've logged in, access the "advanced configuration" (there is a link on top of the page). That is the LUCI sonnyyu is talking about.

Tanks y'all! :)

Hi,

I would also like to customize some of aspects of lua. For simple things, I guess I could just edit the .lua scripts.

However, some of them seem to binary files. For instance, /usr/lib/lua/luci/controller/arduino/index.lua .

Am I missing something ? Any pointers are greatly appreciated.

Thanks

Arduino-webpanel has 2 sections:

  • basic configuration panel base on luci-app-arduino-webpanel ( green color)
  • advanced configuration panel (luci), luci-lib-core, luci-lib-web... ( grey color)

to changes basic configuration panel, please edit htm file at /usr/lib/lua/luci/view/arduino/

nano /usr/lib/lua/luci/view/arduino/homepage.htm

Change "Your" to "Sonnyyu's"

WELCOME TO ARDUINO, YOUR ARDUINO YÚN
WELCOME TO ARDUINO, SONNYYU'S ARDUINO YÚN

It is Model–view–controller model. Source code is here: https://github.com/arduino/YunWebUI

To change advanced configuration panel http://luci.subsignal.org/trac/wiki/Documentation/ModulesHowTo.

I would also like to do this, before I try to

Add your own Modules is solution

I would like to try sonnyyu suggestion but I don't know how to get to

nano /usr/lib/lua/luci/view/arduino/homepage.htm

How do i view and edit that page?

opkg update
opkg install nano

Thanks for your help!

One more question where is the advanced config htm page at?

Never mind I found it! I can get to it by this address "http://192.168.1.103/cgi-bin/luci/"

Thanks for your help!