Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

feature: optional retry to take a picture on error #366

Merged
merged 4 commits into from
Jan 12, 2022
Merged

Conversation

andi34
Copy link
Owner

@andi34 andi34 commented Jan 11, 2022

Prerequisites checklist

What is the purpose of this pull request? (put an "x" next to an item)

  • New feature

What changes did you make? (Give an overview)

Add an option to retry taking a picture on error. This might be useful e.g. if gphoto fails because the fokus was not ready.

Is there anything you'd like reviewers to focus on?

As a next step, the api.cheese function should be revisited to avoid double code.

Change-Id: I830caf18be25c6d51a42318ba4055b7e3afb9a72
src/js/core.js Show resolved Hide resolved
Copy link

@up-87 up-87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Used my lunch break to quickly test it on a photobooth and it works like expected (after I noticed and fixed the fact that I uninstalled gphoto2 in my recent experiments with python-gphoto - but that's my fault :D )

@andi34
Copy link
Owner Author

andi34 commented Jan 12, 2022

Thanks @up-87 , I am going to make mentioned changes to the api.cheesein the evening to avoid double code

- avoid making a get request while retrying to take a picture

Change-Id: Ie59ec8cfc7687dd3558d7b101e51c94e77130cff
- on retry we only need the cheese message again,
  save some lines of code

Change-Id: I21f89d3e8deb0c649e1793cf86678cc8481e454c
@andi34
Copy link
Owner Author

andi34 commented Jan 12, 2022

Adminpanel: Keep in general section? Move to picture section?

timeout = countdown

Change-Id: Ib5e9714aebfd9081ed043dd71f0983c4ab21ebf7
@andi34 andi34 merged commit d629108 into dev Jan 12, 2022
@andi34 andi34 deleted the feature/picture-retry branch January 12, 2022 21:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants