XIAOMI 1080p XIAOFANG-CAMERA

Moderator: leecollings

Post Reply
remko2000
Posts: 165
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

XIAOMI 1080p XIAOFANG-CAMERA

Post by remko2000 »

I`ve this camera and I tried to apply the Fang Hack for integration in Domoticz. I downgrade my camerafirmware to 660 and after that I tried to run the hack from my sdcard (https://www.domoticz.com/wiki/Xiaomi_Camera). All I get back is this page when go to this page:
http://IP-CAMERA/cgi-bin/hello.cgi

I get back in my browser CGI output:
snx_autorun.sh
bootstrap
time_lapse
record
log_286C077B2825_s.txt
System Volume Information
log_34CE00DB6B5D_s.txt

What does this mean?
Do I've to format the SDcard in a special format? (now: mac journaled format)

How do I solve this?
User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by gijsje »

You need to got to IPCAM/cgi-bin/status
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
remko2000
Posts: 165
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by remko2000 »

When I go to IPCAM/cgi-bin/status I get a 404error in my browser.
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

Have you flashed the whole image, not just copied the files? If you flash the whole image, the SDcard format does not matter, as the image overwrites the whole card and creates a new format.

I do not know what software can be used for this on Mac, maybe Apple-Pi baker? On Windows I use Win32DiskImager.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
remko2000
Posts: 165
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by remko2000 »

I've used etcher and also applepi maker. Same results.
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

OK.

For me the installation did not go well everytime either. Maybe you should retry all steps?
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
remko2000
Posts: 165
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by remko2000 »

I tried several times. Some wiki’s says that I have to upgrade and not to downgrade before running the hack. Who can help me? Now I run firmware 3.0.3.56
remko2000
Posts: 165
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by remko2000 »

I am finally out. When I put the fanghackfile on my sd card via a command in the terminal (mac), http://192.168.0.13/cgi-bin/status does work. I first downgraded to version v3.0.3.56 and then put the fanghack.img via the commands on my SD:

Code: Select all

diskutil list

Code: Select all

diskutil unmountDisk /dev/disk2

Code: Select all

sudo dd if=/Users/remko/Downloads/fanghacks_v0.2.0.img of=/dev/rdisk2 bs=1m
Another problem, however, is that I do not have a picture in Domoticz. Do I have to do some addiotionale setting in http://192.168.0.13/cgi-bin/status?

Or in domoticz besides to ad a camera with the right IP on port 80? Do I have to do something with portforwarding?

If I open a RTSP stream in VLC with link rtsp://camIP:554/unicast I see the videastream of my Xiaomicam so I think it is a problem in Domoticz?
I will create a new topic for this problem.
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

I can easily answer that (no new topic necessary). Domoticz does not RTSP streams. You can only use jpg-streams. The Xiaofang hack does not support JPG-streams unfortunately. But there is a French guy who made an edited version of the hack with a JPG stream as output. See: http://domo-attitude.fr/camera-xiaomi-x ... cz-jeedom/. It works, I have used it in the past. Too bad for you you have to flash again... Remember domoticz does not support motion detection and the like. And on the Xiaofang cams you cannot run both a RTSP and a JPG stream at the same time.
remko2000 wrote: Friday 25 May 2018 10:39 I
Another problem, however, is that I do not have a picture in Domoticz. Do I have to do some addiotionale setting in http://192.168.0.13/cgi-bin/status?

Or in domoticz besides to ad a camera with the right IP on port 80? Do I have to do something with portforwarding?

If I open a RTSP stream in VLC with link rtsp://camIP:554/unicast I see the videastream of my Xiaomicam so I think it is a problem in Domoticz?
I will create a new topic for this problem.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
tong007x
Posts: 1
Joined: Thursday 10 January 2019 5:52
Target OS: -
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by tong007x »

I've used etcher and also applepi maker. Same results.




หวย-ออนไลน์
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

Do you have the newest firmware? You should probably downgrade firmware of your Xiaofang, as the newest firmware does not support the flashing process. Please check Github the issue list for instructions how to downgrade and flash.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Derik »

Dear..
Hope some help here

I do have a old version xiaomi
working with:
https://github.com/samtap/fang-hacks
I have:
ScreenShot094.jpg
ScreenShot094.jpg (51.74 KiB) Viewed 6744 times
And:
ScreenShot095.jpg
ScreenShot095.jpg (71.87 KiB) Viewed 6744 times
Only when i do:
ScreenShot096.jpg
ScreenShot096.jpg (38.08 KiB) Viewed 6744 times
I see no camera...
Is there perhaps someone that has the same problem?

And the ip is correct..
And when i set in vlc a stream to work i see the camera
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

Domoticz does not support RTSPstream. The hack you use only has an RTSP output. Someone else made another version of the hack, which has a JPEG stream as output, that one works with Domoticz.
Check here: http://domo-attitude.fr/camera-xiaomi-x ... cz-jeedom/ for the hack, flashing the cam works the same way.
Good luck!
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Derik »

Geitje wrote: Wednesday 21 August 2019 14:17 Domoticz does not support RTSPstream. The hack you use only has an RTSP output. Someone else made another version of the hack, which has a JPEG stream as output, that one works with Domoticz.
Check here: http://domo-attitude.fr/camera-xiaomi-x ... cz-jeedom/ for the hack, flashing the cam works the same way.
Good luck!
Thanks working!!!!

Ony this is working for the older cams..
Is there also a new image for the newer?


And perhaps do you know how to flip the flip the camera image?

xxx
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Prutsium
Posts: 92
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Prutsium »

Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Derik »

thanks
I have my 3 camera's working...
Is there perhaps a option to use the talkfuncions?
Or custom sounds?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Geitje »

I think those functions only work in de Xiaomi cloud environment, not with custom firmware.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by Derik »

Geitje wrote: Thursday 29 August 2019 20:21 I think those functions only work in de Xiaomi cloud environment, not with custom firmware.
When i go into the webui in to the new fanghacks i can play sirene and a dog etc..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
therealman
Posts: 5
Joined: Wednesday 24 June 2020 14:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: XIAOMI 1080p XIAOFANG-CAMERA

Post by therealman »

Ciao! I have 2 xiaofang and flashed the last hack from gitub. From browser i see the video very well but no in domoticz. I try http and https protocol, with url:"cgi-bin/correntpic.cgi" but always black screen. What can I do? sorry from my english!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests