HclX / WyzeHacks

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

How do I change the NFS server settings via telnet? #71

Closed bryantech closed 3 years ago

bryantech commented 3 years ago

It worked for about 18 hours to my QNAP box. I want it to goto my unraid box much more space. I can't get it to take new settings.

HclX commented 3 years ago

I suspect this may have something to do with the auto config update: when the system start it makes a copy of the config file to nfs share, upon reboot it checks if the copy in nfs share differs to the one on device if yes, it assumes changes are made to the nfs share copy so it copies back to device. Apparently this logic is not right when you make changes on device using telnet.

I will come up with a fix for this.

bryantech commented 3 years ago

Thank you. I have 7 cameras and I would love to get all of the feeds saved to my unraid box.

On Tue, Jan 12, 2021 at 10:14 AM HclX notifications@github.com wrote:

I suspect this may have something to do with the auto config update: when the system start it makes a copy of the config file to nfs share, upon reboot it checks if the copy in nfs share differs to the one on device if yes, it assumes changes are made to the nfs share copy so it copies back to device. Apparently this logic is not right when you make changes on device using telnet.

I will come up with a fix for this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/71#issuecomment-758843585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2EB6I7VKT73QJ47B54SDLSZSGRPANCNFSM4V6EBE6Q .

bryantech commented 3 years ago

Any updates on this issue?

HclX commented 3 years ago

The latest change is in branch dev_v3 (release 0.5.01) fixes the issue. With this version, you can use either telnet or AUTO_CONFIG feature to update your configurations. Please check the comments in config.inc.TEMPLATE file on how AUTO_CONFIG works.

bryantech commented 3 years ago

I am testing on a V2 Cam. I have tried the SD install and it tells me in installed. No telnet access and the camera's yellow light is solid and have to factory reset put an old firmware on it and then I have to resetup in my account. Firmwares 4.9.5.115 and 4.9.6.218.

HclX commented 3 years ago

To be clear, you are not running v3_init.sh, are you? v3_init.sh is designed specifically for v3 cameras, you only need remote_install.sh for v2 cameras. Also, 4.9.5.115 is considered a very old build, you should try 4.9.6.218 with remote_install.sh. If you have an SD card inserted while installing, it will generate a install.log which can be helpful debugging when went wrong.

bryantech commented 3 years ago

2 cams won't upgrade to 4.9.6.218 but I upgraded to 4.9.6.199 on 2 cams. SD install and ./remote_install.sh sees the cams and it makes me think it is installing it. I get a different response and an error on a cam on my that I know is offline. Still no telnet of SD card access for the NFS share. Not installing V3 files.