Currently, a script receives several parameters such as the current snapshot number, the file name for the taken picture, etc. I think that it would be interesting to add one parameter: the total number of snapshots in the current plan.
The use-case is admittedly very limited: the way I see it, this would be handy when one can control the zoom of the camera or its position via some actuators, and the script would therefore be something like "take a snapshot and request to move to the next position". The key is that the "move to the next position" probably works best with a percentage: one could set initial and final camera positions/zoom and then do an interpolation based on the progress. But for this, we need to have the total number of snapshots first!
Version of Octolapse
Octolapse Version: 0.4.2
Version of OctoPrint
OctoPrint Version: 1.8.7
When you ran into the problem, did you have diagnostic logging enabled?
Diagnostic Logging was Enabled: _REPLACE_THISYES_OR_NO
What were you doing when the problem occurred
_REPLACE_THISSTEP_ONE_GOES_HERE
_REPLACE_THISSTEP_TWO_GOES_HERE
_REPLACE_THISSTEP_...
What should have happened?
_REPLACE_THISPUT_YOUR_DESCRIPTION_HERE
What happened instead?
_REPLACE_THISPUT_YOUR_DESCRIPTION_HERE
Operating System running OctoPrint and Octolapse
OS Name: _REPLACE_THISOS_NAME_GOES_HERE
Os Version: _REPLACE_THISOS_VERSION_GOES_HERE
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.
If this is a feature request describe it here
Currently, a script receives several parameters such as the current snapshot number, the file name for the taken picture, etc. I think that it would be interesting to add one parameter: the total number of snapshots in the current plan.
The use-case is admittedly very limited: the way I see it, this would be handy when one can control the zoom of the camera or its position via some actuators, and the script would therefore be something like "take a snapshot and request to move to the next position". The key is that the "move to the next position" probably works best with a percentage: one could set initial and final camera positions/zoom and then do an interpolation based on the progress. But for this, we need to have the total number of snapshots first!
Version of Octolapse
Octolapse Version: 0.4.2
Version of OctoPrint
OctoPrint Version: 1.8.7
When you ran into the problem, did you have diagnostic logging enabled?
Diagnostic Logging was Enabled: _REPLACE_THISYES_OR_NO
What were you doing when the problem occurred
What should have happened?
_REPLACE_THISPUT_YOUR_DESCRIPTION_HERE
What happened instead?
_REPLACE_THISPUT_YOUR_DESCRIPTION_HERE
Operating System running OctoPrint and Octolapse
OS Name: _REPLACE_THISOS_NAME_GOES_HERE Os Version: _REPLACE_THISOS_VERSION_GOES_HERE
Printer model & used firmware incl. version
Printer Model: _REPLACE_THISPRINTER_MODEL_GOES_HERE Printer Firmware Version: _REPLACE_THISPRINTER_FIRMWARE_VERSION_GOES_HERE
Browser and version of browser, operating system running browser
Browser: _REPLACE_THISBROWSER_VERSION_GOES_HERE Browser OS: _REPLACE_THISBROWSER_OS_GOES_HERE
Link to the gcode file you were printing when the problem occurred
Link to Gcode File: _REPLACE_THISGCODE_FILE_LINK_GOES_HERE
Link to settings.json
Link to settings.json with all passwords removed: _REPLACE_THISSETTINGS_JSON_LINK_GOES_HERE
Link to plugin_octolapse.log
Link to plugin_octolapse.log: LINK_GOES_HERE
Link to octoprint.log
Link to octoprint.log: _REPLACE_THISLINK_GOES_HERE
Link to contents of Javascript console in the browser
Link to javascript console output: _REPLACE_THISLINK_GOES_HERE
Screenshots and/or videos of the problem:
Screenshot/Video Links: _REPLACE_THISLINKs_GO_HERE
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.