Example #1
0
	def image(self):
		captureImageCommand = ShellCommand(self.getConnection())
		captureImageCommand.disableCommunication(True)
		tmpFile = self.tempImageFilename()

		captureImageCommand.setArguments(command = '/usr/bin/fswebcam', args = [tmpFile])
		captureImageCommand.execute()

		return {**captureImageCommand.getResponse()} + {"file": tmpFile}
	def infoWindows(self):
		ipAddrCommand = ShellCommand(self.getConnection())
		ipAddrCommand.setArguments(command = "/bin/ip", args = ['addr'])
		ipAddrCommand.execute()
		return ipAddrCommand.getResponse()
	def infoLinux(self):
		ipAddrCommand = ShellCommand(self.getConnection())
		ipAddrCommand.setArguments(command="C:\\Windows\\System32\\ipconfig.exe")
		ipAddrCommand.execute()
		return ipAddrCommand.getResponse()