找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15237|回复: 15

OpenWrt luci添加上传下载及网络摄像头功能

[复制链接]
本帖最后由 yuleniwo 于 2014-10-13 10:45 编辑

花了几天时间写的,对lua及luci不熟,花的时间有点多,全是参考luci里的源码写的。下载功能可以下载单个文件,也可以下载一个目录(目录名称不能包含英文双引号)。网络摄像头依赖mjpg-streamer。2014-10-13: 修改了网络摄像头部分,不在需要输入mjpg-streamer密码(原理:http://openwrtpenwrt@192.168.1.1:8080)。
效果图如下:





软件包以及对应源码下载地址:luci-app-other_0.12.ipk
博客原文也贴出了源码:OpenWrt luci添加上传下载及网络摄像头功能


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
楼主,献上源代码吧,这样其他大大能在新固件中集成了,感谢啊。。。

点评

有开放源码,源码在博客地址里面。打包的源码可以在百度网盘下载http://pan.baidu.com/s/1dDGO4UH  详情 回复 发表于 2014-10-11 14:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

小白帮顶啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

同上
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
yajeed 发表于 2014-10-11 13:49
楼主,献上源代码吧,这样其他大大能在新固件中集成了,感谢啊。。。

有开放源码,源码在博客地址里面。打包的源码可以在百度网盘下载http://pan.baidu.com/s/1dDGO4UH
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享,一直在寻找自己写的页面,如何能在menuconfig里面出现。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

帮忙顶
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错哦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

必须顶~~~~~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

zgx@zgxubuntu:/home/openwrt/trunk$ ./scripts/feeds update -i
Create index file './feeds/packages.index'
Create index file './feeds/luci.index'
Collecting package info: done
Create index file './feeds/routing.index'
Create index file './feeds/telephony.index'
Create index file './feeds/management.index'
Create index file './feeds/oldpackages.index'
zgx@zgxubuntu:/home/openwrt/trunk$ ./scripts/feeds install luci-app
WARNING: No feed for package 'luci-app' found, maybe it's already part of the standard packages?
zgx@zgxubuntu:/home/openwrt/trunk$ ./scripts/feeds install luci-app*
WARNING: No feed for package 'luci-app*' found, maybe it's already part of the standard packages?
zgx@zgxubuntu:/home/openwrt/trunk$ ./scripts/feeds install luci-app-other
zgx@zgxubuntu:/home/openwrt/trunk$ make package/feeds/luci/luci/compile V=s
make[1]: Entering directory '/home/openwrt/trunk'
make[2]: Entering directory '/home/openwrt/trunk/package/libs/toolchain'
mkdir -p /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain
touch /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/.prepared_f509207c8183815438e2f6caa0599661
(cd /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/./; if [ -x ./configure ]; then /usr/bin/find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /home/openwrt/trunk/scripts/config.guess; /usr/bin/find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /home/openwrt/trunk/scripts/config.sub; AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB=mipsel-openwrt-linux-uclibc-ranlib STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CPPFLAGS="-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
rm -f /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/.configured_
touch /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/.configured_
cp -fpR /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libuClibc-*.so /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libcrypt-*.so /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libm-*.so /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libpthread-*.so /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/
cp: cannot stat '/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libuClibc-*.so': No such file or directory
cp: cannot stat '/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libcrypt-*.so': No such file or directory
cp: cannot stat '/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libm-*.so': No such file or directory
cp: cannot stat '/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libpthread-*.so': No such file or directory
Makefile:627: recipe for target '/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/.built' failed
make[2]: *** [/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/toolchain/.built] Error 1
make[2]: Leaving directory '/home/openwrt/trunk/package/libs/toolchain'
package/Makefile:174: recipe for target 'package/libs/toolchain/compile' failed
make[1]: *** [package/libs/toolchain/compile] Error 2
make[1]: Leaving directory '/home/openwrt/trunk'
/home/openwrt/trunk/include/toplevel.mk:173: recipe for target 'package/feeds/luci/luci/compile' failed
make: *** [package/feeds/luci/luci/compile] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主知道用什么摄像头效果会更好

点评

能直接输出jpeg格式的。yuv的太费cpu使用率了。  详情 回复 发表于 2015-4-14 08:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
FiveGodnb 发表于 2015-4-13 20:27
楼主知道用什么摄像头效果会更好

能直接输出jpeg格式的。yuv的太费cpu使用率了。

点评

我看有说ffmpeg 不支持jpeg 是这样的么?  详情 回复 发表于 2015-4-14 21:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

yuleniwo 发表于 2015-4-14 08:32
能直接输出jpeg格式的。yuv的太费cpu使用率了。

我看有说ffmpeg 不支持jpeg 是这样的么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

厉害!顶!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大神,膜拜
路径太长了,可以做成   http://192.168.1.1/1.rar
下载文件吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 07:50

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表