guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.47k stars 366 forks source link

TFT Touchscreen GUI? #34

Closed Cribstone closed 9 years ago

Cribstone commented 10 years ago

Support for TFT Touchscreens like the PiTFT would be great for basic controls, emergency stops, sensor calibration etc... So rather than having to log back into the server every time you need to make a basic change, you could add something like 6 buttons on a touchscreen GUI.

guysoft commented 10 years ago

You are welcome to implement it. I don't have time for this. My best effort to encourage this kind of development are summed up by me nagging @foosel to add plugin support.

Cribstone commented 10 years ago

Sorry, I meant to add the enhancement tag when I posted... Google search turns up a lot of chatter about adding a simplified GUI for OctoPi touchscreens but nothing substantial yet. Are there any other examples of add-ons for OP using a simplified GUI? https://github.com/jjg/octowatch comes to mind but I think the GUI was created using the Pebble Dev Tools.

digas commented 10 years ago

Hey actually i'm currently waiting for my printer to be supported on beeconnect ( its a beethefirst printer) and i just received my PiTFT 2.8 this week. For what you propose i believe the quickest way to get it is picking the alter raspian image adafruit provides and compile there the octoPi repo, just because takes less time then the other way around. After i belive if we take just the control page with some changes we are able to get something working. As soon as i get my printer working on octoprint i will try this.

Cribstone commented 10 years ago

Sounds great! IIRC Adafruit actually recommends using this custom build which has support for many different TFT screens- https://github.com/notro/fbtft/wiki/LCD-Shields

Cribstone commented 10 years ago

FYI- It looks like there was a similar discussion in the OctoPrint issues tracker about a year ago but it doesn't look like it went anywhere- https://github.com/foosel/OctoPrint/issues/215

N1c3 commented 10 years ago

is there a way to send commands to octoprint server localy ? I am useing octopi image ? I thought the API version for useing RESTAPI is just in devel/OctoPrint ?

guysoft commented 10 years ago

@LowVideo Is this related to the issue? If not please open another one, if it is please explain why. Because not nice to hijack someone else's issue :)

N1c3 commented 10 years ago

of course it is ! what i read till now, the one and only way to send commands to 3dprintserver octoprint localy is RESTAPI and this is just working in devel brunch in octoprint repository.... so if there would be a nother way or RESTAPI is working with octopi i would start to program this touch interface... i just can't start because i don't know how to send a gcode command to my printer while octoprint is running...

https://github.com/foosel/OctoPrint/wiki/REST-API

guysoft commented 10 years ago

@LowVideo Please read the title of this issue. This issue talks about TFT Touchscreen GUI, how is that connected to "sending comands" over RESTAPI?

N1c3 commented 10 years ago

@guysoft ok if you are useing a GUI there is a programm running in the background USEING RESTAPI.... or something like this... how would you do something like emergency stop or sensor calibration, homeing xy ... without sending comands ?

guysoft commented 10 years ago

@LowVideo It could also be integrated with a to-be-written plugin framework which we have talked about earlier. You didn't state up untill now that this is your suggestion.

The REST API is available in OctoPrint 1.1.0, so it will be included in OctoPi 0.10.0. You could also build OctoPi from mater now and you should have the REST API.

guysoft commented 9 years ago

Any owners of touch screens, your help would be appreciated!

Here is an experimental release of OctoPi. It holds the new OctoPrint, and also a few new features:

KNOWN ISSUES:

TEST PLEASE: If you can get your touchscreens running with the scripts, and OctoPiPanel.

Download: http://docstech.net/OctoPiMirror/experimental/2014-06-20-wheezy-octopi-0.10.0-OctoPiPanel.zip

Thanks!

N1c3 commented 9 years ago

@guysoft

was missing module requests, fixed it with sudo apt-get install python-requests

touchscreen callibration failed did it manually by useing sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate

then it's working

will test now how stable it is...

guysoft commented 9 years ago

@LowVideo You didn't follow instructions. You should use ~/scripts/OctoPiPanel which calls the virtualenv that has requests installed already.

Also, did you get the touchpad to work?

N1c3 commented 9 years ago

i have started ~/scripts/enable-rpi-display and ~/scripts/OctoPiPanel then i started

~/scripts/calibrat... but it did not work

then i did those two steps (i discribed before)

do i have to use ~/scripts/enable-adafruit-pitft as well when i just use RPI-Display from watterot ?

jonaslorander commented 9 years ago

You do not have to run ~/scripts/enable-adafruit-pitft if you use Watterot display.

You have to run the calibration before you start OctoPiPanel, but after you have enabled the display.

guysoft commented 9 years ago

OctoPiPanel has been pushed to devel branch

SpectreGadget commented 9 years ago

I've had to reload my SD card with OctoPi and I found this. Yay! I've installed it and it looks to be working, but it's not yet connected to the printer. I will try to do that soon and report back, although it might be this weekend.

tiagojanz commented 9 years ago

Hi, Does this Kernel have support for touchscreens like the egalax?

guysoft commented 9 years ago

@tiagojanz OctoPi is based of the most recent Raspbian. So that depends if Raspbian added support on their side. If you have instructions on how to set it up, we could bundle it to the distro. But you would have to help me out since I have no hardware to test on.

tiagojanz commented 9 years ago

I did got my touch working by replacing the kernel from this one, I didn' t compile it,

http://www.engineering-diy.blogspot.ro/2013/01/adding-7inch-display-with-touchscreen.html

a heres some detailed how-to

http://simonmcc.blogspot.co.uk/2013/08/raspberry-pi-rpi-kernel-build-for.html

Of course I will help you testing this.

tiagojanz commented 9 years ago

Remove black border

Open /boot/config.txt uncomment disable_overscan=1

tiagojanz commented 9 years ago

Hi, Could you please add support to Egalax touchscreen?

Its a pain to compile the kernel each time I switch to a new img. It takes all day!!!! I can give you all my steps , work 100% every time I do it.

And yes of course I'll test it.

guysoft commented 9 years ago

Compiling our own kernel might have other side effects, but willing to give it a try. Can you provide instructions with the exact commands used ti build your touchscreen support?

It might not make it to 0.11.0, but will be added to the nightly that comes after it.

guysoft commented 9 years ago

See above comment, also can you please open a seprate issie for your screen?