HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
789 stars 75 forks source link

4.0.0 no longer remembers Name of Camera on NFS after reboot #33

Closed thompatry closed 3 years ago

thompatry commented 3 years ago

I have noticed with 4.0.0 that if I rename the folder on the NFS share, it persists till I reboot the camera. After I reboot it, it creates the folder with the MAC again.

This is to track this issue.

HclX commented 3 years ago

it memorizes the folder by checking a file named ".mac_" in the folder. Can you confirm there is such file in the renamed folder? Also, sometimes the camera boots up with a different mac, when that happens, it will use a different folder.

thompatry commented 3 years ago

It is working now. I am not sure what changed but I played around with it the past few days to figure out what was going out and had no luck.

thompatry commented 3 years ago

I think I have figured it out. I was making it too complicated. The issue isn't directly with 4.0.0 as far as I know. The issue has to deal with renaming the folder and it having spaces. If it has spaces, it then doesn't find the renamed folder. So it might something simple to fix with some quotes.

thompatry commented 3 years ago

Easy fix right here. Some quotes and viola.

https://github.com/HclX/WyzeHacks/blob/78ea67af6ae4693e5402a7316b6cd7156236e487/wyze_hack/mount_nfs.sh#L45-L47

HclX commented 3 years ago

got it, will have this included in next release.

HclX commented 3 years ago

this is fixed in relase 0.4.02