[luci] developing a service for Luci

Christian Schoenebeck christian.schoenebeck at gmail.com
Thu Oct 2 19:07:51 CEST 2014


Am 02.10.2014 um 14:03 schrieb Omer Munchik:
> Thanks,
> I have never written such a web-application.
> Could you suggest how to go about it? The idea is for a command line interface application.
> 
> Thanks,
> Omer
> 
> 
> 
> -----Original Message-----
> From: luci-bounces at lists.subsignal.org [mailto:luci-bounces at lists.subsignal.org] On Behalf Of Christian Schoenebeck
> Sent: יום ה 02 אוקטובר 2014 14:12
> To: luci at lists.subsignal.org
> Subject: Re: [luci] developing a service for Luci
> 
> Am 02.10.2014 um 09:33 schrieb Omer Munchik:
>> Hi,
>>
>> I am new to this mailing list J
>>
>>
>> I would like to develop a Command line "tech support" feature for Luci server.
>>
>> The idea is that the user will run something like:
>>   >  wget 192.168.1.1/tech_support.tar.gz   (192.168.1.1 is the IP of the OpenWRT machine)
>>
>>  
>>
>> this will initiate a script that will create "tech_support.tar.gz" to contain all sort of configuration files and download it.
>> "tech_support.tar.gz" does not exist, I want it to be created when running wget.
>>
>> How can something like this be implemented?
>>
>> thanks!
>>
>>  
>>
>> Omer
>>
>>  
>>
>>
>>
>> ************************************************************************************
>> This footnote confirms that this email message has been scanned by
>> PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses(42).
>> ************************************************************************************
>>
>>
>> _______________________________________________
>> luci mailing list
>> luci at lists.subsignal.org
>> https://lists.subsignal.org/mailman/listinfo/luci
>>
> The functionality inside LuCI->System->Backup/Flash is not enough ?
> You can configure what ever file or directory to be saved !
> 
> If you want to initiate from remote you need to write your own WEB application.
> LuCI is the WEB interface based on lua language using a HTTP server to display to browser,
> not a server/service like sshd or samba or ftp or WEB Server. 
> You need to write a WEB application (possibly using lua language and parts of LuCI's libraries and objects).
> 
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
> 
> ************************************************************************************ 
> This footnote confirms that this email message has been scanned by 
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses(100). 
> ************************************************************************************
> 
> 
> 
> ************************************************************************************ 
> This footnote confirms that this email message has been scanned by 
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses(42). 
> ************************************************************************************
> 
> 
> 
> ************************************************************************************ 
> This footnote confirms that this email message has been scanned by 
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses(42). 
> ************************************************************************************
> 
> 
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
> 
Omer,
the best is, to look at existing LuCI applications code and read though available documentation, and start with "try and error".
I'm personally coming from the Windows world of IT side and never be a programmer. It takes me about 6 month on nearby every free minute to analyze existing code for luci-app-ddns and rewrite it. A lot of Google searches and again code analysis. And much. much more try and error.
So it's your choice were to start.
Good luck.
Christian


More information about the luci mailing list