Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Request #32

Open
SomeNormalProgrammer opened this issue Jan 16, 2022 · 2 comments
Open

Patch Request #32

SomeNormalProgrammer opened this issue Jan 16, 2022 · 2 comments

Comments

@SomeNormalProgrammer
Copy link

Hi! I hope you're still doing these, thank you very much.
I wasn't able to find an existing patch for it.

{"devname":"Smart Home Camera",
"model":"Bullet 4S",
"serialno":"103112647",
"softwareversion":"4.0.7",
"hardwareversion":"B4S_V10_A2_2063",
"firmwareversion":"ppstrong-a3-tuya2_merkury-4.0.7.20210624",
"identity":"M5H0025C6Q01411685",
"authkey":"nUC49hnET0tqaNHK0zTADu6ZaFyG8DZN",
"deviceid":"pp014ff10e93bcfd21c8",
"pid":"aaa",
"WiFi MAC":"84:7a:b6:ed:fe:d6",
"ETH MAC":"00:00:00:00:00:00"
ppsapp-zipped.zip
}

@SomeNormalProgrammer
Copy link
Author

should also add that i do not have a home/cfg/tuya_config even though i set up the camera with the app and everything.

@guino
Copy link
Owner

guino commented Jan 16, 2022

@Rastastical please notice the path to tuya_config.json is /home/cfg/tuya_config.json (notice the first / ) — it is NOT on the SD card (it is in the flash memory) so you have to telnet into the device and either copy it to the SD card, edit it and copy it back to flash OR you can edit it in the flash directly using vi which is harder to do.

Someone wrote a few lines for initrun.sh that you could use to get it copied to the SD card and back:

Modify initrun.sh:
Add above the while line

if [ ! -e /mnt/mmc01/tuya_config_original.json ]; then cp /home/cfg/tuya_config.json /mnt/mmc01/tuya_config_original.json; fi

Add after the sleep 10 line:

if [ -e /mnt/mmc01/tuya_config.json ]; then
 cp /mnt/mmc01/tuya_config.json /home/cfg/tuya_config.json;
fi

Boot the doorbell once, it will create the tuya_config_original.json file in the root of SD card, copy it and rename it to tuya_config.json, open it and set onvif_enable to 1 and adjust any other settings. On the next boot the edited file will copy the json file to the flash.

Please check/try the above first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants