Skip to content

Klipper plugin to make system IP/etc available to macros

License

Notifications You must be signed in to change notification settings

nppc/klipper_network_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Klipper Network Status Plugin

Allow gcode macros to access system IP/hostname/wifi SSID/etc.

To install, clone repo into your rpi home folder and run install.sh. You may also add the following to your moonraker configuration:

[update_manager client klipper_network_status]
type: git_repo
path: /home/pi/klipper_network_status
origin: https://github.com/JeremyRuhland/klipper_network_status
install_script: install.sh

Then, add [network_status] somewhere in your klipper configuration to enable the plugin.

You are now able to access information about the printer's network interfaces from within macros or display fields. For example, add the following to your menu override file to create a sub-list called "Network":

[menu __main __network]
type: list
name: Network

[menu __main __network _mdns]
type: command
name: mDNS: {printer.network_status.mdns}

[menu __main __network _ethip]
type: command
name: Eth IP: {printer.network_status.ethip}

[menu __main __network _wifissid]
type: command
name: Wifi SSID: {printer.network_status.wifissid}

[menu __main __network _wifiip]
type: command
name: Wifi IP: {printer.network_status.wifiip}

I find that the text can be a little long for smaller displays so it may help readability to put the actual hostname or IP address on its own line. It should scroll side to side when the selection cursor hovers over it.

About

Klipper plugin to make system IP/etc available to macros

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 54.7%
  • Shell 45.3%