Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save s-show/fe70871ca30131595308ee128d94c924 to your computer and use it in GitHub Desktop.
Save s-show/fe70871ca30131595308ee128d94c924 to your computer and use it in GitHub Desktop.
  1. OctoPrint の Raspberry pi に SSH でアクセスする。

  2. lsusb コマンドで C270 の ID を確認する。

pi@octopi:~ $ lsusb
Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 004: ID 1eaf:0004
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  1. オプションを変更するため sudo vi /boot/octopi.txt でファイルを編集する
### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://faq.octoprint.org/mjpg-streamer-config for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
#camera_usb_options="-r 640x480 -f 10"
+
+ camera_usb_options="-r 1280x720 -f 30"
  1. sudo reboot を実行して再起動する。

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment