Compare commits

..

No commits in common. "540ddbe0a0cf67bde9897c7f167c08795b27b143" and "fa636bf603dfa4a6d5a4daecc574caaf90743a63" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -54,7 +54,7 @@ crontab -e
> Additionally:
>
> - getting temperature from DS18B20 over SSH,
> - saving pictures to FTP, SFTP, SMB.
> - saving pictures to FTP.
> - converting picture collection to video.
> - publishing video to Telegram chat and Wordpress site.
>

View File

@ -683,12 +683,8 @@ class Connect:
)
try:
response = urllib.request.urlopen(request).read()
try:
if not response.startswith(b'\xff\xd8'):
response = str(response.decode('utf-8'))
except UnicodeDecodeError:
pass
return {"success": True, "result": response}
except Exception as error:
local_logger.debug(msg='error: ' + '\n' + str(error))
@ -2434,7 +2430,6 @@ class Sensor(Connect):
except Exception as error:
local_logger.debug(msg='error: ' + '\n' + str(error))
return 'ERROR'
return 'ERROR'
def value(self) -> str:
"""Public method to get sensor value.
@ -3140,11 +3135,7 @@ class Sequence:
if sensor_value != 'ERROR':
m = sensor_value
else:
local_logger.warning(msg=""
+ "the 'ERROR' " + sensor_name + " value"
+ " has been replaced with an empty string"
)
m = ""
m = ''
local_logger.info(msg=''
+ 'action:' + key + ' = ' + action
+ ',' + x + ',' + y + ',' + z