Implementing touch screen interface using Raspberry Octoprint January 26, 2015 08:27AM |
Registered: 9 years ago Posts: 792 |
Then expand the file system, configure time zone enable the webcam support (if you have) Save and reboot.
sudo apt-get update sudo apt-get upgrade
sudo apt-get install apache2 php5 bc chromium-browser matchbox x11-xserver-utils unclutter mplayer
sudo mkdir /var/www/img
cd ~ sudo apt-get install subversion libjpeg8-dev imagemagick libav-tools cmake git clone [github.com] cd mjpg-streamer/mjpg-streamer-experimental make sudo make install
cd ~ sudo apt-get install python-pip python-dev git sudo apt-get install python-setuptools git clone [github.com] cd OctoPrint sudo python setup.py install mkdir ~/.octoprint sudo usermod -a -G tty pi sudo usermod -a -G dialout pi
sudo vi /etc/fstab
tmpfs /tmp/ tmpfs defaults,noatime,mode=1777 0 0
sudo visudo
brftv ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff www-data ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff, /usr/bin/mplayer
cd ~ wget [dl.dropboxusercontent.com] tar xvf home-pi_v1.3.tar cd /var/www sudo rm index.html sudo wget [dl.dropboxusercontent.com] sudo tar xvf var-www_v1.3.tar
cd ~ wget [forums.reprap.org] unzip img.zip sudo cp /home/pi/img/* /var/www/img/
cd ~ ./start_touchscreen_calibration.sh
sudo vi /usr/share/X11/xorg.conf.d/10-evdev.conf
Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Option "InvertX" "true" Driver "evdev" Option "Calibration" "214 3793 214 3984" EndSection
Option "InvertY" "true"
octoprint
sudo vi /etc/rc.local
/bin/sleep 10 && su pi -c '/home/pi/start_octoprint.sh' &
Re: Implementing touch screen interface using Raspberry Octoprint January 26, 2015 09:21AM |
Registered: 11 years ago Posts: 1,320 |
Re: Implementing touch screen interface using Raspberry Octoprint January 26, 2015 09:27AM |
Registered: 9 years ago Posts: 792 |
Re: Implementing touch screen interface using Raspberry Octoprint March 01, 2015 06:29PM |
Registered: 9 years ago Posts: 1 |
Re: Implementing touch screen interface using Raspberry Octoprint March 01, 2015 07:39PM |
Registered: 10 years ago Posts: 241 |
Quote
stefane
hello i have the lcd sreen 3.2 and is not possibilite fonction ,
you knon why
my raspberry is pi b+ and the lcd sreen 3.2 inch rpi lcd (v3)
would you have a solution
thank you very much
Re: Implementing touch screen interface using Raspberry Octoprint March 02, 2015 09:34AM |
Registered: 10 years ago Posts: 869 |
Re: Implementing touch screen interface using Raspberry Octoprint April 20, 2015 10:03PM |
Registered: 9 years ago Posts: 792 |
Quote
cdru
Watching on a 3" screen what's printing right next to it is like getting front row midfield seats to the SuperBowl and watching a telecast of it streamed to your cell phone. The rest of the functionality I do like though.
Re: Implementing touch screen interface using Raspberry Octoprint April 21, 2015 02:57PM |
Registered: 10 years ago Posts: 469 |
Re: Implementing touch screen interface using Raspberry Octoprint April 21, 2015 07:23PM |
Registered: 9 years ago Posts: 44 |
Re: Implementing touch screen interface using Raspberry Octoprint May 04, 2015 07:42AM |
Registered: 9 years ago Posts: 792 |
Quote
Make_3D
Hi,
This looks like a very interesting idea, i am currently using raspberry pi 2 and octoprint to control my prusa i3 wireless from my laptop. So just to clarify, using the pi in this way will allow me to control my printer via the touchscreen and i can still access the printer via a web interface wirelessly to upload print files from my laptop? Also, i dont currently have a lcd screen for the pi, does it matter which screen i buy for it? i have seen 2.8", 3.2" and 3.5" versions of the touchscreen, i am assuming that it should work with any of these screens?
I was looking at this one,
t[www.ebay.co.uk]
My main goal would be to ditch my current LCD panel and use the Pi as the direct interface to my printer, getting rid of my LCD will take some of the load off from my electronics. I cant see why this wouldnt work.
Regards,
Chris
Re: Implementing touch screen interface using Raspberry Octoprint May 04, 2015 08:14AM |
Registered: 10 years ago Posts: 14,672 |
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 01:04AM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 01:27PM |
Registered: 10 years ago Posts: 41 |
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 02:07PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 03:24PM |
Registered: 10 years ago Posts: 41 |
sleep 10s && ./home/pi/mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -i "/home/pi/mjpg-streamer/mjpg-streamer-experimental/input_uvc.so" -o "./home/pi/mjpg-streamer/mjpg-streamer-experimental/output_http.so -w ./home/pi/mjpg-streamer/mjpg-streamer-experimental/www"
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 09:42PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 06, 2015 11:49PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 07, 2015 12:22AM |
Registered: 10 years ago Posts: 41 |
Re: Implementing touch screen interface using Raspberry Octoprint August 07, 2015 03:56AM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 07, 2015 12:09PM |
Registered: 10 years ago Posts: 41 |
Re: Implementing touch screen interface using Raspberry Octoprint August 08, 2015 04:23AM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 08, 2015 09:13AM |
Registered: 10 years ago Posts: 41 |
it will show you like my first post of this threadQuote
cd ~
wget [url]https://dl.dropboxusercontent.com/u/20305979/octopi/home-pi_v1.3.tar[/url]
tar xvf home-pi_v1.3.tar
cd /var/www
sudo rm index.html
sudo wget [url]https://dl.dropboxusercontent.com/u/20305979/octopi/var-www_v1.3.tar[/url]
sudo tar xvf var-www_v1.3.tar
Re: Implementing touch screen interface using Raspberry Octoprint August 08, 2015 09:58AM |
Registered: 10 years ago Posts: 41 |
curl -H "Content-Type: application/json" --request POST --data '{"command": "disconnect"}' --header 'X-ApiKey: F32D7E522B824A298B2B3F143264F59A' --verbose [127.0.0.1]
* About to connect() to 127.0.0.1 port 80 (#0) * Trying 127.0.0.1... * connected * Connected to 127.0.0.1 (127.0.0.1) port 80 (#0) > POST /api/connection HTTP/1.1 > User-Agent: curl/7.26.0 > Host: 127.0.0.1 > Accept: */* > Content-Type: application/json > X-ApiKey: F32D7E522B824A298B2B3F143264F59A > Content-Length: 25 > * upload completely sent off: 25 out of 25 bytes * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.1 or later with persistent connection, pipelining supported < HTTP/1.1 401 UNAUTHORIZED < Content-Type: text/html; charset=utf-8 < Content-Length: 19 < Cache-Control: no-cache < X-Clacks-Overhead: GNU Terry Pratchett < Set-Cookie: session="Vy2pULu1Z3jlrpDovaWUzbWhQfE=?_id=UycwYWYxNzBiNThjYmI3YTYzY2YzZjE0MmViZTMwYjJiYScKcDEKLg=="; Path=/; HttpOnly < Server: TornadoServer/4.0.1 < * Connection #0 to host 127.0.0.1 left intact No API key provided* Closing connection #0
Re: Implementing touch screen interface using Raspberry Octoprint August 08, 2015 09:11PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 08, 2015 09:15PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint August 09, 2015 05:20AM |
Registered: 10 years ago Posts: 41 |
Re: Implementing touch screen interface using Raspberry Octoprint August 09, 2015 05:32AM |
Registered: 10 years ago Posts: 41 |
# Copy this script on raspberry to this location # sudo cp /mnt/smb1/_octopi/static/get_api_printer.sh /var/www cd /var/www/tmp/ wget -N 127.0.0.1:5000/api/printer --header 'X-Api-Key:2DE83FAD0F1D4018B48E06804F02C7F5' grep -m 1 '"actual":' printer | awk -F ': ' '{print $2}' | sed 's/\,//g' > var_printer_bed_actual_temp grep '"actual":' printer | tail -1 | awk -F ': ' '{print $2}' | sed 's/\,//g' > var_printer_extruder_actual_temp grep -m 1 '"target":' printer | awk -F ': ' '{print $2}' | sed 's/\,//g' > var_printer_bed_target_temp grep '"target":' printer | tail -1 | awk -F ': ' '{print $2}' | sed 's/\,//g' > var_printer_extruder_target_temp
<?php // get api data from script exec("bash ./get_api_printer.sh"); // load variable from file $var_printer_bed_actual_temp = round(file_get_contents('/var/www/tmp/var_printer_bed_actual_temp'), 0); $var_printer_bed_target_temp = round(file_get_contents('/var/www/tmp/var_printer_bed_target_temp'), 0); $var_printer_extruder_actual_temp = round(file_get_contents('/var/www/tmp/var_printer_extruder_actual_temp'), 0); $var_printer_extruder_target_temp = round(file_get_contents('/var/www/tmp/var_printer_extruder_target_temp'), 0); ?>
Re: Implementing touch screen interface using Raspberry Octoprint August 09, 2015 06:28AM |
Registered: 10 years ago Posts: 41 |
Re: Implementing touch screen interface using Raspberry Octoprint August 09, 2015 12:39PM |
Registered: 8 years ago Posts: 9 |
Re: Implementing touch screen interface using Raspberry Octoprint October 16, 2015 06:07AM |
Registered: 8 years ago Posts: 4 |
Quote
chilsfarm
I follow this tutorial, but I only can start web page with full screent (not touch screen like video), plz help me to open touch display .
Thanks!