Skip to content

KlipperWrt v2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ihrapsa ihrapsa released this 06 Jul 01:03
· 49 commits to main since this release
da866b2

Mainsail and Fluidd extroot filesystem for the Creality Wi-Fi Box running OpenWrt.

Each archive comes preinstalled with either fluidd or Mainsail, Klipper, Moonraker, mjpg-streamer for webcam stream and Fry's timelapse component for taking frames and rendering the video.

Changelog:

  • LuCi web interface to easily set-up internet connection.
  • Custom Argon theme and config luci-app
  • Web UI with integrated Terminal and File Browser
  • Fluidd v1.15.0
  • Mainsail v1.6.0
  • zswap on zram of 128mb + 512mb swap on sdcard (lzo/zbud)
  • timelapse autorender now is set by default to False

STEPS:

  • Make sure you've flahsed/sysupgraded latest .bin file from /Firmware/OpenWrt_snapshot/ or down below.
  • Connect to the KlipperWrt access point
  • Access LuCi web interface and log in on 192.168.1.1:81
  • (optional but recommended) Add a password to the KlipperWrt access point: Wireless -> Under wireless overview EDIT the KlipperWrt interface -> Wireless Security -> Choose an encryption -> set a password -> Save -> Save & Apply
  • (optional but recommended) Add a password: System -> Administration -> Router Password
  • Connect as a client to your Internet router: Network -> Wireless -> SCAN -> Join Network -> check Lock to BSSID -> Create/Assign Firewall zone then under custom type wwan enter -> Submit -> Save -> Save & Apply
  • Connect back to your router and either find the new box's ip inside the DHCP list or type http://klipperwrt.local:81
  • ❗ Access the terminal tab (Services -> Terminal) ❗ If terminal tab is not working go to Config tab and change Interface to the interface you are connecting through the box (your wireless router SSID for example) -> Save & Apply.
  • Download and execute the install script:
cd ~
wget https://github.com/ihrapsa/KlipperWrt/raw/main/KlipperWrt_install.sh
chmod +x KlipperWrt_install.sh
./KlipperWrt_install.sh
  • Follow the script prompts to install either fluidd or Mainsail automatically
  • Wait until it prompts you to reboot
  • When done and rebooted use http://klipperwrt.local or http://box-ipto access the Klipper client
  • Done!

Setting up your printer.cfg

  • put your printer.cfg inside /root/klipper_config
  • delete these blocks from your printer.cfg: [virtual_sdcard], [display_status], [pause_resume] since they're included inside client.cfg
  • move all your macros to client_macros.cfg
  • add these 2 lines inside your printer.cfg:
    [include client.cfg]
    [include client_macros.cfg]
  • Done!

Notes:

  • If you want to keep the box wired to your router Change network protocol inside Network -> Interfaces-> change Protocol from Static address to DHCP client -> Save & apply.
  • Timelapse is set to autorender: False under [timelapse] block inside moonraker.conf. This way if the print fails you'll still be able to render it by executing the TIMELAPSE_RENDER macro. You can also copy the frames from /tmp/timelapse to your PC and render the there. Check here for how to set your TIMELAPSE_TAKE_FRAME macro or TIMELAPSE_TAKE_PARKED_FRAME inside your slicer layer change.