Coder Social home page Coder Social logo

octopipanel's Introduction

Important notice:

(2021-01-18) As of today, this project is permantenly archived.

OctoPiPanel v0.2-dev

OctoPiPanel creates a simple interface on a small screen to control OctoPrint.
OctoPiPanel requires Pygame to be installed. Pygame can be downloaded from http://pygame.org.
OctoPiPanel is developed by Jonas Lorander ([email protected]).

https://github.com/jonaslorander/OctoPiPanel

This is a (slow) work in progress.

Simplified BSD-2 License:

Copyright 2014 Jonas Lorander. All rights reserved.

Setup

Requirements

OctoPiPanel can be run on Windows as well to ease development.

Pi TFT Setup

Follow the DIY Installer Script setup at Adafruit to set up the Pi TFT correctly. https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/easy-install

Getting and installing OctoPiPanel

The setup is pretty basic. You'll be needing Python 2.7 which should be installed by default, Git, and pip.

cd ~
sudo apt-get install python-pip git
git clone https://github.com/jonaslorander/OctoPiPanel.git
cd OctoPiPanel
sudo pip install -r requirements.txt

Settings

  • You need to activate the REST API in you OctoPrint settings and get your API-key with Octoprint Versions older then 1.1.1, otherwise you will be fine.
  • Put the URL to you OctoPrint installation in the baseurl-property in the OctoPiPanel.cfg file. For instance http://localhost:5000 or http://192.168.0.111:5000.
  • Put your API-key in the apikey-property in the OctoPiPanel.cfg file.
  • By default the background light och the displays turns off after 30 seconds (30 000 ms). This can be changed by editing the backlightofftime-property in the configuration file. Setting this value to 0 keeps the display from turning off the background light.
  • If you have a display with a different resolution you can change the size of OctoPiPanel window using window_width- and window_height-properties in the configuration file.

Running OctoPiPanel

Start OctoPiPanel by browsing to the folder of the Python-file and execute
sudo python ./OctoPiPanel.py &
In a screen session (auto start scripts will be coming later). Yes, sudo must be used for the time being.

Automatic start up

Make OctoPiPanel.py executable and then copy the script files to their respective folders and make the init script executable:

cd ~/OctoPiPanel
chmod +x OctoPiPanel.py
sudo cp scripts/octopipanel.init /etc/init.d/octopipanel
sudo chmod +x /etc/init.d/octopipanel
sudo cp scripts/octopipanel.default /etc/default/octopipanel

Then add the script to autostart using sudo update-rc.d octopipanel defaults.

This will also allow you to start/stop/restart the OctoPiPanel daemon via

sudo service octopipanel {start|stop|restart}

Update OctoPiPanel

Stop OctoPiPanel and then issue this command to update:

cd ~/OctoPiPanel/
git pull
sudo pip install -r requirements.txt

If you would like to switch branch to devel, do this:

cd ~/OctoPiPanel/
git pull
git checkout devel
sudo pip install -r requirements.txt

Then you can start OctoPiPanel again.

Attributions

PygButton courtesy of Al Sweigart ([email protected])

octopipanel's People

Contributors

avluis avatar ckonecny avatar ddrboxman avatar guysoft avatar imrahil avatar jonaslorander avatar layercakemakes avatar nophead avatar okpail avatar sudpuzzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octopipanel's Issues

pygame.error: video system not initialised (slightly different software setup)

Hi mister Lorander, Jonas,

I get the following error when trying to start OctoPiPanel

Traceback (most recent call last):
File "./OctoPiPanel.py", line 595, in
opp = OctoPiPanel(320, 240, "OctoPiPanel!")
File "./OctoPiPanel.py", line 135, in init
pygame.mouse.set_visible(False)
pygame.error: video system not initialised

What is my hardware setup:
Raspberry Pi B+
Adafruit 2,8 inch touch screen
Raspberry Pi Camera rev 1.3

Software setup:
Newest update raspbian
Then followed the adafruit setup and got the display working as per their instruction pages:
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/software-installation the detailed installation. I did not do the callibatrion pages, since the touchscreen worked.
Then I compiled the latest octoprint 1.1.0-3-gce9c9be
That works fine from a remote computer

Then I followed your instructions to install octopipanel with user account Pi.
Since the Rest API is activated in the latest octoprint 1.1.0-3-gce9c9be I copied the key from the configuration file in octoprint to the OctoPiPanel.cfg file.

I start the frame buffer for the small screen from a ssh session from my notebook
FRAMEBUFFER=/dev/fb1 startx &

Then go to a terminal screen as user on the small screen connected to the raspberry pi and try to start...

cd ./OctoPiPanel/
sudo python ./OctoPiPanel.py &

error message appears:

Traceback (most recent call last):
File "./OctoPiPanel.py", line 595, in
opp = OctoPiPanel(320, 240, "OctoPiPanel!")
File "./OctoPiPanel.py", line 135, in init
pygame.mouse.set_visible(False)
pygame.error: video system not initialised

I looked at the other issue with the same name and he uses a different panel. So I cannot translate it to my hardware context...

Could you help me solve this problem?
kind regards
Onno ([email protected])

Full Screen support on 3.5 inch screens

Hi;

got everything working on a 3.5 inch touchscreen. when i change the resolution in the cfg file, it starts using the entire screen, but the actual interface is now moved to the top left corner, but still in the 2.5 inch size. does this not scale to 3.5 or am i missing something?

Backlight not turning off.

No matter what i do it seems that my backlight will not turn off on the display.

I have checked the OctoPiPanel.cfg file and it has the default timeout of 30 seconds but it seems that it is just getting ignored by my system.

The display auto starts and works fine but just will never turn off so it is getting the non-printing screen burnt in.

My version of OctoPi is 1.1.1-30-g4fede5a (master branch)
From the README i am running OctoPiPanel v0.1

It is on a PI 2.0.

Any ideas on what to check?

pygame.error: video system not initialized

When starting OctoPiPanel from X using fbcp I get this error:

pi@octopi ~/OctoPiPanel $ python ./OctoPiPanel.py 
Traceback (most recent call last):
  File "./OctoPiPanel.py", line 575, in <module>
    opp = OctoPiPanel(320, 240, "OctoPiPanel!")
  File "./OctoPiPanel.py", line 133, in __init__
    pygame.mouse.set_visible(False)
pygame.error: video system not initialized

I can start an lxterminal with no problem using that shell, so its not an X server setting problem.

pygame.error: video system not initialized and touch not working

Hey,

I had an issue on my RPi 1 Model B w/ Adafruit resistive touch TFT panel starting OctoPiPanel from my OctoPrint installation. After spending a few hours trying various things I stumbled across this forum https://www.raspberrypi.org/forums/viewtopic.php?p=527172 the last post was rather helpful and I found if I changed touchscreen in this line

os.putenv('SDL_MOUSEDEV' , '/dev/input/touchscreen')

to event0, event1, mouse0 etc, I was able to get the OctoPiPanel to display on the 2.8" TFT but now unfortunately I can't seem to get the touch part to work. Just wondering if you have any advice?

Buttons Not Working

I am having an issue with the screen buttons not working. I have put print statements in the code and I see the button getting created and when clicking on the screen, a mouse click event. However, when clicking on any button, the button click does not register but I do get a mouse click event.

Running dev version of OctoPrint and the latest OctoPiPanel code from the dev branch.

Change default baseurl in config file

As OctoPiPanel most likely will run on the same system that OctoPrint runs on, the default baseurl-setting in the config file could be set to http://localhost:5000.

Devel support

Its not complete since I didn't test everything

version = cfg.get('settings', 'version')





            # Set status flags
            if self.version=="devel":
                self.HotEndTemp = state['temperature']['tool0']['actual']
                self.BedTemp = state['temperature']['bed']['actual']
                self.HotEndTempTarget = state['temperature']['tool0']['target']
                self.BedTempTarget = state['temperature']['bed']['target']
            else:
                    self.HotEndTemp = state['temps']['tool0']['actual']
                    self.BedTemp = state['temps']['bed']['actual']
                    self.HotEndTempTarget = state['temps']['tool0']['target']
                    self.BedTempTarget = state['temps']['bed']['target']

No response when I've pressed the button, it's been connected to my 3D printer.

hi, I did exactly by README.md to setup my OctoPiPanel, it can show screen on my 5 inch touch screen, but i can not press the button on the screen.
But the touch screen works well when I just use it in another application.
this is my environment:
OctoPrint image from offical. and i use "git clone https://github.com/jonaslorander/OctoPiPanel.git -b devel“
and my SDL version is:
libsdl-image1.2/stable,now 1.2.12-5+b1 armhf [installed,automatic]
libsdl-mixer1.2/stable,now 1.2.12-11+b1 armhf [installed,automatic]
libsdl-ttf2.0-0/stable,now 2.0.11-3 armhf [installed,automatic]
libsdl1.2debian/stable,now 1.2.15-10+rpi1 armhf [installed,automatic]
libsdl2-2.0-0/stable,now 2.0.2+dfsg1-6 armhf [installed,automatic]
libsdl2-dev/stable,now 2.0.2+dfsg1-6 armhf [installed]

I've changed the OctoPiPanel.py in this section:

