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 - rvcFS

Pages: [1]
1
Chronos User Discussion / Re: transfer video to computer via code
« on: September 09, 2019, 12:16:30 PM »
have you tried ssh1 instead of winscp?
can you edid you known_hosts file and add the required key?
if you're on win10 you can install bash and use native linux tools which might be easier.

@NiNeff thanks for the reply, I managed to solve the issue.
 
Apparently windows does not automatically add unknown hosts when SSHing (no .ssh host file exists) for security reasons. I added the following parameter to the ParmaikoMachine() initalizer:
Code: [Select]
cam = ParamikoMachine(host=host, user='root', password='', missing_host_policy=paramiko.AutoAddPolicy()) since the default value is set to "None" which rejects any unknown hosts.

Furthermore, copying the video introduced another issue, the following line:
Code: [Select]
latest = cam['/bin/ls -t -1 /media/mmcblk1p1']().split()[0] returns the first index of the standard out which in my case was "System" and caused a (File does not exist) error when attempting to copy the file.

Changing it to the following solves the issue:
Code: [Select]
latest = cam['/bin/ls -t -1 /media/mmcblk1p1']().split()[3] which is the 3rd index of the sorted list. This returned the latest video in my case.

Sharing in case anyone encounters similar issues.

Cheers!

2
Chronos User Discussion / Re: transfer video to computer via code
« on: September 09, 2019, 09:07:15 AM »
Sorry guys, it was my mistake, I missed the point where the USB acts as a Ethernet bridge.

I managed to connect using winSCP, however when I try to run the python script, I get the following errors:

Code: [Select]
File "C:\Program Files (x86)\Python36-32\lib\site-packages\plumbum\machines\paramiko_machine.py", line 245, in __init__
    self._client.connect(host, **kwargs)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\paramiko\client.py", line 416, in connect
    self, server_hostkey_name, server_key
  File "C:\Program Files (x86)\Python36-32\lib\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.1' not found in known_hosts

Im running this on Python 3.6.5 on a Windows 10 OS;

3
Chronos User Discussion / Re: transfer video to computer via code
« on: September 09, 2019, 06:05:12 AM »
Hey guys,

I downloaded the get_latest_video.py script and installed all the dependencies (paramiko and plumbum), however I am not able to connect to the camera.
I did the following steps but I keep getting timed out.
Connect the Camera to the PC using (eSATA / USB) port
Connected a ethernet LAN cable from my pc network adapter to the cameras network adapter (blinking with lights)
Changed my pc network adapter ip to a static ip of 192.168.12.10
Tried to ping the camera on 192.168.12.1, destination host unreachable / request timed out
I tried running the script, gave me a no response error.

Would appreciate any advise on what I did wrong. :-[

Pages: [1]