Skip to content

Timelapse Plugin for moonraker - Adding support for script control camera (DSLR, Sony HDR, ...)

License

Notifications You must be signed in to change notification settings

fbeauKmi/moonraker-timelapse

 
 

Repository files navigation

Moonraker-timelapse Script mod

A 3rd party Moonraker component to create timelapse of 3D prints. Here is fork of moonraker timelapse : First attempt to get it work with sh script base camera

Learn More about...
https://github.com/mainsail-crew/moonraker-timelapse

CAUTION : Use this at your own risk. As the plugin allows to run shell command on the server you may expose your printer to security issues. Be sure to understand your shell script behavior.

SONY AX700 Timelapse

Small history of this project

I recently build a VORON 2.4 and switch my main printer from Marlin/Octoprint to klipper/mainsail. Octoprint offers many plugins, huge community, ... whatever. I used to make timelapses with a SONY FDR-AX700 camera with Octolapse, to get stabilization, and easy support for DSLR cameras.

SONY FDR-AX700 is not a DSLR and is controlled via WIFI AP of the camera

What a script based camera ?

As Octolapse do, this component use shell script to control DSLR and other cameras. More information here

Configure Camera for moonraker-timelapse

First you should connect your camera :

As I did not want to fork Mainsail too, the camera could not be set in UI settings, you should integrate those lines in moonraker.conf

## moonraker.conf

[timelapse]
camera_type: script #allow value webcam, script
camera: Your_Camera #whatever you want it is not used
snapshoturl: /home/pi/moonraker-timelapse/scripts/YOUR_SCRIPT.sh  #Path should be absolute

then restart moonraker.

You should be able to take a snapshot with TIMELAPSE_TAKE_FRAME from Mainsail console.

Experimental : simulate toolhead motion

macro TIMELAPSE_MOTION_SETTINGS allows to give 'motion' to the toolhead.

To allow motion, the following paramters must be set:

MOTION_MODE = none(default), linear (go and back between 2 points), ellipse (draw an ellipse in 2 points area), star (draw a star), orbital, flower

MOTION_SPEED = number of frames for full motion

X1, Y1 and X2, Y2 = coords of the motion area

MOTION_MODE is enable only if PARK_POS is set to custom

MOTION_MODE

linear star ellipse
linear star ellipse
orbital flower
orbital flower

About

Timelapse Plugin for moonraker - Adding support for script control camera (DSLR, Sony HDR, ...)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.6%
  • Shell 12.4%