GithubHelp home page GithubHelp logo

xiaomi-dafang-hacks's Introduction

Xiaomi DaFang Hacks / XiaoFang 1S / Wyzecam V2 / Wyzecam Pan / Other T20 Devices

Join the chat at https://gitter.im/Xiaomi-Dafang-Hacks/Lobby

This repository contains custom firmware for the following devices:

Name Picture
Xiaomi Dafang Dafang
Xiaomi Xiaofang 1S (old Version with T20 is supported, newer Version with T20L is in beta) XiaoFang
Wyzecam Pan Dafang
Wyzecam V2 XiaoFang
Neos SmartCam XiaoFang
Sannce I21AG, MixSight HX-I2110T2, WanScam HW0036, Digoo BB-M2 XiaoFang
Any other Device with Ingenic T10/T20 Device #980 T20

If you want to test the Xiaofang T20L (newer version) please check out the additional instructions.

If you have a classic XiaoFang with a ARM-Processor, consider using https://github.com/samtap/fang-hacks

Attention: Do not install the latest Firmware on your Device. It will disable the support of this hack.

Further information about this topic can be found here: #669

How to install the CFW

Before you try to install it, please read the FAQ

After that, continue to the Installation

Support

If you encounter a problem, please see first if you find similiar open/closed issues. Or ask in our Gitter channel for help.

If you don't find anything related, feel free to open a new issue. If you/we solve your issue, please condense your gained insights into a pull request for continuous self-improvement.

Partner Community:

We are really excited to announce that we have now a open source partner community, which provides a lot of content about the T10/T20/T30 Devices

Ebaina

Start here for more informations: http://bbs.ebaina.com/thread-53811-1-1.html

欢迎来到这个存储库亲爱的朋友们。 从这里开始,获取关于在您的设备上获取此hack的教程:开始

Technical Information about the hack:

Start here

Integration in Home Automation Systems:

Domoticz

Home Assistant

HomeKit

OpenHab

Synology

tinyCam

Zoneminder

Other features

Motion detection

It is possible to run your own scripts on motion detection. See here

Contributions:

Any contribution to the development is highly welcome. Simply open a pull request against our beta branch on GitHub.

xiaomi-dafang-hacks's People

Contributors

andrempo avatar benru avatar c--- avatar cabalist avatar cadavre avatar combie81 avatar daviey avatar dbuxo avatar ddima75 avatar dopeyr avatar eliaskotlyar avatar fhl206 avatar gysmo38 avatar jelmert avatar jmtatsch avatar knurlnheim avatar mbevand avatar mikeage avatar nik0 avatar ping avatar saipsa avatar sharkoz avatar shinebar1001 avatar theyort avatar tim-devel avatar tssva avatar tsvi avatar tthk avatar xdissent avatar yannik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xiaomi-dafang-hacks's Issues

How to implement DVR videos recording

Stock firmware can do DVR by storing sequential videos, what is the best tool to work with to achieve such functionality? Also how will it handle DVR and livestream together? Any ideas on how to implement this?

SSH Keys

Hi,

I was wondering if it was at all possible to link /.ssh to /system/sdcard somehow? I would like to use authorized_keys but obviously the root filesystem is read-only and dropbear expects to find the list of keys at ~/.ssh. It doesn't appear to accept any command line options to override this.

Thanks

mp4 audio question

With the original firmware, I can't hear the audio of the mp4 in the sd card, there is any codec that is needed in windows ?

Thank you

Timezone is saved, but after reboot, date/time is not considering saved timezone

Hello.

I set my timezone as UTC and after clicking set, current date/time shown on status page was changed according to timezone.

Still, if you reboot, although timezone still shows as UTC, current date/time shown starts again from: Thu Jan 1 00:00:00 UTC 1970.
Seems like time sync is not being carried out using the saved timezone - I tried adding a line with '/system/sdcard/bin/busybox ntpd -q -n -p time.google.com' at the end of file run.sh, and it seems to have done the trick.

@EliasKotlyar: Would you mind fixing this is master?

Thanks for checking.

Mac Address

The Dafang is getting a random mac-address at each start.

You can override this , modifying the run.sh to:

insmod /driver/8189es.ko rtw_initmac="34:00:00:00:00:00"

