EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

[NEW UI] Feedback #1447

Closed gysmo38 closed 3 years ago

gysmo38 commented 4 years ago

Not an issue. Just use this issue to get feedback from new UI. What i want/will add:

I don't known if I will found time to do all of thoses. I spend a lot of time doing the new UI. I will take a break.

Just give me feeback, if you enjoy it, find bugs or have new ideas.

I hope, it could become the new default UI and maybe delete the old one :)

gysmo38 commented 4 years ago

@jmtatsch yes i was waiting for the PR to be merged. I will do it tomorrow.

PolestarWx commented 4 years ago

I have tested new UI yesterday, so, some feature disapear as motion box detection which is really usefull in case you have pet :) Also, it is possible to add a feature to enable HLS directly from the UI ?

Thanks for your great work !

gysmo38 commented 4 years ago

@SilverWx In fact motion zones exist in new ui and get improve :) You can define multi zones image Go to Motion detection and Zones. You can define up to 5 zones. I try to add it but HLS not working on my camera :( If you known how to get it work, I could give another try :)

jmtatsch commented 4 years ago

We should give HLS another shot. Make sure you start the server with -S and get the updated html files from the Upstream rtspserver repo.

PolestarWx commented 4 years ago

@SilverWx In fact motion zones exist in new ui and get improve :) You can define multi zones image Go to Motion detection and Zones. You can define up to 5 zones. I try to add it but HLS not working on my camera :( If you known how to get it work, I could give another try :)

Me too, I have tried multiple way to setup HLS, including start manually using /system/sdcard/bin/v4l2rtspserver-master -S command : the log show that HLS is running but in fact it doesn't work . I have tried multiple setup, including disabling motion detection without success.

TrInsanity commented 4 years ago

Interested in HLS too if it's possible to resolve the issues needed for it to run

gysmo38 commented 4 years ago

I have already try with option -S with no luck. I try with the small index.html page in hls and direct with native browser hls http://CAM_IP:8554/unicast.m3u8 but both fail to get video :( If someone find a way to get it work, I can add it in the new UI. I also try with recorded video but it also fail.

I made some debug with dev tools from chrome and get 405 (Method Not Allowed) on http://CAM_IP:8554/unicast.m3u8

gysmo38 commented 4 years ago

I made new test. I manage to have some horrible picture with option -u -b Normally it should have parameters but it look like parameters do not correspond to help message

gysmo38 commented 4 years ago

I made new test with last commit from @nik0 HTS work a little better but the result is not very good. The video is really laggy and the quality is very poor.

gadget78 commented 4 years ago

doesnt seem to be a flip image option as there was before (for when camera is mounted upside down)

also it would be nice to have the streaming links of the different types etc ( rtsp://<ip>:8554/unicast ) in the information tabs somewhere ? like it was...

but yes overalll feels much cleaner :) love the themes, especially dark gray :)

gysmo38 commented 4 years ago

@gadget78 Good ideas. I add this to my todo list :)

gysmo38 commented 4 years ago

@gadget78 New PR #1496 add the filp button under ptz control :)

gadget78 commented 4 years ago

can you get to the PTZ controls when you dont have a device with the moving abilities ? as i thought they were disabled ? well they are on current builds... where are the PTZ controls in that situation ? ...

EDIT... looking at PR, as a toggle on the slide out controls from 'homepage' viewer 'camera settings' :) will try it out

gysmo38 commented 4 years ago

@gadget78 Good point, it will not work if no PTZ. I will find another place for the button.

andrempo commented 4 years ago

I think the FLIP options is missing on the RTSP config file (i haven't figured out well how it works ).

andrempo commented 4 years ago

I also had no luck trying to run the server with the -S flag (error 405, even running it manually). I think would be nice to show the photos as events on a time line. Maybe using this lib: https://github.com/marmelab/EventDrops

1518

gadget78 commented 4 years ago

if you do want it flipped now, you can manually edit /system/sdcard/config/rtspserver.conf file, with FLIP=ON i referenced this on #1237 too ...

gysmo38 commented 4 years ago

In last PR i add Flip in camera setting page. It add FLIP in configure file if missing. I have problem with FLIP. on work well but off need one camera reboot to work.

int2018 commented 4 years ago

Hi gysmo38,

I am on: commit 32a82b7 from the beta branch But somehow I don't have the "view" icon (anymore)?

grafik

In the sdcard.js it says: if (file_info[1] == "jpg") html_photo = ".span onclick='openPicture(\""+config_info[3]+"\");' title='View picture'. . i class='far fa-eye'. . /i.";

In the motion.conf I altered the file name pattern but these are jpg ...


ok, I just checked and it seems rrelated to the filename pattern: grafik

Any chance for fixing this or is that too much hassle?

int2018 commented 4 years ago

...another issue (maybe mentioned already?):

The folder scan is VERY slow, maybe related to the loop: for (var i = 0; i < config_all.length-1; i++) { var config_info = config_all[i].split("#:#"); ...

When I access the folder directly in the browser it is fast, https://192.168..../viewer/motion/Stills/

kusuriya commented 4 years ago

I'd like to add a couple cents here, so if you are going to remote the RTSP URI's from the camera settings they need to be in the documentation. It would be nice to also be able to set them, but 🤷 thats not as important as knowing what they are. Coming from the old UI to the new one, if I was a brand new user of the new one I would be lost and frustrated trying to set it up to work from my other RTSP enabled devices.

Otherwise it looks great and I love it.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jneilliii commented 3 years ago

curious if there has been any headway in getting HLS working on current beta branch?

answer35 commented 3 years ago

I don't understand why but I cannot access UI of my dafang. I used to be able to do it at least before some update few weeks ago. Now I can still ping it, connect trhough ssh but not able to access the webpage. Does anyone have the same issue ? Is there a way to fix it ?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

int2018 commented 3 years ago

Hi gysmo38, are there any plans for a fix of the mentioned things? Or is the GUI project considered as "final" and no more work will be done? Or is it handed over to someone else?

All the best!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.