Giter Site home page Giter Site logo

oled_phoniebox's People

Contributors

splitti avatar xn--nding-jua 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oled_phoniebox's Issues

python3 errors on setup.sh with raspbian-lite (pi zero w)

hey olaf.

i have a few errors in my setup. maybe you have a hint for me how i could fix that.
phoniebox was installed on a raspberry pi zero

pi@rpi_zero:~ $ cd ~/oled_phoniebox
pi@rpi_zero:~/oled_phoniebox $ sudo chmod 777 setup.sh
pi@rpi_zero:~/oled_phoniebox $ sudo ./setup.sh
Installaing OLED Display Python Based Service for Jukebox4kids
==============================================================
Please choose your display controller type:
1) Controller type ssd1306  3) Quit
2) Controller type sh1106
#? 1
>>> Install Path: /home/pi/oled_phoniebox
>>> Controller type: ssd1306
>>> Installing needed packages...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
build-essential ist schon die neueste Version (12.3).
i2c-tools ist schon die neueste Version (3.1.2-3).
libfreetype6-dev ist schon die neueste Version (2.6.3-3.2).
The following additional packages will be installed:
  fonts-freefont-ttf libblas-common libblas3 libgfortran3 libjbig0 libjpeg62-turbo-dev liblapack3 liblcms2-2 libpng12-0
  libportmidi0 libpython3-dev libpython3.5-dev libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libwebpdemux2 python-pil
  python3-cffi-backend python3-crypto python3-cryptography python3-dbus python3-gi python3-idna python3-keyring
  python3-keyrings.alt python3-numpy python3-pyasn1 python3-secretstorage python3-setuptools python3-wheel python3-xdg
  python3.5-dev
Vorgeschlagene Pakete:
  liblcms2-utils python-pil-doc python-pil-dbg python3-crypto-dbg python-crypto-doc python-cryptography-doc
  python3-cryptography-vectors python-dbus-doc python3-dbus-dbg gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0
  python3-pykde4 gfortran python-numpy-doc python3-nose python3-numpy-dbg doc-base python-pygame-doc timidity
  python-secretstorage-doc python-setuptools-doc
Die folgenden NEUEN Pakete werden installiert:
  fonts-freefont-ttf libblas-common libblas3 libgfortran3 libjbig0 libjpeg-dev libjpeg62-turbo-dev liblapack3 liblcms2-2
  libpng12-0 libportmidi0 libpython3-dev libpython3.5-dev libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libtiff5
  libwebpdemux2 python-imaging python-pil python3-cffi-backend python3-crypto python3-cryptography python3-dbus python3-dev
  python3-gi python3-idna python3-keyring python3-keyrings.alt python3-numpy python3-pip python3-pyasn1 python3-pygame
  python3-secretstorage python3-setuptools python3-smbus python3-wheel python3-xdg python3.5-dev
0 aktualisiert, 39 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 48,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 88,3 MB Plattenplatz zusätzlich benutzt.
Extrahiere Vorlagen aus Paketen: 100%
Vormals nicht ausgewähltes Paket libjbig0:armhf wird gewählt.
dpkg: nicht behebbarer fataler Fehler, Abbruch:
Abschließender Zeilenvorschub fehlt in Dateilisten-Datei des Paketes »libtalloc2:armhf«
E: Sub-process /usr/bin/dpkg returned an error code (2)
>>> Clone luma.examples from github
Klone nach '/home/pi/oled_phoniebox/luma.examples' ...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Total 783 (delta 1), reused 1 (delta 1), pack-reused 781
Empfange Objekte: 100% (783/783), 5.32 MiB | 327.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (502/502), Fertig.
Checke Dateien aus: 100% (96/96), Fertig.
>>> Installing luma Packages
./setup.sh: Zeile 36: pip3: Kommando nicht gefunden.
./setup.sh: Zeile 37: pip3: Kommando nicht gefunden.
>>> Link demo_opts.py
rm: das Entfernen von '/home/pi/oled_phoniebox/demo_opts.py' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
>>> Installing Service...
● oled_phoniebox.service - Display Service
   Loaded: loaded (/etc/systemd/oled_phoniebox.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-01-03 15:18:14 CET; 6min ago
 Main PID: 215 (code=exited, status=1/FAILURE)

Jan 03 15:18:09 rpi_zero systemd[1]: Started Display Service.
Jan 03 15:18:14 rpi_zero python3[215]: Traceback (most recent call last):
Jan 03 15:18:14 rpi_zero python3[215]:   File "/home/pi/oled_phoniebox/oled_phoniebox.py", line 9, in <module>
Jan 03 15:18:14 rpi_zero python3[215]:     from luma.core.render import canvas
Jan 03 15:18:14 rpi_zero python3[215]: ImportError: No module named 'luma'
Jan 03 15:18:14 rpi_zero systemd[1]: oled_phoniebox.service: Main process exited, code=exited, status=1/FAILURE
Jan 03 15:18:14 rpi_zero systemd[1]: oled_phoniebox.service: Unit entered failed state.
Jan 03 15:18:14 rpi_zero systemd[1]: oled_phoniebox.service: Failed with result 'exit-code'.
>>> Installation finished
>>> Please reboot Pi
pi@rpi_zero:~/oled_phoniebox $

Installation of python-imaging fails on debian buster

On Debian buster the installation of python-imaging fails as it isn't available anymore. The replacement seems to be python-pil, you might want to update that here as a replacement generally since it is available in all "older" distros as well.

Cheers,
Uli

GPIO Buttons service not working

Hi,

thanks again for the project.
I installed the OLED and it worked fine. However I just realized that the GPIO button are not working any longer. I started the script on the oled directory and upon running all works fine. I choose option 2, the replacement.
I'll try and set up the service again, let's see

OLED Phoniebox Display Service fails after trying to start

Hi, first off all thank you for the hard work you put into your project. Unfortunately I can't get the OLED display to work. Checked with i2c tools if OLED display is even found but that isn't the problem. After starting or restarting the service i get the following status error message

pi@phoniepi:~ $ sudo service oled_phoniebox status
● oled_phoniebox.service - OLED Phoniebox Display Service
Loaded: loaded (/etc/systemd/oled_phoniebox.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-01-12 21:47:14 CET; 9min ago
Process: 959 ExecStart=/usr/bin/python3 /home/pi/oled_phoniebox/./oled_phoniebox.py (code=exited, status=1/FAILURE)
Main PID: 959 (code=exited, status=1/FAILURE)

Jan 12 21:47:14 phoniepi python3[959]: self._serial_interface.data(data)
Jan 12 21:47:14 phoniepi python3[959]: File "/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py", line 119, in data
Jan 12 21:47:14 phoniepi python3[959]: write(list(data[i:i + block_size]))
Jan 12 21:47:14 phoniepi python3[959]: File "/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py", line 128, in _write_large_block
Jan 12 21:47:14 phoniepi python3[959]: self._bus.i2c_rdwr(self._i2c_msg_write(self._addr, [self._data_mode] + data))
Jan 12 21:47:14 phoniepi python3[959]: File "/usr/local/lib/python3.7/dist-packages/smbus2/smbus2.py", line 637, in i2c_rdwr
Jan 12 21:47:14 phoniepi python3[959]: ioctl(self.fd, I2C_RDWR, ioctl_data)
Jan 12 21:47:14 phoniepi python3[959]: OSError: [Errno 121] Remote I/O error
Jan 12 21:47:14 phoniepi systemd[1]: oled_phoniebox.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 21:47:14 phoniepi systemd[1]: oled_phoniebox.service: Failed with result 'exit-code'.

Since I am a noob I was wondering if you have any sugesstion what I might have done wrong.

Always on start screen when a track is played

Hello,

The installation of oled_phoniebox succeeded on my phoniebox, but when a song is played I always have the "start" screen . When I press buttons I have the right images, also when I shutdown the raspberry but I don't have the song info when it is played . I chose "full" config, and I have another ssd1306 with another phoniebox that works well, so I assume there's no issue about that .
I tried to stop and start the oled_phoniebox service, and reinstall .
Per haps the link between oled_phoniebox and mpd is not right ?

Thanks for this cool project !

V3 compatibility?

Hey! Just a short question: Did anyone try to run this with V3 of the phoniebox?

Thanks a lot for the effort! Great work!

Best regards!

Shutdown

I'm very new in this Topic, but have successful installed the phoniebox with the oled Display.

I'm working with two Rotary knobs for volume control (press for pause) and next/Previous (press for shutdown).

  1. Is there any possiblility to keep the shutdown function with the oled Display? OR is GPIO3 the only one who the shutdown can work? So if I2C needed, no shutdown function?

  2. Is there any other possibilitie to change to get the wlan information on the display or change the mode? Because I have the rotary knobs, it's impossible to press next/Previous on the same time....

Thank you for the great work! Installation was successful on the first try without any problems!

'mpc -f %file% current' seems to have new output format

It seems like mpc changed the format of its output. When there are no ID3 Tags, indicated by if txtline2 == "\n":
You try to parse something (:) thats not in the output of mpc -f %file% current
Here is what mpc outputs on my system (fresh install of debian buster with rpi jukebox 2.4): Kinderlieder Klassiker/1/Track.01.mp3
This results in a list index out of range exception and the display just shows the music image as defined by 'except:'

Replacing

filename = set_characters(get_mpc("mpc -f %file% current"))
filename = filename.split(":")[2]
filename = set_characters(filename)
localfile = filename.split("/")
txtline1 = localfile[1]
txtline2 = localfile[0]

with

file_path = file.split('/')
txtline1 = file_path.pop()
txtline2 = '/'
txtline2 = txtline2.join(file_path)

fixed this for me.

Appening in /boot/config.txt not working properly for me

I'm installing a Phoniebox with Hifiberry Miniamp from the scratch using your documentation.

Everything works fine.

After installing your OLED installer i get no sound anymore.
After checking all files i see, that the append in the /boot/config.txt was not properly.

The first line was directly append without a linebreak after the last parameter in the config.txt.

Looking like this:
dtoverlay=hifiberry-dacdtparam=i2c1=on
dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=400000

I test it several times on a blank sd card and get everytime the same result.

Maybe it's possible just to add a line break before append the first parameter. Thank you,

Title Screen instead of the normal Information

Hi, i have a Problem and can't find a hint. I really like your work, but It was a long and rocky road to get the oled screen to display another thing, than the title screen. I tried weeks to fix it, and finally i found the problem with the soundcard. So i now can see the info screen and i'm realy happy. But now when a title plays a longer time the info screen dissapears and the title screen is back and won't go away. This happens when the elapsed time is over 800.000 like so ELAPSED="1038.579" I prooft the problem and edit a folder.conf at an other title, the same thing happend. I checked the mpc status and there was no change.

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.