Do not use "00:00:00:00:00:00", cause it wont work.

The actualy Mac-Address of the device can be fetched in:
cat /params/config/.product_config

Someone need to write a simple script which will parse this file and install the driver using the real Mac

Apple HomeKit integration via homebridge-camera-ffmpeg

Hey,

I've been watching your work for a while, and it's impressive, thks a lot for your hard work to all of you that contributed to this project. I'm going to receive a Dafang. I have a full working setup with homebridge to control all of my products mostly xiaomi, but with another different brands. I would like to make the Dafang work with homebridge. What I could understood is that for a camera to work well with the home app it has to be by rtsp. I would like to know if someone already tried it, and if so if they have a config for it, i think the best way it's to use the ffmpeg-omx for homebridge to work well with this camera. I will dump here the repository of the ffmpeg-omx, thks a lot.

https://github.com/KhaosT/homebridge-camera-ffmpeg

It's basically the same but the omx is optimized for the raspberry pi.

Best Regards,

Tiago

Remove Warning.

Remove following Warning:
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!

First installation question

Sorry guys, I've got a question about the installation.

On the installation guide it first says:
" The custom firmware (CFW) bootloader will boot from microSD only if a microSD is plugged in and has a "run.sh" file on it. "
and then at point 3:
" Put it to microSD and rename it to "demo.bin". There should be no other files on the microSD! This is really important and it won't work if there are any other files on there. "

So I get a little confused, cause I tried many times without success.

This is not an issue

This is the most prolificent ,normal,productive ,succesful repo i ever saw.
It should be use as an universal example of collaboration.
Thanks to everybody involved , you make a better world.

Wifi Signal Quality

This is not really an issue with this project but I was just wondering if anyone applied any mods to increase the wifi performance of this camera.

I have a good router but I'm finding that the camera can't keep a stable connection if there is more than 1 wall separating it from the router.

which firmware version to stay on?

hi. i received mi dafang.
the firmware installed is 5.5.1.161
there is available an update to version 5.5.1.197

to use the hack, is it better to stay with the old firmware or to update to the newest one?

Question

Hi! I'm trying to block all outgoing connecting to the servers of Xiaomi. I don't really like the idea that my camera is streaming things to China/to the internet.

But I don't really understand how to do this.. I think I'll be able to install the firmware, but what then? I read something about setting up RTSP. How do I do this? And how do I disable the outgoing connecting?

Thank you so much!

Enable Full HD H264 stream

According to the Datasheets from docs.7zip, the camera needs some special memory alignment to create the stream.

3. Reserved memory and kernel reduction

Reserved memory is divided into two parts: ispmem and rmem:

     ispmem is the required memory for the ISP. The calculation method is that the Sensor outputs an image of length x width x4, for example, 1280x720x4 = 3600KB for a 720P Sensor and 1280x960x4 = 4800KB for a 960P Sensor. If you need to turn on the WDR feature, ispmem needs twice the size (length x width x4x2).
     rmem System Memory required for the Video Buffer, 720P probably need 14MB of memory, 960P probably need 19M memory.

The kernel default config to leave some margin, and the actual products often need to be cut to release more kernel space. The following are some of the commonly used options and explanations available for reduction:

This means, that for FULLHD the sizes should be:
ispmem: 192010804 = 8294400 = 8,2 MB
rmem = Should be somethere like 30MB

Unfortunately, the camera has the following settings:
ispmem=8M@0x6800000 rmem=16M@0x7000000
Source : https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/getroot.md

For now on, there is no way that the camera would stream h264 FULLHD....

Need change bitrate H264.

The bitrate for 720p is low. You can see the artifacts on the video.MJPEG better in quality, but high traffic.

Which audio files can it play ?

Hi

I was playing with the audioplay and tried to play a custom .wav file.

Unfortunately, I only managed to play the original .wav files in chinese, any other custom file I tried did not work.

I tried analyzing the original chinese files, which are sampled at 8000Hz on 16 bits, with a PCM S16 LE codec, but even by providing a wav that matches these settings, I can't make them play correctly. It only makes a quick 'click'.

Any ideas ?

Thanks

Read-only file system and schedule recording

Hello,
I found a few issues..

