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

mmc/offline.sh: Initial commit #8

Merged
merged 1 commit into from
Aug 28, 2023
Merged

mmc/offline.sh: Initial commit #8

merged 1 commit into from
Aug 28, 2023

Conversation

nailyk-fr
Copy link
Contributor

Follow up on #4 (comment)
This PR adds the offline script (taken from previous camera work) and adapt it for this model

Be aware that it seems to break the application in some cases ! (at the beginning, my app was always retrieving the flux from tuya's servers. Now, it seems to use local only)

line [[ ! pgrep -f offline.sh ]] && /tmp/sd/offline.sh & is needed because the script is called from custom.sh which is itself called every 10 seconds.

I made this choice because I fear, in the previous versions, running it only once is not enough :
Once the tuya connection is dropped, it will attempt to use another IP address which will not be blacklisted. With this version, every 10 sec new connections will be dropped as null routed.

However, it might be a flaw in this script because of the grep -v 6668 which is a grep on the source port of anyka_ipc daemon.
In theory this should be fine as source port 6668 is used for rtsp and source port 6667 is used for Tuya.

@nailyk-fr nailyk-fr mentioned this pull request Aug 25, 2023
Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
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

Successfully merging this pull request may close these issues.

2 participants