Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Oracle

Pages: [1]
1
Chronos User Discussion / Re: transfer video to computer via code
« on: August 17, 2019, 05:54:42 AM »
I just noticed it) After changing IP to 192.168.12.1 there occured another error:
copying latest video to host
Traceback (most recent call last):
  File "get_latest_video.py", line 37, in <module>
    copy_video(cam, serial, localdir)
NameError: name 'serial' is not defined

How should I define that serial?

2
Chronos User Discussion / Re: transfer video to computer via code
« on: August 15, 2019, 10:16:25 PM »
What happens when you try to run the script?
Also, this is the only way I was able to connect to camera via SSH:
ssh root@192.168.12.1 -o Kexalgorithms=+diffie-hellman-group1-sha1 -o Ciphers=+aes128-cbc

3
Chronos User Discussion / Re: transfer video to computer via code
« on: August 15, 2019, 02:11:15 AM »
Traceback (most recent call last):
  File "get_latest_video.py", line 7, in <module>
    cam = ParamikoMachine(host=host, user='root', password='')
  File "/home/martin/anaconda3/envs/camera/lib/python3.7/site-packages/plumbum/machines/paramiko_machine.py", line 245, in __init__
    self._client.connect(host, **kwargs)
  File "/home/martin/anaconda3/envs/camera/lib/python3.7/site-packages/paramiko/client.py", line 416, in connect
    self, server_hostkey_name, server_key
  File "/home/martin/anaconda3/envs/camera/lib/python3.7/site-packages/paramiko/client.py", line 824, in missing_host_key
    "Server {!r} not found in known_hosts".format(hostname)
paramiko.ssh_exception.SSHException: Server '192.168.12.21' not found in known_hosts

4
Chronos User Discussion / Re: transfer video to computer via code
« on: August 13, 2019, 01:59:01 PM »
The problem is that the script is not working :) Therefore I tried to connect by SSH, but now I don't know how to use it to solve initial problem.

5
Chronos User Discussion / Re: transfer video to computer via code
« on: August 13, 2019, 02:14:47 AM »
The error basically means the connection to the camera failed on port 22.

Can you try to use ssh to connect to the camera? PuTTY is a great windows tool for that. Or use BASH directly if you're on windows 10.
From there on troubleshooting is much easier.
Good day. I had the same problem as a user above. Now I connected to camera via SSH as a root. What can/should I do now in order to enable the script provided above to work? (The main task for me is to get the images/videos from the camera when I need via python script, if this information is necessary)

Pages: [1]