1st I would like to add alias to profile. I got messeage that etc is read-only.
How can i change it?

2nd
I would like to schedule recording to my sdcard for example:
--loop recording with max size per file 200mb
--retention policy 7days

Is it possible?

3rd Can I see the video via chrome or another browser ?

4th Another problem founded:

[root@DAFANGHACKS:~]# /system/sdcard/bin/h264Snap
failed to AddSensor
IMP_System_Init() failed
Segmentation fault
[root@DAFANGHACKS:~]#
[root@DAFANGHACKS:~]# /system/sdcard/bin/h264Snap > /system/sdcard/video.h264
Segmentation fault
[root@DAFANGHACKS:~]#

5th the last thing is... timestamp overlay missing could I enable it?

Compile "screen" package for Dafang

"screen" package will good for running any command and easy close, check running. This package can create new virtual terminal with any command.
Could anyone compile the screen package on Dafang?

Can use ex:
/system/sdcard/bin/v4l2rtspserver-master -fMJPG
without /system/sdcard/bin/busybox nohup and &>/dev/null &

Can I still use Xiaomi Home ?

Hi,

Is it possible to also setup the cam to connect to xiaomi, while I am not playing with the software ? By removing the SD card or clicking 'setup' once again ?

The hack is making great progress, but I wondered if I could fall back to Xiaomi while some stuff still aren't available.

Thanks!

Feedback / Support - Issue

This issues is for support and/or general discussions. Open up an issue if you want to have something improved.

Secure the RTSP stream with a password

Hello, I am able to log into RTSP without a user name and password. I am also able to SSH into the camera but do not know how to set a password for RTSP. Can you give me instructions on how to do that?

Implementation "motion" package for Dafang

I think that this is good idea.
Motion can stream video, save snaphot and record video clip, check move and ver more...

I know that MicroSD is not good idea for saving most data. We can use USB Flash disk or SSD drive for save data.

installing packages on the camera

Hi Elias,

I would like to install packages on the camera, how might one go about doing this?
I want to install probably mosquitto (and maybe python) to control the LEDs via MQTT and send a few other states to my home automation software (home-assistant), I'm also thinking of potentially installing motion to handle motion detection.
I know where to get the software but I'm not sure where to start from and where to install the files to.

Thanks

Power consumption increases after installing CFW

When running on the latest official firmware 5.5.1.200, the power consumption, when its idle, i.e., no viewing nor tracking movement, is around 1.7 - 1.8 watts.

After installing the latest CFW firmware, cfw-1.1.bin, the power consumption is around 2.2 - 2.3 watts. From the top command, the idle time is almost 0. This measurement was taken 15 minutes after power on.

That's more than a quarter power consumption increased.

How to view/edit filesystem

I am trying to view Boa/0.94.13 webserver files, however using the method to unpack the firmware and then mount only works on the appfs.bin,

Is there a way to find what bin file contains the webserver files and then extract them?

Thanks.

Pan and Tilt / Similar camera to use in apps

Thanks for your great work, installing the hacks worked flawlessly.

I'm using tinyCam pro on Android and the only way I got the camera working there is by using the XiaoFang as camera model. Since the XiaoFang doesn't support pan and tilt, the controls are greyed out.
I know this question should probably be directed to tinyCam to support the camera, but do you know of a similar camera that I could try ? I was under the impression that I could chose any camera "model" that would support RTSP over TCP.
Strangely, I tried many other camera that also support RTSP over TCP but none of these worked.

Thanks

Tinycam no audio

When clicking the audio button in tinycam, I get an error as pictured below. Is there any fix to allow for use of "push to talk" on this camera?

screenshot_2018-01-29-19-47-00-1

"Freeze" MJPEG RTSP

Hello,

I have some trouble with the mjpeg rtsp.
It looks like the rtsp stream is no longer sending an image after running for a while.

I consume the stream with zoneminder. Nothing special in the logs :