if platform.system() == 'Linux':

        #if subprocess.Popen(["pidof", "X"], stdout=subprocess.PIPE).communicate()[0].strip() == "" :
            # Init framebuffer/touchscreen environment variables
    os.putenv('SDL_VIDEODRIVER', 'fbcon')
    os.putenv('SDL_FBDEV'      , '/dev/fb0')        
            # If this is not a RoboPeak USB display
            #lsusb = subprocess.Popen('lsusb', stdout=subprocess.PIPE).communicate()[0]
            #if lsusb.find('fccf:a001') == -1 :
    os.putenv('SDL_MOUSEDRV', 'TSLIB')
    os.putenv('SDL_MOUSEDEV', '/dev/input/touchscreen')

and my /dev/input/touchscreen device is a symbolic link to /dev/input/event2 as following:
pi@octopi:~/OctoPiPanel $ ls -l /dev/input/*
crw-rw---- 1 root input 13, 64 Aug 25 08:19 /dev/input/event0
crw-rw---- 1 root input 13, 65 Aug 25 08:19 /dev/input/event1
crw-rw---- 1 root input 13, 66 Aug 25 08:19 /dev/input/event2
crw-rw---- 1 root input 13, 63 Aug 25 08:19 /dev/input/mice
crw-rw---- 1 root input 13, 32 Aug 25 08:19 /dev/input/mouse0
crw-rw---- 1 root input 13, 33 Aug 25 08:19 /dev/input/mouse1
lrwxrwxrwx 1 root root 6 Aug 25 08:19 /dev/input/touchscreen -> event2

Could you please tell me how to enable my touch screen ?

Configurable Screen Resolution

I got OctoPiPanel working fine on the Adafruit PiTFT 3.5", but the screen is not filled up due to the difference in resolution, 480x320. It would be nice if you could put the resolution into the config file and have the screen resize.

Egalax support

#adafruit or egalax
screen = cfg.get('settings', 'screen')

    if platform.system() == 'Linux' and self.screen == "adafruit":
       # Init framebuffer/touchscreen environment variables
        os.putenv('SDL_VIDEODRIVER', 'fbcon')
        os.putenv('SDL_FBDEV'      , '/dev/fb0')
        os.putenv('SDL_MOUSEDRV'   , 'TSLIB')
        os.putenv('SDL_MOUSEDEV'   , '/dev/input/touchscreen')




    if platform.system() == 'Linux' and self.screen == "adafruit":
       os.system("echo 252 > /sys/class/gpio/export")
       os.system("echo 'out' > /sys/class/gpio/gpio252/direction")
       os.system("echo '1' > /sys/class/gpio/gpio252/value")



        # Is it time to turn of the backlight?
        if pygame.time.get_ticks() - self.bglight_ticks > self.backlightofftime and platform.system() == 'Linux' and self.screen == "adafruit":
            # disable the backlight
            os.system("echo '0' > /sys/class/gpio/gpio252/value")
            self.bglight_ticks = pygame.time.get_ticks()
            self.bglight_on = False




    """ Clean up """
    # enable the backlight before quiting
    if platform.system() == 'Linux' and self.screen == "adafruit":
        os.system("echo '1' > /sys/class/gpio/gpio252/value")




         if self.bglight_on == False and platform.system() == 'Linux' and self.screen == "adafruit":
                # enable the backlight
                os.system("echo '1' > /sys/class/gpio/gpio252/value")
                self.bglight_on = True
                print "Background light on."
            else:
               self.bglight_on = True

Update to devel

Master doesn't work as soon as I connect my printer (The Key Error that's already been reported, and fixed in devel).

Does it make sense to merge devel into master? Is there something particularly experimental about devel? I think you should just make a version number, and update.

Also, there are some PRs, some of them look pretty neat, that have been there for a while. What is the limiting factor here? Have the maintainers lost interest, or is that not the direction they want to go? I don't want to get into specifics on this issue, I just want to make an issue to "poke" and see what the status is, and then we can try to get some progress to keep thing moving forward.

Enlarge view area for 7"

Hi,

It does work great as is, but... I have a big screen and theres so much space there:)

I have tried to expand the view area

def init(self, width=640, height=480, caption="OctoPiPanel"):

and added 2 more buttons

    self.btnXL           = pygbutton.PygButton((245,  5, 100, self.buttonHeight), "X -")
    self.btnXR           = pygbutton.PygButton((245,  35, 100, self.buttonHeight), "X +")

but the buttons don't show up fully they are right cutted, how can I expose more canvas?

Octopipanel crashes

Hello,
I have tried for two days to get it to work. I have tried both on RPi2 and B+.
I have managed to get octopipanel to start but it doesn't seem to be connected as the temps ar not right (0 degrees). When I press a button octopipanel exits. In commandprompt it says something about "temp" I run from octopi master. I have tried octopipanel level and master branch.
Is it a setting in octroprint I have missed? I copied the API code from settings interface. I have tried with localhost and with octoprint ip adress.

OctiPi Panel crashes with KeyError

Hello,
I have just installed OctoPiPanel. When I start it without OctoPrint running, the screen stays open. But when I start OctoPiPanel with Octoprint already running I get the following error:

sh: 1: cannot create /sys/class/gpio/gpio252/direction: Directory nonexistent
sh: 1: cannot create /sys/class/gpio/gpio252/value: Directory nonexistent
OctoPiPanel initiated
OctoPiPanel started!

---
Traceback (most recent call last):
  File "./OctoPiPanel.py", line 596, in <module>
    opp.Start()
  File "./OctoPiPanel.py", line 194, in Start
    self.get_state()
  File "./OctoPiPanel.py", line 293, in get_state
    self.HotEndTemp = state['temps']['tool0']['actual']
KeyError: 'temps'

The OctoPiPanel Screen flashes open for a moment and shuts down immediatly.
I appreciate any Ideas.

Waveshare 800x480 HDMI+Touchscreen display not working (includes FULL setup instructions!)

This is the display.

I have it set up on a Raspberry Pi 3 running Python 2.7. git pull states that OctoPiPanel is up-to-date. It displays the console correctly (right resolution, no weird bars on the side, etc.) OctoPrint and the webcam interface are both working fine, although it took some hours to set them all up. (The nightly build appears to just be a stock Raspbian Jessie image with OctoPrint, etc. copied in, but not actually set up, or any of the dependencies downloaded.)

On trying to start OctoPanel:

sudo python ./OctoPiPanel.py
Traceback (most recent call last):
File "./OctoPiPanel.py", line 595, in
opp = OctoPiPanel(320, 240, "OctoPiPanel!")
File "./OctoPiPanel.py", line 135, in init
pygame.mouse.set_visible(False)
pygame.error: video system not initialized

I tried setting SDL_FBDEV to /dev/fb0 (which does exist), but that didn't help.

This machine doesn't have X-windows installed. Is that an issue?

video system not initialized

Can't run

After I issue the command sudo python ./OctoPiPanel.py I get

Traceback (most recent call last):
File "./OctoPiPanel.py", line 595, in
opp = OctoPiPanel(320, 240, "OctoPiPanel!")
File "./OctoPiPanel.py", line 135, in init
pygame.mouse.set_visible(False)
pygame.error: video system not initialized

pygame.error: video system not initialized

This is what im getting when I try to start OctoPiPanel. Not sure what to do.

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver return ed error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned er ror: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned err or: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directo ry
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
File "./OctoPiPanel.py", line 595, in
opp = OctoPiPanel(320, 240, "OctoPiPanel!")
File "./OctoPiPanel.py", line 135, in init
pygame.mouse.set_visible(False)
pygame.error: video system not initialized

Two issues, both probably very simple.

One problem that may or may not be a problem -- my pi (using Adafruit's "2015-09-24-raspbian-jessie-pitft28r.zip" image) boots up to an X11 desktop. Do I need to find that in the configuration and make it not launch X or not start a session?

The other problem is that i see a bunch of I/O errors when I launch OctoPiPanel:

sudo python ./OctoPiPanel.py &
[1] 2538
pi@octopi ~/OctoPiPanel $ sh: echo: I/O error
sh: 1: cannot create /sys/class/gpio/gpio252/direction: Directory nonexistent
sh: 1: cannot create /sys/class/gpio/gpio252/value: Directory nonexistent
sh: echo: I/O error
sh: 1: cannot create /sys/class/rpi-pwm/pwm0/mode: Directory nonexistent
sh: 1: cannot create /sys/class/rpi-pwm/pwm0/frequency: Directory nonexistent
sh: 1: cannot create /sys/class/rpi-pwm/pwm0/duty: Directory nonexistent
OctoPiPanel initiated

OctoPiPanel started!

And I never see any change on the TFT panel. Nothing shows up related to OctoPiPanel.

OctoPiPanel consuming all available CPU time

I'm running the 2014-06-20-wheezy-octopi-0.10.0-OctoPiPanel experimental image that was posted October 1, and just got got OctoPiPanel running. It works and looks great, but I noticed that between the python script and the kworker kernel process that updates the screen, all my CPU time was being consumed. This makes the web interface and video streaming very sad :(

I've managed to get things under control by adding a 500ms sleep in the main loop, but that's a dirty hack and I'm still seeing a constant 30% for python and 10% for kworker, give or take. Maybe firing off updates with timers would be better than looping and calculating ticks?

Sample top output

top - 18:29:48 up  1:10,  1 user,  load average: 2.50, 1.46, 1.42

Tasks:  75 total,   2 running,  73 sleeping,   0 stopped,   0 zombie

%Cpu(s): 63.9 us, 34.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  2.1 si,  0.0 st

KiB Mem:    382516 total,   190464 used,   192052 free,    22396 buffers

KiB Swap:   102396 total,        0 used,   102396 free,   106844 cached

OctoPiPanel started!NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                                                                                                                                                                                                                     

 2876 root      20   0 66260  20m 7652 R  53.1  5.5   0:07.85 python                                                                                                                                                                                                                                                                                      

 2750 root      20   0     0    0    0 S  23.1  0.0   0:04.61 kworker/u2:3                                                                                                                                                                                                                                                                                

 2068 pi        20   0 54584  16m 3560 S   7.6  4.3   4:12.53 octoprint                                                                                                                                                                                                                                                                                   

 2094 root      20   0 28044 1708 1120 S   4.3  0.4   0:41.08 rsyslogd                                                                                                                                                                                                                                                                                    

   30 root       1 -19     0    0    0 S   3.6  0.0   0:50.26 VCHIQ-0                                                                                                                                                                                                                                                                                     

 2736 root      20   0     0    0    0 S   2.1  0.0   0:01.62 kworker/0:1                                                                                                                                                                                                                                                                                 

 2877 pi        20   0  4660 1472 1028 R   2.1  0.4   0:00.30 top                                                                                                                                                                                                                                                                                         

 2359 pi        20   0  9260 1564  976 S   1.8  0.4   0:38.76 sshd              

stuck getting my 3.5 pitft installed

PI 2 b
3.5 pitft tft + touchscreen
Octopi .12
Pygame
First, it would be nice if someone wrote a guide from a "Octopipanel for idiots" view point- a detailed step by step guide to get a screen installed for people like me that know nothing about this stuff. Between getting the pi going and now the display I've wasted a month trying to get everything installed and working. Information is fragmented all over the place and for me unclear. Don't mean to project an attitude but I bought the display because it was supposed to be an easy install.

I finally found your installation instructions which have helped but now I'm stuck at the settings step. Specifically at accessing the octopipanel.cfg file. I can't find anything on the Web that tells me how to open it. I got the api key through octopi.local and put my sd card in my laptop thinking I could access it that way but don't see any files or folders for octopipanel.

I'm pretty much at a loss from that point on. Do I browse to the octopipanel.py file from octopi or from octopipanel? Automatic startup isn't really clear to me either.

Thank you in advance for any help. I'd really like to get this thing working.

Compatibility with Raspberry Pi 2?

I had no luck getting the Adafruit PiTFT working on a Raspi 2. My steps were as follows:
Clean OctoPrint install - Expanded disk, set password, region, and time zone.
Reboot
From web UI, install latest (1.2.10).
From SSH: reboot.
from SSH: Run ~/scripts/enable-adafruit-pitft

A new kernel is then compiled (apparently successfully).
When I reboot the Pi, it doesn't get past the rainbow screen, which (from what I can tell) indicates a bad kernel.
Are the new binaries it's trying to compile not Pi2 compatible?

These steps work fine with the same image TFT on a Raspi 1.
Image used: 2015-05-05-octopi-wheezy-0.12.0
Output of enable-adafruit-pitft:

`pi@octopi ~/scripts $ ./enable-adafruit-pitft

Installing Adafruit PiTFT Display on this installation of OctoPi, do not turn off your Pi during this process!

--2016-05-01 22:09:50-- http://adafru.it/pitftsh
Resolving adafru.it (adafru.it)... 162.243.27.247
Connecting to adafru.it (adafru.it)|162.243.27.247|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://gist.githubusercontent.com/ladyada/f86f777df68fe41181b0/raw/ [following]
--2016-05-01 22:09:51-- https://gist.githubusercontent.com/ladyada/f86f777df68fe41181b0/raw/
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 199.27.79.133
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|199.27.79.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14033 (14K) [text/plain]
Saving to: `pitftsh'

100%[=================================================================================================================================================================================================================================================================================>] 14,033 --.-K/s in 0.001s

2016-05-01 22:09:55 (25.9 MB/s) - `pitftsh' saved [14033/14033]

START
Type = 28r
[ADAFRUIT] Starting image modification
--2016-05-01 22:09:56-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)... 54.231.19.200
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.19.200|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 184818 (180K) [application/octet-stream]
Saving to: `libraspberrypi-bin-adafruit.deb'

100%[=================================================================================================================================================================================================================================================================================>] 184,818 316K/s in 0.6s

2016-05-01 22:09:57 (316 KB/s) - `libraspberrypi-bin-adafruit.deb' saved [184818/184818]

--2016-05-01 22:09:57-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)... 54.231.80.96
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.80.96|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 672150 (656K) [application/octet-stream]
Saving to: `libraspberrypi-dev-adafruit.deb'

100%[=================================================================================================================================================================================================================================================================================>] 672,150 504K/s in 1.3s

2016-05-01 22:09:58 (504 KB/s) - `libraspberrypi-dev-adafruit.deb' saved [672150/672150]

--2016-05-01 22:09:58-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)... 54.231.114.162
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.114.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31480442 (30M) [application/octet-stream]
Saving to: `libraspberrypi-doc-adafruit.deb'

100%[=================================================================================================================================================================================================================================================================================>] 31,480,442 2.66M/s in 13s

2016-05-01 22:10:11 (2.34 MB/s) - `libraspberrypi-doc-adafruit.deb' saved [31480442/31480442]

--2016-05-01 22:10:11-- http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)... 54.231.2.209
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.2.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 444188 (434K) [application/octet-stream]
Saving to: `libraspberrypi0-adafruit.deb'

100%[=================================================================================================================================================================================================================================================================================>] 444,188 425K/s in 1.0s

2016-05-01 22:10:13 (425 KB/s) - `libraspberrypi0-adafruit.deb' saved [444188/444188]

--2016-05-01 22:10:13-- http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)... 54.231.17.49
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.17.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24337034 (23M) [application/octet-stream]
Saving to: `raspberrypi-bootloader-adafruit-20140917-1.deb'

100%[=================================================================================================================================================================================================================================================================================>] 24,337,034 2.11M/s in 19s

2016-05-01 22:10:32 (1.24 MB/s) - `raspberrypi-bootloader-adafruit-20140917-1.deb' saved [24337034/24337034]

[PITFT] Updating apt cache...
Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]
Get:2 http://archive.raspberrypi.org wheezy Release.gpg [473 B]
Get:3 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Get:4 http://archive.raspberrypi.org wheezy Release [17.6 kB]
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Get:5 http://mirrordirector.raspbian.org wheezy/main armhf Packages [6,910 kB]
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Get:6 http://archive.raspberrypi.org wheezy/main armhf Packages [136 kB]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_US
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:7 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.6 kB]
Get:8 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [49.3 kB]
Get:9 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [592 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 7,153 kB in 25s (278 kB/s)
Reading package lists... Done
[PITFT] Installing Adafruit kernel...
Selecting previously unselected package libraspberrypi-bin-adafruit.
dpkg: considering removing libraspberrypi-bin in favour of libraspberrypi-bin-adafruit ...
dpkg: yes, will remove libraspberrypi-bin in favour of libraspberrypi-bin-adafruit
(Reading database ... 71254 files and directories currently installed.)
Unpacking libraspberrypi-bin-adafruit (from .../libraspberrypi-bin-adafruit.deb) ...
Selecting previously unselected package libraspberrypi-dev-adafruit.
dpkg: considering removing libraspberrypi-dev in favour of libraspberrypi-dev-adafruit ...
dpkg: yes, will remove libraspberrypi-dev in favour of libraspberrypi-dev-adafruit
Unpacking libraspberrypi-dev-adafruit (from .../libraspberrypi-dev-adafruit.deb) ...
Selecting previously unselected package libraspberrypi-doc-adafruit.
dpkg: considering removing libraspberrypi-doc in favour of libraspberrypi-doc-adafruit ...
dpkg: yes, will remove libraspberrypi-doc in favour of libraspberrypi-doc-adafruit
Unpacking libraspberrypi-doc-adafruit (from .../libraspberrypi-doc-adafruit.deb) ...
Selecting previously unselected package libraspberrypi0-adafruit.
dpkg: considering removing libraspberrypi0 in favour of libraspberrypi0-adafruit ...
dpkg: yes, will remove libraspberrypi0 in favour of libraspberrypi0-adafruit
Unpacking libraspberrypi0-adafruit (from .../libraspberrypi0-adafruit.deb) ...
Selecting previously unselected package raspberrypi-bootloader-adafruit.
dpkg: considering removing raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit ...
dpkg: yes, will remove raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit
Unpacking raspberrypi-bootloader-adafruit (from .../raspberrypi-bootloader-adafruit-20140917-1.deb) ...
Adding 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
Adding 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
Adding 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
Adding 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
Adding 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack'
Adding 'diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack'
Adding 'diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack'
Adding 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
Adding 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
Adding 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
Setting up raspberrypi-bootloader-adafruit (1.20140917-1) ...
Memory split is now set in /boot/config.txt.
You may want to use raspi-config to set it
Removing 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
Removing 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
Removing 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
Removing 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
Removing 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack'
Removing 'diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack'
Removing 'diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack'
Removing 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
Removing 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
Removing 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
Setting up libraspberrypi0-adafruit (1.20130902-1) ...
Setting up libraspberrypi-bin-adafruit (1.20130902-1) ...
Setting up libraspberrypi-dev-adafruit (1.20130902-1) ...
Setting up libraspberrypi-doc-adafruit (1.20130902-1) ...
[PITFT] Updating /etc/modules...
Adding spi-bcm2708
Adding fbtft_device
[PITFT] Updating /etc/modprobe.d/adafruit.conf...
[PITFT] Updating X11 default calibration...
[PITFT] Updating X11 setup tweaks...
Moving 99-fbturbo.conf to /home/pi
Adding 'export FRAMEBUFFER=/dev/fb1'
[PITFT] Updating TSLib default calibration...
[PITFT] Updating SysFS rules for Touchscreen...
[PITFT] Installing evtest tslib libts-bin...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libts-0.0-0' instead of 'tslib'
libts-0.0-0 is already the newest version.
libts-0.0-0 set to manually installed.
libts-bin is already the newest version.
The following NEW packages will be installed:
evtest
0 upgraded, 1 newly installed, 0 to remove and 98 not upgraded.
Need to get 21.9 kB of archives.
After this operation, 100 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main evtest armhf 1:1.30-1 [21.9 kB]
Fetched 21.9 kB in 0s (37.5 kB/s)
Selecting previously unselected package evtest.
(Reading database ... 69319 files and directories currently installed.)
Unpacking evtest (from .../evtest_1%3a1.30-1_armhf.deb) ...
Processing triggers for man-db ...
Setting up evtest (1:1.30-1) ...
Would you like the console to appear on the PiTFT display? [y/n] n
Would you like GPIO #23 to act as a on/off button? [y/n] n
[PITFT] Done

Reboot you Pi to use the Adafruit Pi TFT Display

pi@octopi ~/scripts $ sudo reboot
`

won't start as daemon

Where is the first place to look in order to debug display issues with OctoPiPanel? I followed the instructions for installing on the main readme page as a daemon to auto-start but the only thing displayed on my touch screen is the console. I can open startx and the touchscreen is working properly and displaying. Do I have to login to the console or start some other interface to get it to load? Don't really want to have to have a keyboard attached to my pi if I can help it.

Can't adjust resolution an touch doesn't work

Hi.
I'm using this 5" Display: http://wiki.52pi.com/index.php/5-Inch-800x480-HDMI-GPIO-Touch-Screen_SKU:EP-0072
I can't setup the resolution for OctoPiPanel.
I put
window_width = 800
window_height = 480
into the OctoPiPanel.cfg, but it still starts in a small 320x240 window.
Also the touchscreen doesn't work in OctoPiPanel.
Tried to switch from Touchscreen to event0, in OctoPiPanel.py no success.

I'm using a Pi3 with the OctoPi Image.
When deactivating OctoPiPanel and booting to the gui I have the right resolution (800x480) and the touch also works.
How do I have to setup OctoPiPanel to work ?
Thx.

Feature requests after some days of experience with v0.1

  • Button for EXTRUDE needed (e.g. to change filament). Also buttons for moving the bed would be appreciated.
  • Selection of the printfile from the screen would be excellent
  • Larger Buttons to improve usability. The temperature graph is nice but honestly just the value beside the button would be enough and we could win some space for more functions/buttons.
  • Really great would be to change the screens ... Select Print File / Control / Temperature / ....

Anyhow .... a really great project !!!!

Update OctoPIPanel

i know this is not an issue, but i don't know where i can ask this question.How can i update my "old" OctoPIPanel version?

Thanks for your help!
Joerg

OctoPi, OctoPiPanel, and Raspberry Pi 3?

Guy Sheffer suggested I post this over here. I originally posted it in the OctoPi issue tracker, here:
guysoft/OctoPi#249

I have a Raspberry Pi 3, and have been using it with OctoPi happily for several months. I was recently gifted a PiTFT, and have been completely unable to make it work with OctoPi. Something seems to be hanging on boot, but I have no idea what I need to do next to attempt to track down the problem.

First, I started with my existing install, and ran the ./enable-adafruit-pitft script. Rebooted when prompted, and the device promptly hung. The TFT shows a solid grey-white screen.

I then pulled the Micro SD card, and did a completely fresh install. Ran the script again, and it is hanging in the exact same place.

The system does not respond to anything on the web interface, nor to SSH requests.

Is there something that I'm missing or need to do to make it all work?

Are there any steps that I can take to provide further information to assist troubleshooting?

Running OctoPiPanel in LXDE

I've been having some trouble getting good results with OctoPiPanel.
I am using a resistive touchscreen overlay on a 7inch LCD printer-mounted display attached to my RPi via HDMI. The touchscreen overlay uses an AR1100 controller, which Raspbian picks up as a USB mouse (event0). By commenting the SDL_MOUSEDEV and SDL_MOUSEDRV lines, and changing the frame buffer to fb0, I can get OctoPiPanel to come up on my LCD and use the touchscreen. However, the mouse calibration isn't right in pygame. I've calibrated the AR1100 controller with Windows 7, and when I start an X session, the mouse calibration is perfect in LXDE.

Is there any way to run OctoPiPanel in a window in LXDE, or something I can investigate to correct the mouse mapping?

GPIO Error

I have the Adafruit 2.8 resistive touch screen (built verbatim to the instructions) and I get
sh: 1: cannot create /sys/class/gpio/gpio252/direction: Directory nonexistent
sh: 1: cannot create /sys/class/gpio/gpio252/value: Directory nonexistent
errors at startup and then a repeating
sh: 1: cannot create /sys/class/gpio/gpio252/value: Directory nonexistent
error for the duration of operation. The console is painfully slow and virtually unusable.

How can I correct this?

BTW love the idea and can't wait for this to work!

Unable to get Chromium installed to get OctoPiPanel working in a 'kiosk' mode

Hello,
I have been following a lot of guides online, but none seem to have a fitting answer to my issues.

Setup : RPI3/RPi 7" Touchscreen/OctoPi 0.13 (Jessie Lite)
(the real official screen, as I have seen a lot of people being confused about this : [https://www.raspberrypi.org/blog/the-eagerly-awaited-raspberry-pi-display/]

Does it work? Does it work on Rpi3?
A bit more clarity in the 'scripts' might help here also.

Guide followed, but turns bad @ step 4 : https://github.com/BillyBlaze/OctoPrint-TouchUI/wiki/Setup:-Boot-to-Browser-(OctoPi-or-Jessie-Light)

Willing to help here, with testing on Rpi2/Rpi3 and RpiTouchscreen7"

Keep up the excellent work
T.

Does't seem to be connected

I can't seem to find out how to fix the problem I'm having. After going through the installation process I turned on my Pi and it seemed to work, but I soon found out that the screen wasn't really showing any values. All the temps are 0º and I can't control the printer. It is almost like its not even connected, but I don't know how to connect it. I regularly run prints from OctoPi in-browser so that is connected. Did I miss a step during installation? Am I just dumb and missing something obvious? Any help would be appreciated. I am running it off of a RPi 2B (I think) with a 2.8 inch TFT if that helps.

Thanks,
Jet

Octopanel fails to start

Hello,

I have raised an issue on the OctoPi page - but not sure where this is coming from. guysoft/OctoPi#148

When I start the script I get:

Traceback (most recent call last):
  File "/home/pi/OctoPiPanel/OctoPiPanel.py", line 48, in <module>
    import pygame
  File "/usr/lib/python2.7/dist-packages/pygame/__init__.py", line 99, in <module>
    from pygame.base import *
ImportError: /usr/lib/arm-linux-gnueabihf/libSDL-1.2.so.0: undefined symbol: vc_dispmanx_resource_set_palette

Any ideas?

3.5" PiTFT Not Full Screen

I can't seem to get the AdaFruit 3.5" Resistive Touch Screen to show OctoPiPanel full screen, I have tried editing the config.txt but nothing makes a difference.

Only white screen

Hi,
Im trying to get this tft 3.5" 320x480 to work:
http://www.ebay.com/itm/281778730873?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

All i get though is a white screen.
i followed the steps shown on adafruit:
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/easy-install
i chose y on both questions then rebooted. And after this is when i got the white screen.
Before that i had a black screen with white lines on it.

i then tried to follow this guide:
https://github.com/jonaslorander/OctoPiPanel
Also added the API key that i found on my octoprint.local and settings tab.
No help there.

Sorry, im a newbie at linux i could use all help thats possible.

Octopi Panel quits when connecting to the printer.

I'm finding that octopi panel quits whenever I connect the printer in octoprint. It seems to work for a brief second, but then quits. It's not a consistant problem, I've gotten it to work on other Rpi's, although it also quits on them from time to time. The rpi I have it on now is an A+ and I'm wondering if it's a lack of memory issue.

Screen Blanking

No matter what I try I can't disable screen blanking while running OctoPiPanel. I have made sure that all of blanking and dpms is set properly in kbd's config and I have even tried pushing blanking off via setterm to /dev/fb1 and no dice.

I'd like to keep the screen on as long as my printer is on. Having a nice display with temp and such isn't very useful if it's off, lol.

I'd appreciate any help.

Thanks.
-f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.