Page 1 of 1

Xiaomi Dafang camera view problem

Posted: Thursday 21 June 2018 11:59
by satanasinc
Hi!

First of all excuse my bad english.
I added my Xiaomi Dafang Camera with DafangHack firmware to my domoticz and it worked for a couple of months.
Now can´t see the camera in the domoticcz windows but the connection test apears to be fine and displays the camera.

Someone knows what can be happen?

Image
Image
Image

Thanks in advance for your help.

Regards.

Re: Xiaomi Dafang camera view problem

Posted: Thursday 21 June 2018 14:00
by satanasinc
Hi!

Resolved.

Edit and coment o remove these lines in /system/sdcard/config/lighttpd.conf

$HTTP["scheme"] == "http" {
# capture vhost name with regex conditiona -> %0 in redirect pattern
# must be the most inner block to the redirect rule
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")
}
}

This disable the https redirection.

Image

Regards

Re: Xiaomi Dafang camera view problem

Posted: Monday 02 July 2018 22:46
by mozo78
Thank you! It worked for me as well!

Re: Xiaomi Dafang camera view problem

Posted: Monday 04 March 2019 16:20
by Ouate
Hi,
I have the same problem (preview of camera is working but nothing when I click the photo button).
How to edit the file lighttpd.conf (as described above) ? in SSH ?
Does someone can help me please?

Re: Xiaomi Dafang camera view problem

Posted: Friday 08 March 2019 13:37
by Ouate
Ouate wrote: Monday 04 March 2019 16:20 Hi,
I have the same problem (preview of camera is working but nothing when I click the photo button).
How to edit the file lighttpd.conf (as described above) ? in SSH ?
Does someone can help me please?
nobody ? :|

Re: Xiaomi Dafang camera view problem

Posted: Tuesday 19 March 2019 11:33
by Shirley54
I think I am also facing this issue. Did you get any proper solution?

Re: Xiaomi Dafang camera view problem

Posted: Tuesday 26 March 2019 17:25
by Eravinera
I have a similar problem, but the proposed option does not help

Re: Xiaomi Dafang camera view problem

Posted: Thursday 25 April 2019 12:57
by qerryp
I had the same issue with my Samsung galaxy S10 which I had to troubleshoot from https://uaetechnician.ae/samsung-service-centre and in case of xiaomi go to the xda developer where they release the update on weekly basis.

Re: Xiaomi Dafang camera view problem

Posted: Wednesday 03 July 2019 23:06
by Derik
some solutions.
My dafang are stil dark to..
When i follw thew ikie should be simple.
Ony no camera in Domoticz

https://www.domoticz.com/wiki/Xiaomi_Camera
ScreenShot067.jpg
ScreenShot067.jpg (32.68 KiB) Viewed 2335 times