[root@DAFANG_ChR:~]# cat /var/log*/*
[01/Jan/1970:00:00:11 +0000] boa: server version Boa/0.94.14rc21
[01/Jan/1970:00:00:11 +0000] boa: server built Dec 20 2017 at 18:28:48.
[01/Jan/1970:00:00:11 +0000] boa: starting server pid=182, port 80
192.168.31.105 - - [01/Jan/1970:00:00:21 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15508 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:00:24 +0000] "GET /cgi-bin/action.cgi?cmd=yellow_led_off HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:00:29 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:00:51 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:00:56 +0000] request "(null)" ("(null)"): client unexpectedly closed connection.
192.168.31.105 - - [01/Jan/1970:00:00:56 +0000] "-" 400 0 "-" "-"
192.168.31.105 - - [01/Jan/1970:00:00:57 +0000] "GET /cgi-bin/action.cgi?cmd=h264_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:02:59 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15630 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:03:13 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:07:33 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15691 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:08:15 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:08:16 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15613 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:08:29 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:10:50 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15736 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:10:54 +0000] request "(null)" ("(null)"): client unexpectedly closed connection.
192.168.31.105 - - [01/Jan/1970:00:10:54 +0000] "-" 400 0 "-" "-"
192.168.31.105 - - [01/Jan/1970:00:24:24 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15695 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:27:55 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 166 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:28:31 +0000] "GET /cgi-bin/action.cgi?cmd=motor_left HTTP/1.1" 200 168 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:28:44 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 166 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:00:28:47 +0000] "GET /cgi-bin/action.cgi?cmd=motor_left HTTP/1.1" 200 168 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.155 - - [01/Jan/1970:00:54:26 +0000] "GET /cgi-bin/action.cgi?cmd=ir_led_on HTTP/1.1" 200 108 "-" "-"
192.168.31.155 - - [01/Jan/1970:00:54:28 +0000] "GET /cgi-bin/action.cgi?cmd=ir_cut_on HTTP/1.1" 200 108 "-" "-"
192.168.31.105 - - [01/Jan/1970:01:07:41 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15695 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:07:46 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:07:51 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:33:33 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15695 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:33:35 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:33:41 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:34:48 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15736 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:35:13 +0000] "GET /cgi-bin/action.cgi?cmd=ir_cut_on HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:01:35:25 +0000] "GET /cgi-bin/action.cgi?cmd=ir_led_on HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:03:20:36 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15651 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:19:37 +0000] "GET /cgi-bin/status.cgi HTTP/1.1" 200 15651 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:19:42 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:19:47 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:20:49 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 166 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:20:50 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 168 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:20:51 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 168 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:14:20:52 +0000] "GET /cgi-bin/action.cgi?cmd=motor_right HTTP/1.1" 200 168 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:15:13:37 +0000] "GET /cgi-bin/action.cgi?cmd=rtsp_stop HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.31.105 - - [01/Jan/1970:15:13:43 +0000] "GET /cgi-bin/action.cgi?cmd=mjpeg_start HTTP/1.1" 200 108 "http://192.168.31.236/cgi-bin/status.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
0x0000000f
▒▒▒wX▒▒▒C08▒wnameserver 192.168.31.1 # wlan0

Auto night mode

I use the stream on home assistant with ffmpeg is it possible to have auto night mode one? so when it´s dark camera turn night mode automatically.

Camera not getting DHCP address when using dafang hack

I've updated my cameras firmware, updated the wifi settings and booted it.
Router shows that the device has connected to WiFi but isn't getting an IP address.
I've tried setting a static IP address through the router, didn't fix it.

VoicePack EN

http://www.share-online.biz/dl/W0R5TM0PS1L

./usr/share/Nokia.wav
./usr/share/baojing.wav
./usr/share/notify/CN/code_ok.wav
./usr/share/notify/CN/code_wrong.wav
./usr/share/notify/CN/connect_wifi_ok.wav
./usr/share/notify/CN/connecting.wav
./usr/share/notify/CN/copy.wav
./usr/share/notify/CN/dang.wav
./usr/share/notify/CN/get_msg.wav
./usr/share/notify/CN/init_ok.wav
./usr/share/notify/CN/speaker.wav
./usr/share/notify/CN/update_system.wav
./usr/share/notify/CN/upgrade_success.wav
./usr/share/notify/binbin.wav
./usr/share/notify/dang.wav

Source:
https://www.youtube.com/watch?v=BF8UFTz5BoQ

Password?

Hi,
Thanks for the great job here.
Is there a way to add a password? I search on internet and apparently BOA doesn't offer this.
Is it possible to add basic authentification ?

Thanks,
Nik0

Secure the Webpage with a Password ?

Hi thanks for the hack, now i can use the cam after few months :)

Is it possible to get a login window to the control page , is any authentification possible ? Sorry iam only a user not an developer :)

greetings
Ben

mjpegStreamer segfaults instantly

[root@DAFANGHACKS:~]# /system/sdcard/bin/mjpegStreamer 10
Play this stream using the URL "rtsp://192.168.180.30:7070/"
Beginning streaming...
Polling stream timeout
Segmentation fault

Unfortunately I cannot get a proper core dump, the following is logged in dmesg:

[ 1264.019955] do_page_fault() #2: sending SIGSEGV to mjpegStreamer for invalid read access from
[ 1264.019955] 00000000 (epc == 00402a50, ra == 00402990)

Didnt connect to wifi after update of files

Hi,

first of all: THANKS Elias for your great work!!

My Problem: i had already installed few weeks ago the cfw and it worked. Now i updated the files, with restoring the wpa..conf file...it didt work. the blue led is shining about 5 sec, then it moves, but it didt connect to wifi.

i already re-flashed the bootloader 1.2 and do update te firmware...no success. anyone tried the current dump to install successfully?

Integration in home assistant

Hi and thank you for your hack!

Now, I'm trying to include this camera in my HA but I don't know how. I only can see a "still image" but not any video :)

I'm using this code in my configuration.yaml

camera

Also, I tried with ffmepg camera, installing ffmepg in my RPi3, etc... but it doesn't work :(

Anyone has this camera working in HA? Thank you in advance

Find out how the motors are working

For using the Pan/Tilt Functionality , we need to find out how the motors can be used.

I suppose that they are wired really similar to the reference implementation of the "Bull Board":
https://github.com/dim08/Ingenic-T10_20/blob/master/hardware/RD_T20_BULL_V10_20160912B.pdf

There is a "motor"-Driver(sample_motor.ko), but nobody knows how to use it. It has the following parameters:
hmaxstep = 2600
hmotor2vmotor = 1
vmaxstep = 700

Unfrotunately, i dont know how to use it. There is no documentation about using it.

H264 RTSP

Current State of the development:
I can get a h264-stream of the camera. Unfortunately, this stream cannot be used to stream trough the LIVE555-RTSP Server. Here is a dump of mediafile:

General
Complete name                            : test.h264
Format                                   : AVC
Format/Info                              : Advanced Video Codec
File size                                : 132 KiB

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 2 frames
Width                                    : 320 pixels
Height                                   : 240 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

I have no idea why this stream cannot be streamed trough the LIVE555. It seems that there is something missing. Maybe someone give it a try ?

Run official Mi Home app on the custom firmware

Hi Elias,

Is it possible for your CWF to coexist with the Mi Home official app?

I have a few Xiaomi Mijia 1080p IP cams running CWF from, https://github.com/Filipowicz251/mijia-1080P-hacks, and it works quite well, i.e., both Mi Home official app and other third party rtsp app can be used to view the camera at the same time.

Right now, after the run.sh has been run, the camera is grayed out in the Mi Home official app.

Thank you very much for your effort and time to make this CWF work.

Regards,
Wade

Blocked Cam after moving with stream running

Hi,

Cam is totaly blocked, HTTP do not answer, lose SSH connection and RTSP stream, if i move it (with calibrate or step moving) many times.

I don't found log file when i restart it (manualy) and i dont have any idea why it's happened.

NOTE: I use last version from Repository.

Streaming to YouTube

How hard is to make the webcam stream directly to youtube?

You need an RTMP data stream, if we could encode it directly on the webcam, it should be feasible

Donations

Hi Elias,

You've obviously put a lot of work into this which benefits a lot of people! Do you accepts donations, however small?

Keep up the good work.

Thanks,
Andy.

RTSP Stream zoomed in and blurry

Trying to set up RTSP and the image is zoomed in and blurry compared to the get image version.
Any idea why?
MJPEG RTSP is even more zoomed in than the H264 version...

Thanks

Compiling new software for webrtc

I wanted to know if it's possible to compile Janus or similar webrtc gateway for this linux? Can anybody point in the right direction

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.