Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MrPozitiff/OctoPiTouchPanel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OctoPiTouchPanel

Touchscreen interface for OctoPrint using the kivy gui framework

The layout is designed for the official Raspberry Pi Foundation 7" touchscreen. I would recommend using the Raspberry Pi 2 or 3 Model B for the Octoprint server. I think the Pi 1 might be a bit under powered for running this touchscreen app.

Installation

Big thanks to Tim Vaillemans for documenting this installation process.

Install prerequisites

Install OctoPi (https://octopi.octoprint.org/)
ssh to your Octoprint server
sudo su -
apt-get update
apt-get upgrade
apt-get install python-pip
apt-get install python-pygame
pip install Cython
pip install kivy (Kivy-Garden is included)
garden install graph

Configure kivy to use the touchscreen input

[Copied from https://kivy.org/docs/installation/installation-rpi.html]
If you are using the official Raspberry Pi touch display, you need to configure Kivy to use it as an input source. To do this, edit the file ~/.kivy/config.ini and go to the [input] section. Add this:

mouse = mouse
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput

Clone this repo

cd /root
git clone https://github.com/matt448/OctoPiTouchPanel.git

Configure OctoPiTouchPanel

cd OctoPiTouchPanel
cp octoprint.cfg.sample octoprint.cfg
edit octoprint.cfg (with vim, nano, etc.)
The important items to edit are in the APISettings section.
- host: should almost always be 127.0.0.1
- apikey: get API key from your octoprint webpage. Looks something like AADDEEDD0BA48F891F3966F856765FB
- nicname: Use ifconfig to identify network interface Looks something like eth0 or wlan0

Starting the app

cd /root/OctoPiTouchPanel
python /root/OctoPiTouchPanel/main.py

or to start the app in the background

python /root/OctoPiTouchPanel/main.py &

Screenshots

screenshot


screenshot_control


screenshot_temps


screenshot_temps


screenshot_temps

About

Touchscreen interface for OctoPrint using the kivy gui framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%