Custom Snapmaker U1 Firmware

Camera Support

Available in: Extended firmware only

The extended firmware includes hardware-accelerated camera support with WebRTC streaming.

Features

Accessing Cameras

Internal Camera

Access at: http://<printer-ip>/webcam/

The internal camera is automatically configured and enabled.

USB Camera

Access at: http://<printer-ip>/webcam2/

USB cameras must be enabled in extended2.cfg. See USB Camera Configuration below for setup instructions.

Moonraker Camera Configuration

Camera streaming settings are configured through Moonraker configuration files in the extended/moonraker/ directory.

Internal Camera Configuration

Edit extended/moonraker/02_internal_camera.cfg to customize internal camera streaming:

[webcam case]
service: webrtc-camerastreamer
stream_url: /webcam/webrtc
snapshot_url: /webcam/snapshot.jpg
aspect_ratio: 16:9

Available streaming modes:

USB Camera Configuration

Edit extended/moonraker/03_usb_camera.cfg to enable USB camera. Uncomment one of the sections:

[webcam usb]
service: webrtc-camerastreamer
stream_url: /webcam2/webrtc
snapshot_url: /webcam2/snapshot.jpg
aspect_ratio: 16:9

Important: Only one streaming mode can be active per camera. After changing camera configuration, reboot the printer.

Camera Controls

Note: Camera controls and RTSP streaming are only available with the paxx12 camera service.

The paxx12 camera service includes a web-based interface for adjusting camera settings in real-time. Available controls depend on your camera hardware capabilities.

Accessing Camera Controls

Camera controls are accessible at:

Settings Persistence

Camera settings are automatically saved across reboots:

To reset camera settings to defaults, delete the corresponding JSON file and reboot the printer.

Configuration

All camera configuration is done through /home/lava/printer_data/config/extended/extended2.cfg. See Firmware Configuration for editing instructions.

Internal Camera Selection

By default, the extended firmware uses a custom hardware-accelerated camera service (paxx12). To switch to Snapmaker’s original camera service:

[camera]
internal: snapmaker

To disable the internal camera entirely (also disables timelapses):

[camera]
internal: none

Note: Only one camera service can be operational at a time for the internal camera.

Camera Logging

Enable logging to syslog for all camera services:

[camera]
logs: syslog

Logs are available in /var/log/messages.

RTSP Streaming

RTSP streaming is disabled by default (paxx12 service only). To enable:

[camera]
rtsp: true

RTSP streams will be available at:

USB Camera Configuration

Enable USB camera support (paxx12 service only):

[camera]
usb: paxx12

To disable USB camera:

[camera]
usb: none

When enabled, USB cameras are accessible at http://<printer-ip>/webcam2/.

After any configuration changes, reboot the printer for changes to take effect.

Timelapse Support

Fluidd timelapse plugin is included (no settings support).