-
Notifications
You must be signed in to change notification settings - Fork 1
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
Config reolink cam #26
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, the setup seems ok, I just get this erorr :
(.venv) mateo@mateo:~/pyronear/sites/setup/pyro-sys-setup$ python setup_reolink_cameras.py
INFO:root:Loading env file
INFO:root:Loading camera config file
INFO:root:Instancianting cameras classes
INFO:root:Setting up cameras
INFO:root:192.168.1.66
INFO:root:OSD parameters are now set
INFO:root:Ai Config is now set
INFO:root:deactivate ai type vehicle successfully
INFO:root:deactivate ai type people successfully
INFO:root:Network ports are now set
Traceback (most recent call last):
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 536, in _make_request
response = conn.getresponse()
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 464, in getresponse
httplib_response = super().getresponse()
File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/util/util.py", line 38, in reraise
raise value.with_traceback(tb)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 536, in _make_request
response = conn.getresponse()
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 464, in getresponse
httplib_response = super().getresponse()
File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mateo/pyronear/sites/setup/pyro-sys-setup/setup_reolink_cameras.py", line 358, in <module>
main(args)
File "/home/mateo/pyronear/sites/setup/pyro-sys-setup/setup_reolink_cameras.py", line 345, in main
[cam.setup() for cam in cams]
File "/home/mateo/pyronear/sites/setup/pyro-sys-setup/setup_reolink_cameras.py", line 345, in <listcomp>
[cam.setup() for cam in cams]
File "/home/mateo/pyronear/sites/setup/pyro-sys-setup/setup_reolink_cameras.py", line 317, in setup
self.set_local_link()
File "/home/mateo/pyronear/sites/setup/pyro-sys-setup/setup_reolink_cameras.py", line 304, in set_local_link
response = requests.post(url, json=data, verify=False)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/mateo/pyronear/platform/pyro-platform/.venv/lib/python3.10/site-packages/requests/adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
This PR in order to handle semi automatic setup of reolink cameras
This PR introduces the following modifications :