GithubHelp home page GithubHelp logo

awesome-consumer-iot / dg-m1q-3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mjsage/dg-m1q

0.0 1.0 0.0 2.45 MB

A quick hack of a naff ip camera

Shell 75.27% HTML 7.37% Batchfile 17.36%

dg-m1q-3's Introduction

DG-M1Q

A quick hack to provide access to the sd card using a http server and set the time using ntpd.

Remounts the sd card with execute permission, and runs a httpd server on port 80 with sdcard:/npc/ as home directory and creates a list of links to download the recordings and images.

Username: admin Pass: cheese #edit httpd.conf to change

Unzip sdcard.zip to root of SD card. telnet the camera, username root, no password. Then enter the following command

sh /mnt/disc1/httpd.sh

Can be made to run at boot if required by modifying the camera's /npc/boot.sh (see included boot.sh in zip).

httpd.sh is set up to look for a time server on 192.168.1.1, edit httpd.sh to change IP.

A windows batch file is provided to open this camera's .av files in VLC

Video settings for the app streams can apparently be found in /npc/congig/video_sc1135.xml and /npc/congig/image_sc1135.xml. I couldn't see any difference on the small low-res screen of my mobile phone. Be careful editing, the wrong values may crash the camera - I'd try to telnet in after rebooting and killall npc if that happens, unfortunately these do not appear to have any effect on the very low bitrate of the poor quality ONVIF / RTSP stream.


/npc/congig/video_sc1135.xml


~ ~ ~

<Stream0>
                                <id>0</id>
                                <type>1</type>
                                <width>1280</width>
                                <height>960</height>
                                <fps>15</fps>
                                <rotate>0</rotate>
                                <keep_aspect>1</keep_aspect>
                                <h264_id>0</h264_id>
                                <h264_gop_mode>0</h264_gop_mode>
                                <h264_gop_M>1</h264_gop_M>
                                <h264_gop_N>50</h264_gop_N>
                                <h264_idr_interval>1</h264_idr_interval>
                                <h264_profile>0</h264_profile>
                                <h264_bcr>1</h264_bcr>             
                                <h264_cbr_avg_bps>1000000</h264_cbr_avg_bps>
                                <h264_vbr_min_bps>1000000</h264_vbr_min_bps>
                                <h264_vbr_max_bps>2000000</h264_vbr_max_bps>
                                <h264_quality>3</h264_quality>      <= 1 will probably be best quality
                                <h264_puality_con>1</h264_puality_con>
                                <h264_qp_min_I>14</h264_qp_min_I>
                                <h264_qp_min_P>17</h264_qp_min_P>
                                <h264_qp_reduce_I>3</h264_qp_reduce_I>
                                <h264_qp_reduce_P>5</h264_qp_reduce_P>
                                <mjpeg_id>0</mjpeg_id>
                                <mjpeg_quality>50</mjpeg_quality>
                                <mjpeg_chromaformat>1</mjpeg_chromaformat>
                        </Stream0>
 
 ~ ~ ~
 

Instead of using the audio tones of the app, the Wifi password for this camera can be configured using a text file, wifiInfo.txt in the root of the sd card: https://web.archive.org/web/20180201150239/https://www.mydigoo.com/Digoo-DG-M1Q-Can%60t-Connect-Problem-Fixed-p-42.html . I think the camera should also boot with an open wifi AP before it is set up.

The m1q.vfat.img (busybox in a mountable image as an alternative to remounting the SD card) and sample.WifiInfo.txt aren't required and can be deleted.

dg-m1q-3's People

Contributors

mjsage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.