-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix status with image problem #430
base: master
Are you sure you want to change the base?
Conversation
add fix for camera with new version
…essage when send photo and send message without image if with image it doesn't add trace of image to be send to try to understand why in some case the image is not send fix error in command again
webcam = provided_webcam.config | ||
|
||
if webcam is None: | ||
self._logger.exception("Exception WebcamNotAbleToTakeSnapshotException(provided_webcam is None)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging.Logger.exception should only be called from an exception handler: https://docs.python.org/3/library/logging.html#logging.Logger.exception
can_snapshot = snapshot_url is not None and snapshot_url != "http://" and snapshot_url != "" | ||
|
||
if not can_snapshot: | ||
self._logger.exception("Exception WebcamNotAbleToTakeSnapshotException("+webcam.name+")") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging.Logger.exception should only be called from an exception handler: https://docs.python.org/3/library/logging.html#logging.Logger.exception
octoprint_telegram/__init__.py
Outdated
@@ -2573,9 +2683,12 @@ def getUpdateMsgId(self, id): | |||
del self.updateMessageID[id] | |||
return uMsgID | |||
|
|||
def take_image(self, snapshot_url=""): | |||
def take_image(self, snapshot_url="",cam_conf=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the parameter represents an object, it should be initialized as None, not 0.
@@ -2684,12 +2804,15 @@ def calculate_ETA(self, printTime=0): | |||
|
|||
return strtime + strdate | |||
|
|||
def create_gif_new(self, chatID, sec=7, multicam_prof=0): | |||
def create_gif_new(self, chatID, sec=7, multicam_prof=0,cam_conf=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the parameter represents an object, it should be initialized as None, not 0.
fix the status with image
add pre and post command delay
add again command