Skip to content

im (image capture) command fails during timelapse capture #30

@hogwell

Description

@hogwell

Description

I use the 'im' command to capture an image file in the scheduler settings at a particular time of day.
This only works if a timelapse capture is not active also.

Steps to Reproduce

  1. Make sure a timelapse is not shown running on the main preview screen.
  2. In the RPi_web_cam_interface, go to "Edit Schedule Settings".
  3. Now set up a command to use the "im" command in the currently active "Period Start" action.
  4. Push "Save Settings", which will cause the "im" command to execute.
  5. Click the top link back to the main preview page.
  6. Click "Download Video and Images".
  7. Look for the latest Image file and it should be the picture that was just captured in step 4 above.
  8. Now, go back to the main screen and start a timelapse capture running.
  9. go to "Edit Schedule Settings".
  10. Verify that the im command is still present for the active period.
  11. Push "Save Settings", which will cause the "im" command to execute.
  12. Go back to main preview screen and click "Download Video and Images" again.
  13. You will see that this time the image has not been added. Instead, it will have been erroneously saved as an additional timeslice file in the timelapse sequence.

Expected Behavior

If an 'im' command is executed during a timelapse capture, it should save a separate image file and not interfere with the timelapse sequece of images that are being captured.

Additional Information (Optional)

Viewing the python code shows that the capture_still_image function behaves differently based on a state flag that indicates a timelapse is being captured.
But this behavior is only relevant when capture_still_image is called by the timelapse logic, not when processing the 'im' or 'ix' commands.

Pi Model

5

Operating System

Any Raspbian (9.x or older)

Checks

  • I have not found any related issues
  • I have updated to the latest version
  • I want to contribute a fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixUsed to fix bugs in current release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions