naruhaxor / AndroidKlipperScreen

a simple writeup /installer script to use android Devices and a UI for KlipperScreen for RaspberryPI
112 stars 16 forks source link

Can't get the screen to run in wifi mode #7

Closed ubqtous closed 2 years ago

ubqtous commented 2 years ago

This works perfectly with ADB, however I can't get it to work with Wifi.

-I uninstalled adb tools -I made sure for step 4 I have removed the ADB script and pasted the wifi script, with the IP of the fire tablet from the blue screen:

#!/bin/bash
DISPLAY=(192.168.xx.xxx):0 /home/pi/.KlipperScreen-env/bin/python3 /home/pi/KlipperScreen/screen.py

-I restarted all services, including KlipperScreen

Note: raspberry pi and the fire tablet are connected to different wifi networks (one is on 5Ghz and another is on 2.4Ghz, respectively). I can ping the fire tablet from the raspberry pi successfully.

I receive this error when I run the ./launch_klipperscreen.sh

/launch_klipperscreen.sh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
2022-06-16 15:56:01,737 [screen.py:main()] - KlipperScreen version: v0.2.3-14-geedf544
2022-06-16 15:56:01,738 [config.py:get_config_file_location()] - Passed config file: /home/pi/KlipperScreen.conf
2022-06-16 15:56:01,739 [config.py:get_config_file_location()] - Found configuration file at: /home/pi/klipper_config/KlipperScreen.conf
2022-06-16 15:56:01,739 [config.py:__init__()] - Config path location: /home/pi/klipper_config/KlipperScreen.conf
2022-06-16 15:56:01,759 [config.py:log_config()] -  ===== Config File =====
[printer yourprintername]
moonraker_host = 127.0.0.1
moonraker_port = 7125
moonraker_api_key = [redacted]
=======================
2022-06-16 15:56:01,761 [config.py:__init__()] - ====== Saved Def ======

[main]
screen_blanking = off
theme = material-dark
confirm_estop = True

=======================
2022-06-16 15:56:01,762 [config.py:__init__()] - Configured printers: [
  {
    "yourprintername": {
      "moonraker_host": "127.0.0.1",
      "moonraker_port": "7125",
      "moonraker_api_key": "redacted"
    }
  }
]
2022-06-16 15:56:01,762 [config.py:__init__()] - Detected language: None
2022-06-16 15:56:01,770 [screen.py:__init__()] - OS Language: en_GB.UTF-8
RobRobM commented 2 years ago

Did you enter your IP like this?: DISPLAY=(192.168.0.10):0

If so, just remove the (): DISPLAY=192.168.0.10:0

ubqtous commented 2 years ago

OMG that was it!! I tried everything except for this 😭

Thank you so much @RobRobM !!