diff --git a/docs/README.md b/docs/README.md index c18bc7e1..abc49e01 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,8 +1,7 @@ # Overview - [Installation](installation.md) -- [Update from 0.1.x to latest](update-0.1.x.md) -- [Update from 0.0.x to 0.1.x](update-0.0.x.md) +- [Update](update.md) - [Macros](macros.md) - [Slicer upload](slicer-upload.md) - [Gcode thumbnails (PrusaSlicer & SuperSlicer only)](gcode-thumbnails.md) \ No newline at end of file diff --git a/docs/images/logo-mainsail.png b/docs/images/logo-mainsail.png new file mode 100644 index 00000000..16d72312 Binary files /dev/null and b/docs/images/logo-mainsail.png differ diff --git a/docs/images/screenshot-dashboard.png b/docs/images/screenshot-dashboard.png index 61d30f22..720d6bd2 100644 Binary files a/docs/images/screenshot-dashboard.png and b/docs/images/screenshot-dashboard.png differ diff --git a/docs/installation.md b/docs/installation.md index 0021aa4c..a74ed58e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -30,8 +30,8 @@ cd ~/klipper ``` After you install Klipper with its dependencies you have to change the location -of the `printer.cfg`. This is definied in the `/etc/default/klipper` file. To edit -this file type: +of the `printer.cfg` and add the UDS. This is definied in the `/etc/default/klipper` file. +To edit this file type: ``` sudo nano /etc/default/klipper ``` @@ -41,7 +41,7 @@ KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -l /tmp/klip ``` to: ``` -KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log" +KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log -a /tmp/klippy_uds" ``` Save the file with `CTRL+O` and close the editor with `CTRL+X`. @@ -96,7 +96,7 @@ trusted_clients: 192.168.1.0/24 ``` -Restart Moonraker (sudo service mooonraker restart) and open the url `http://:7125/printer/info` in your browser. +Restart Moonraker (`sudo service moonraker restart`) and open the url `http://:7125/printer/info` in your browser. If you see a content like this ``` @@ -241,7 +241,7 @@ Now we can install Mainsail (static httpdocs). Now you can download the current mainsail static data ``` cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.1.3/mainsail-beta-0.1.3.zip && unzip mainsail.zip && rm mainsail.zip +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.0/mainsail-beta-0.2.0.zip && unzip mainsail.zip && rm mainsail.zip ``` Now it should be possible to open the interface: `http:///`. diff --git a/docs/update-0.0.x.md b/docs/update-0.0.x.md deleted file mode 100644 index 2364bcf0..00000000 --- a/docs/update-0.0.x.md +++ /dev/null @@ -1,47 +0,0 @@ -# Update from 0.0.x to 0.1.x -Between 0.0.x and 0.1.x was a big rebuild of Moonraker. Thats the reason for the separate guide. - -## Change Klipper branch -``` -cd ~/klipper -git fetch arksine -git checkout arksine/dev-moonraker-testing -``` - -## Install new Moonraker branch -``` -cd ~ -git clone https://github.com/Arksine/moonraker.git -``` - -we have to remove the old moonraker service and install the new version: -``` -cd ~/moonraker/scripts -./uninstall-moonraker.sh -./install-moonraker.sh -``` - -Finally, we have to change the `printer.cfg`. The section `\[api_server\]` is now called `\[moonraker\]`. - -## Update the nginx configuration - -The nginx configuration (`/etc/nginx/sites-available/mainsail`) will need the following additional section: -``` -location /server { - proxy_pass http://apiserver/server; - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Scheme $scheme; -} -``` - -Restart nginx with `sudo service nginx restart` - -## Update static files from Mainsail - -``` -rm -R ~/mainsail/* -cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.1.2/mainsail-beta-0.1.2.zip && unzip mainsail.zip && rm mainsail.zip -``` \ No newline at end of file diff --git a/docs/update-0.1.x.md b/docs/update-0.1.x.md deleted file mode 100644 index 3415a972..00000000 --- a/docs/update-0.1.x.md +++ /dev/null @@ -1,58 +0,0 @@ -# Update from 0.1.x to latest -Updates after 0.1.x are easier than 0.0.x to 0.1.x. - -## Update Moonraker -``` -cd ~/moonraker -git pull -sudo service moonraker restart -``` - -create a new file ~/moonraker.conf -``` -[server] -host: 0.0.0.0 -config_path: ~/klipper_config - -[authorization] -enabled: true -trusted_clients: - 192.168.0.0/24 -``` - -## Update Klipper -``` -cd ~/klipper -git fetch -git checkout origin/master -``` - -### Move klipper config files to the subdirectory -create the new subdirectory and move `printer.cfg` in `~/klipper_config`: -``` -mkdir ~/klipper_config/ -mv ~/printer.cfg ~/klipper_config/ -``` -move also included klipper config files to this directory. - -### Change Klipper default printer.cfg location -edit file `/etc/default/klipper` and change `/home/pi/printer.cfg`to `/home/pi/klipper_config/printer.cfg`. - -### Modify printer.cfg -now you have to remove the `[moonraker]` section from `~/klipper_config/printer.cfg` and check if there are the following sections in it: -``` -[virtual_sdcard] -path: ~/sdcard - -[pause_resume] -[display_status] -``` - -and rename `RESET_SD` in your cancel print macro to `SDCARD_RESET_FILE`. - -## Update static files from Mainsail -``` -rm -R ~/mainsail/* -cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.1.3/mainsail-beta-0.1.3.zip && unzip mainsail.zip && rm mainsail.zip -``` \ No newline at end of file diff --git a/docs/update.md b/docs/update.md new file mode 100644 index 00000000..9ee913a5 --- /dev/null +++ b/docs/update.md @@ -0,0 +1,41 @@ +# Update Mainsail + +## Update Klipper +``` +cd ~/klipper +git fetch +git checkout origin/master +``` + +Please check the location of the `printer.cfg` and the UDS in the `/etc/default/klipper` file. This +should look like: +``` +KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log -a /tmp/klippy_uds" +``` +If you have to change the location of `printer.cfg` in `/etc/default/klipper` +please create the directory `~/klipper_config` and move your config files in this directory. + +Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts +correctly and then continue the guide. + +## Update Moonraker (API) +``` +cd ~/moonraker +git fetch +git checkout origin/master +``` + +Restart Moonraker (`sudo service moonraker restart`) and open the url `http://:7125/printer/info` in your browser. + +If you see a content like this +``` +{"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-643-g528f9f25", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}} +``` + +## Update Mainsail (webinterface) +``` +cd ~/mainsail +rm -R ./* +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.0/mainsail-beta-0.2.0.zip && unzip mainsail.zip && rm mainsail.zip +``` +Now it should be possible to open the interface: `http:///`. \ No newline at end of file diff --git a/public/config.json b/public/config.json index 3a319904..b6b4dc18 100644 --- a/public/config.json +++ b/public/config.json @@ -1,6 +1,7 @@ { "socket": { - "hostname": "kossel.local", - "port": 80 + "hostname": "voron250.local", + "port": 80, + "metadataRequestDelay": 2000 } } \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico index 02b4d382..3426f945 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/img/heard.png b/public/img/heart.png similarity index 100% rename from public/img/heard.png rename to public/img/heart.png diff --git a/src/App.vue b/src/App.vue index 07abc702..21864a6d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,7 +28,7 @@ ( category.title !== 'Webcam' && category.title !== 'Heightmap' && - (is_ready || category.alwaysShow) + (klippy_state !== 'error' || category.alwaysShow) ) "> mdi-{{ category.icon }} @@ -38,7 +38,7 @@