Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup issues #4

Open
hughrawlinson opened this issue Apr 28, 2023 · 3 comments
Open

Setup issues #4

hughrawlinson opened this issue Apr 28, 2023 · 3 comments

Comments

@hughrawlinson
Copy link

Hey, I'm setting up an epic viewer, and thought I'd list some issues I ran into (and hopefully some solutions to those issues which I'll add on the thread).

brightness.sh calls a command line utility called gpio which doesn't exist on my pi with the latest raspbian. The instructions don't list where to get that - the wiringpi project seems to be the one, but that also says it's bundled with raspbian and seems not to be. Maybe these calls could be replaced by calls to raspi-gpio, which does seem to be included.

The requirements.txt specifies pygame 1.9.4.post1, a version which seems to no longer be in the repositories. I tried 2.3.0, the current latest version, which is refusing to load the loading.jpg file with the error "File is not a Windows BMP file" - which is unexpected. I also tried to use 1.9.6, it ends up saying that there's no matching distribution found.

I'll keep digging in and post what I find.

@theschles
Copy link

theschles commented Aug 26, 2023

@hughrawlinson :

  • pygame 1.9.4.post1 is an apt package in RaspbianOS based upon Debian Buster
  • gpio is provided by the apt package wiringpi

@postema
Copy link

postema commented Mar 29, 2024

had some struggle to get this working. finally got it.
starting with a fresh CD card. It is essential to use the Buster OS !!!

start on https://shop.pimoroni.com/products/hyperpixel-round?variant=39381081882707
download the buster image with desktop and recommended software.

write this to SD with imager, last option: use own imagefile.

start your rpi-zero with this SD and connect via terminal / ssh

perform:

sudo apt-get update; sudo apt-get upgrade -y
(this take about 1 to 2 hours, so be patient and let the thing do its work)

sudo raspi-config
2.interface options
enable I2C en SPI

6.advanced options
A1. expand filesystem
reboot

install pip:

sudo apt-get install python3-pip

install rpi-gpio (should already be installed)

pip3 install rpi.gpio

install git:

sudo apt-get install git
git config --global user.email your@email.nl
git config --global user.name "your username on github"

git clone https://github.com/pimoroni/hyperpixel2r
cd hyperpixel2r
sudo ./install.sh

reboot
the display should now work.

for python to use the display:

sudo nano /boot/config.txt
change: dtoverlay=hyperpixel2r:disable-touch

sudo pip3 install hyperpixel2r

git clone https://github.com/pimoroni/hyperpixel2r-python
cd hyperpixel2r-python
sudo ./install.sh

mkdir ~pi/code/epic/
cd /code/epic/
git clone https://github.com/MattGrayYes/epic.git . (don't forget the final dot)

sudo pip3 install -r requirements.txt

option 1
find or make (all commands as sudo) ~pi/.config/lxsession/LXDE-pi/autostart
insert in this file (autostart):
@/home/pi/code/epic/start-epic.sh
your commands should come before the @screensaver line.

option 2
find /etc/xdg/lxsession/LXDE-pi/autostart
insert in this file (autostart):
@/home/pi/code/epic/start-epic.sh
your commands should come before the @screensaver line.

option 1 is user specific, option 2 is for all users.
if both are present the system uses option 1.

now reboot and the thing should work like sunshine.

manual (for testing)

sudo python3 -u epic.py
or
sudo ./start-epic.sh

@theschles
Copy link

theschles commented Apr 3, 2024

Hi @postema

I recommend converting your above comment into a PR to update README.md.

Separately, would it be less-intrusive / wiser to execute start-epic.sh as a @reboot entry in crontab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants