FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
639 stars 99 forks source link

Non-DSLR Camera script gives errors, but I can't figure out what's wrong #748

Open HaLo2FrEeEk opened 3 years ago

HaLo2FrEeEk commented 3 years ago

If this is a feature request describe it here

_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE

Version of Octolapse

Octolapse Version: 0.4.1

Version of OctoPrint

OctoPrint Version: 1.6.1

When you ran into the problem, did you have diagnostic logging enabled?

Diagnostic Logging was Enabled: Yes

What were you doing when the problem occurred

  1. Modified the DSLR snapshot script to wget a photo from an IP Webcam. Pastebin link to script.
  2. Saved as FullResSnapshot.sh in ~/scripts
  3. Created a new script camera and set the script to the path
  4. Clicked "Test Script"

What should have happened?

The script should use wget to fetch a full resolution photo from IPWebcam running on my phone, then copy that photo into the snapshot_directory, keeping the original full res photo.

What happened instead?

I get a generic error when I test the script: "Errors were detected - The 'IPWebcam + Full Res - Snapshot Camera Script' process returned errors. See plugin_octolapse.log for details" Reviewing the log indicates that the wget was successful, but the path is set to "/tmp/..." so the snapshot is going into the tmp folder in the root directory, not the octolapse data directory.

Operating System running OctoPrint and Octolapse

OS Name: OctoPi Os Version: 0.18.0

Printer model & used firmware incl. version

Printer Model: Printer Firmware Version:

Browser and version of browser, operating system running browser

Browser: Browser OS:

Link to the gcode file you were printing when the problem occurred

Link to Gcode File:

Link to settings.json

Link to settings.json with all passwords removed: https://pastebin.com/5aRpmeFM

Link to plugin_octolapse.log

Link to plugin_octolapse.log: https://pastebin.com/grr7k8ex

Link to octoprint.log

Link to octoprint.log: No relevant lines in this log result from this error

Link to contents of Javascript console in the browser

Link to javascript console output: empty

Screenshots and/or videos of the problem:

Screenshot/Video Links:

Please consider becoming a patron

If you like this project, please support my work by becoming a patron, and consider adding a 'star' to the repository. It takes a lot of time and effort to maintain the project and respond to issues. The cost of test prints, software, cameras, printer parts, etc. can quickly add up, so every bit helps.

You can find various videos and tutorials by subscribing to my Youtube channel. You can also follow me on Twitter.