找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 83804|回复: 538

TOMATO摄像头自动拍照按秒上传可以做监控

 火... [复制链接]
发表于 2013-4-2 16:23 | 显示全部楼层 |阅读模式
本帖最后由 33360zhang 于 2013-5-2 15:17 编辑

1.首先挂载好自己的摄像头,能通过自己的动态域名访问到自己的摄像头! 去除密码那段 -c yyy:zzz

2.安装 wput (ipkg install wput)

3.写定时上传脚本:#vi /jffs/modules/upload_cam_pic.sh  这里表示在路由/jffs/modules/ 目录下创建一个SH脚本,其实位置无所谓内容如下:注意更改里面的http地址就是你的摄像头地址,FTP地址就是你的FTP地址,
不能用电脑上用记事本编辑  upload_cam_pic.sh  通过WinSCP 考到路由上  复制注意改下引号
可以用记事本修改 我的附件上传的文件 相应类容
echo "start connect"

my_current_date=`date +%Y_%m_%d`
my_current_time=`date +%H_%M_%S`

echo $my_current_time
echo $my_current_date

wget "http://192.168.1.1:1234/?action=snapshot" -O /tmp/s.jpg

echo "uploading..."
wput /tmp/s.jpg ftp://qbs:238238@172.16.48.2/software/cam最新/$my_current_date/$my_current_time.jpg
wput /tmp/s.jpg ftp://qbs:238238@172.16.48.2/software/cam最新/last.jpg

echo "end"

4.chmod +x /jffs/modules/upload_cam_pic.sh  给脚本加入执行权限

5. > 定时上传任务cru a upload_cam_pic.sh */1 * * * * "/jffs/modules/upload_cam_pic.sh >> /dev/null"
TOMATO专版›设置

usb设置
Hot-Plug 脚本
(设备连接或移除时执行), 填入执行代cru a upload_cam_pic.sh */1 * * * * "/jffs/modules/upload_cam_pic.sh >> /dev/null"


按秒上传脚本
更改上面的设备连接或移除时执行
sleep 2m
/jffs/modules /anmiao.sh
按秒上传脚本
游客,如果您要查看本帖隐藏内容请回复



本帖子中包含更多资源

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

×

评分

参与人数 5恩山币 +7 收起 理由
sunn*** + 1 楼主威武—我就想问问挖掘机技术哪家强?
aiyay*** -1 一看就是觉得高端、大气、上档次!
bab*** + 1 一看就是觉得高端、大气、上档次!
liu*** + 1 一看就是觉得高端、大气、上档次!
i*** + 5 土豪,我们做朋友吧!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2013-4-2 16:41 来自手机 | 显示全部楼层
手机上也得支持啊,好文章
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-4-3 08:36 | 显示全部楼层
本帖最后由 33360zhang 于 2013-4-3 10:27 编辑

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

使用道具 举报

发表于 2013-4-3 10:00 | 显示全部楼层
这个是tomato的固件吗?好像是openwrt。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-4-3 10:26 | 显示全部楼层
snyzf 发表于 2013-4-3 10:00
这个是tomato的固件吗?好像是openwrt。。。

你对比下 红色是不一样的   在tomato 上测试成功
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 10:54 | 显示全部楼层
看看咋样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 11:12 | 显示全部楼层
看一下又不要钱
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 12:59 来自手机 | 显示全部楼层
学习了。

点评

割妹,学到没  详情 回复 发表于 2015-1-16 22:44
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 16:58 | 显示全部楼层
牛,正有这个打算,参考参考!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 17:22 | 显示全部楼层
好文章好文章
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 19:35 | 显示全部楼层
多谢分享!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 20:09 | 显示全部楼层
回复,学习神技
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 20:24 | 显示全部楼层
这都要隐藏啊……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-3 22:34 | 显示全部楼层
看看怎么样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-4 09:29 | 显示全部楼层
这么强大啊啊啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 13:40

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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