Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

giloser
Copy link
Collaborator

@giloser giloser commented May 17, 2024

fix the status with image
add pre and post command delay
add again command

…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)")

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+")")

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

@@ -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):
Copy link

@jacopotediosi jacopotediosi Jun 29, 2024

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):
Copy link

@jacopotediosi jacopotediosi Jun 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants