Open Dam5 opened 2 years ago
Hallo, thanks for your work, maybe I will update my scripts.
I mentioned another issue with the "new UI" way back in 2020, the file listing was very slow, I think due to the js code. https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/1447#issuecomment-676532470
And another strange thing is (was?) the handling of image files: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/1447#issuecomment-676520534
I don't know if anything was updated for the new ui but it seems there is not much work going on anymore. Well, it basically works ...
Best regards !
@int2018 Indeed, there's not much project activity going on, but occasionally I tamper with my camera and hack away. Regarding your https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/1447#issuecomment-676520534, I don't see this behaviour on my camera (last updated with "20210621 Xiaomi-Dafang-Hacks-master" version) I temporarily changed the filename-pattern to match your example and the "view"-icon also appears (and is working).
Thanks for sharing, maybe I should upgrade to the latest version but that is always a risk :-)
How is it risky? Use a new microsd and try it out....if it doesn't work to your satisfaction put the old microsd back in...or did you mean risky because cam is hard to access physically?
Recently picked up fiddling with my Dafang camera again. Found that the WebGUI for the SD-card handling is extremely slow. Loading the SD-card Motion webpage took about 30 seconds to load for 500 files, while loading 'Motion Events' was very fast. After analysing it turns out the serverside scripting for gathering file information is the cullpit.
I moved the information handling from serverside to clientside and page load is now less then 1 second.
In www/cgi-bin/ui_sdcard.cgi replaced:
with:
and in www/js/sdcard.js replaced:
with:
It could have been more robust and compact, but I've kept it quick and dirty. I've no intention to PR, but feel free to use or comment.