def list_fs_ctrls_click(self, e):
print("this is supposed to fswebcam -d v4l2:/dev/video0 --list-controls on the pi")
target_ip = self.tb_ip.GetValue()
target_user = self.tb_user.GetValue()
target_pass = self.tb_pass.GetValue()
try:
ssh.connect(target_ip, username=target_user, password=target_pass, timeout=3)
print "Connected to " + target_ip
found_login = True
cam_choice = self.cam_select_cb.GetValue()
cam_cmd = "fswebcam -d v4l2:" + cam_choice + " --list-controls"
print("---Doing: " + cam_cmd)
stdin, stdout, stderr = ssh.exec_command(cam_cmd)
cam_output = stderr.read().strip()
print "Camera output; " + cam_output
ssh.close()
except Exception as e:
print("Some form of problem; " + str(e))
ssh.close()
if not cam_output == None:
msg_text = 'Camera located and interorgated; copy-paste a controll name from the following into the settings text box \n \n'
msg_text += str(cam_output)
wx.MessageBox(msg_text, 'Info', wx.OK | wx.ICON_INFORMATION)
评论列表
文章目录