Created
February 3, 2022 09:32
-
-
Save EduardoOliveira/d82a369211182cd3ba6883bce520865d to your computer and use it in GitHub Desktop.
klipper screen over wifi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download XServer XSDL for android https://m.apkpure.com/xserver-xsdl/x.org.server | |
Enable developer mode on the device | |
Enable debug over wifi | |
get the device ip to replace in screen.sh | |
create the log file /var/log/klipdroid.log | |
End result https://photos.app.goo.gl/d2XbsR74htF3N1nh7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_shell_command connect_screen_sh] | |
command: /home/pi/klipper_config/screen.sh | |
timeout: 60. | |
verbose: True | |
[gcode_macro CONNECT_SCREEEN] | |
gcode: | |
RUN_SHELL_COMMAND CMD=connect_screen_sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
adb connect 192.168.2.131:5555 | |
adb shell am start x.org.server/.MainActivity | |
echo "sleeping" | |
sleep 15 | |
echo "well rested" | |
DISPLAY=192.168.2.131:0 $HOME/.KlipperScreen-env/bin/python $HOME/KlipperScreen/screen.py &> /var/log/klipdroid.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment