In the second part I propose to consider one more interesting thing called - Luci.
The control of servo-drives from the command line is cool, but probably one would like something more graphic. Therefore I propose to control our servo-drives network through the Web interface.
As you know the Luci is responsible for the Web interface in the OpenWrt. Generally luci is a very good example how we can use the whole combination of languages - JavaScript, Ajax, Lua, Html, Css, and Cu - in one project beautifully, intelligently and rationally. The person who wrote the Luci is probably very cool)))
What we need to do? We have not to write the Luci from scratch). We just need to write our smaaaaal module for Luci. How to do it is well written on the official website of Luci. Let's try to do the same.
Let’s create a directory luci-servo-manager in / trunk/build_dir/target-mipsel_uClibc-0. 9. 32/luci-0. 10/applications.
Let’s create a directory named luasrc in it. In luasrc we create the directories view and controller.
Some comments. If you go to “make menuconfig” you can see that Luci has a modular structure. Each module is added to Luci as soon as we select it with <*>. If you remember we've already built Lucy with the module “samba” in one of the earlier sections. So, we have to create this structure to add our module that we are doing now.
