小黑屋|Klipper玩客 ( 桂ICP备13004039号-7 )

GMT+8, 2024-9-20 00:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

树莓派安装klipper、crowsnest、timelapse全记录

1596
2
0
0
文一 LV2
正文
发布时间:2023-02-18
本帖最后由 文一 于 2023-12-14 21:04 编辑

树莓派安装klipper,主要包括内容以下内容,其中2-5的内容,其他系统安装klipper等组件都可借鉴。注意,安装务必在用户目录下,不要在ROOT目录下。此外,如果无法安装大概率是网络环境不好,要么等午夜人少,要么找个工具:

  • raspberry开启root
  • 增加新用户
  • 使用kiauh安装klipper
  • Crowsnest的安装
  • 安装timlapse

1、raspberry开启root
开启ssh,在sd卡上新建ssh文件。
使用pi账户进行登陆命令行,执行命令:
  1. sudo passwd root
复制代码
设置root用户密码,然后在执行
  1. sudo passwd --unlock root
复制代码
开启root账户

使用
  1. su root
复制代码
测试是否生效!
2、增加新用户
添加用户
  1. useradd -m -s /bin/bash klipper
复制代码
设置用户密码
  1. passwd klipper
复制代码
设置用户权限
  1. sudo visudo
复制代码
找到root        ALL=(ALL:ALL)   ALL  
后面添加:
  1. klipper      ALL=(ALL)ALL
复制代码
3、使用kiauh安装klipper
  1. cd ~
  2. ###进入登录用户家目录
  3. git clone https://github.com/th33xitus/kiauh.git
  4. ###官方kiauh脚本地址
  5. git clone https://gitee.com/miroky/kiauh.git
  6. ###国内kiauh脚本地址(与上面官方地址二选一即可)
  7. ./kiauh/kiauh.sh
复制代码
4、Crowsnest的安装
  1. cd ~
  2. git clone https://github.com/mainsail-crew/crowsnest.git
  3. cd ~/crowsnest
  4. sudo make install
复制代码
安装成功后可在moonraker.conf添加以下代码:
  1. [update_manager crowsnest]
  2. type: git_repo
  3. path: ~/crowsnest
  4. origin:
  5. https://github.com/mainsail-crew/crowsnest.git
  6. install_script: tools/install.sh
复制代码

配置crowsnest
  1. [crowsnest]
  2. log_path: ~/printer_data/logs/crowsnest.log
  3. log_level: quiet #调试可使用 verbose
  4. [cam 1]
  5. mode: mjpeg
  6. port: 8080
  7. device: /dev/video1
  8. resolution: 1600x1200
  9. max_fps: 12
  10. v4l2ctl: focus_auto=0,focus_absolute=14
复制代码
如crowsnest.log出现以下内容,则表示安装成功:
  1. [02/16/23 07:37:20] crowsnest: Try to start configured Cams / Services...
  2. [02/16/23 07:37:22] crowsnest: INFO: Configuration of Section [cam 1] looks good. Continue...
  3. [02/16/23 07:37:24] crowsnest: ... Done!
  4. [02/16/23 07:37:25] crowsnest: Starting ustreamer with Device /dev/video1 ...
复制代码

对于某些摄像头来说,可能黑屏,不显示,这可能是延迟过大造成的,需要修改文件,

5、安装timlapse
  1. cd ~/
  2. git clone https://github.com/mainsail-crew/moonraker-timelapse.git
  3. cd ~/moonraker-timelapse
  4. make install
复制代码
以上,今天安装记录。
回复

 

全部评论 共 2 个

admin LV9

admin 发表于 2023-2-18 19:58 显示全部楼层

神速。我刚@你。

文一 LV2

文一 发表于 2023-2-19 09:26 显示全部楼层

实际上如果想偷懒,还有一个最简单的办法,直接安装mainsail os镜像。 目前最新版本是MainsailOS 1.0.1,发布日期是Dec 31, 2022。包括以下内容:

Here a list of included and preinstalled Software:

  • Klipper (3D Printer Firmware)
  • Moonraker (API Web Server for Klipper)
  • Mainsail (Web interface for Klipper/Moonraker)
  • Crowsnest (Webcam streaming)
  • Sonar (Keepalive daemon)
  • Nginx (Webserver & Proxy)


也就是说安装一套,就差个timelapse了。

https://github.com/mainsail-crew/MainsailOS

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表