Inky Phat Name Badge does nothing

Mine was OK with the weather and calendar examples.
Name_badge only works if I adjust the code to not ask for a name, but have it hard-coded instead.

I’ve got the same issue. Calendar and Weather are OK but cannot, for love or money, get the name badge to work. Also trying to get the balena-based https://github.com/balenalabs/inkyshot project to run, and everything’s working except the display isn’t updating!

Inkyshot looks interesting, I’ll give that a go someday.

Name badge does work, but not out-of-the-box/as intended, at least not for me.
I changed the code to not ask for a name, but use a name I added to the code myself.
Ran it through Geany, works fine.
A proper fix from the Pimoroni guys would be appreciated though…

Ok, inspired by THIS THREAD, I get the following:

python name-badge.py --type "phat" --colour "yellow" --name "Inigo Montoya"

FAIL

python name-badge.py --type "auto" --colour "yellow" --name "Inigo Montoya"

SUCCESS

Question is, why?!

Hey Richard - Tried this and to no avail. Maaan this thing is stress! - a tiny circuit board is making me want throw things out the window

I’ve just been trying an inky pHAT red on a fresh install of raspbian. Installed the old library, which worked. Installed the new one, which came up with some install errors, but things seem to be going fine apart from two things.

1 - Had to install smbus2 manually (pip3 install smbus2)
2 - Have to run with python3, the examples don’t work with 2.7.

The following should work fine:

python3 name-badge.py --type phat --colour red --name β€œInigo Montoya”

1 Like

Quick update on this.

Created a fresh new OS and gave Inky another go.
100% success this time :-).

The initial build though takes aeons, and seems to be trying to install a lot of things it either cannot install, or doesn’t need.
If that part of the process could be accelerated, we’d be super happy!

Thank you.

login as: pi
pi@192.168.1.30's password:
Linux raspberrypi 5.4.72+ #1356 Thu Oct 22 13:56:00 BST 2020 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Nov 21 14:12:47 2020
pi@raspberrypi:~ $ curl https://get.pimoroni.com/inky | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38853  100 38853    0     0   101k      0 --:--:-- --:--:-- --:--:--  100k

This script will install everything needed to use
Inky pHAT & wHAT

Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/inky'

Note: Inky pHAT & wHAT requires SPI communication

Do you wish to continue? [y/N] y

Checking environment...
Updating apt indexes...
.....................

Checking hardware requirements...

Checking for packages required for GPIO control...
raspi-gpio is already installed
RPi.GPIO installed and up-to-date

SPI already enabled

Checking packages required by SPI interface...
spidev installed and up-to-date

Inky pHAT & wHAT comes with examples and documentation that you may wish to install.
Performing a full install will ensure those resources are installed,
along with all required dependencies. It may however take a while!

Do you wish to perform a full install? [y/N] y

Checking for dependencies...
python-numpy is already installed
python3-numpy is already installed
python-pil is already installed
python3-pil is already installed
python-lxml is required
Installing python-lxml...
python3-lxml is already installed
python-smbus is already installed
python3-smbus is already installed

Installing Inky pHAT & wHAT library for Python 2...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting inky
  Downloading https://files.pythonhosted.org/packages/be/78/8cb56555f740b3408e3a9ad3e523da6e50966d123edf17d2bc6dc1c31409/inky-1.1.1-py2-none-any.whl
Collecting smbus2 (from inky)
  Downloading https://www.piwheels.org/simple/smbus2/smbus2-0.3.0-py2.py3-none-any.whl
Requirement already satisfied: spidev in /usr/lib/python2.7/dist-packages (from inky) (3.4)
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages (from inky) (1.16.2)
Installing collected packages: smbus2, inky
Successfully installed inky-1.1.1 smbus2-0.3.0

Installing Inky pHAT & wHAT library for Python 3...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting inky
  Downloading https://files.pythonhosted.org/packages/7f/4c/3c8afa922f802325802980b6a436bf8f6600d6741c06be28dbf179bbce14/inky-1.1.1-py3-none-any.whl
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from inky) (1.16.2)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from inky) (3.4)
Collecting smbus2 (from inky)
  Using cached https://www.piwheels.org/simple/smbus2/smbus2-0.3.0-py2.py3-none-any.whl
Installing collected packages: smbus2, inky
Successfully installed inky-1.1.1 smbus2-0.3.0

Checking for additional software...
python-geocoder is required
Installing python-geocoder...
E: Unable to locate package python-geocoder
Apt failed to install python-geocoder!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting geocoder
  Downloading https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl (98kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102kB 389kB/s
Requirement already satisfied: click in /usr/lib/python2.7/dist-packages (from geocoder) (7.0)
Collecting ratelim (from geocoder)
  Downloading https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from geocoder) (2.21.0)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from geocoder) (1.12.0)
Collecting future (from geocoder)
  Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 829kB 80kB/s
Collecting decorator (from ratelim->geocoder)
  Downloading https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Building wheels for collected packages: future
  Running setup.py bdist_wheel for future ... done
  Stored in directory: /root/.cache/pip/wheels/8b/99/a0/81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e
Successfully built future
Installing collected packages: decorator, ratelim, future, geocoder
Successfully installed decorator-4.4.2 future-0.18.2 geocoder-1.38.1 ratelim-0.1.6
python3-geocoder is required
Installing python3-geocoder...
E: Unable to locate package python3-geocoder
Apt failed to install python3-geocoder!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting geocoder
  Using cached https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl
Collecting future (from geocoder)
  Downloading https://www.piwheels.org/simple/future/future-0.18.2-py3-none-any.whl (491kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 491kB 142kB/s
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from geocoder) (7.0)
Collecting ratelim (from geocoder)
  Using cached https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from geocoder) (2.21.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from geocoder) (1.12.0)
Collecting decorator (from ratelim->geocoder)
  Using cached https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Installing collected packages: future, decorator, ratelim, geocoder
Successfully installed decorator-4.4.2 future-0.18.2 geocoder-1.38.1 ratelim-0.1.6
python-beautifulsoup4 is required
Installing python-beautifulsoup4...
E: Unable to locate package python-beautifulsoup4
Apt failed to install python-beautifulsoup4!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (4.7.1)
python3-beautifulsoup4 is required
Installing python3-beautifulsoup4...
E: Unable to locate package python3-beautifulsoup4
Apt failed to install python3-beautifulsoup4!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (4.7.1)
python-qrcode is required
Installing python-qrcode...
python3-qrcode is required
Installing python3-qrcode...
python-icalendar is required
Installing python-icalendar...
python3-icalendar is required
Installing python3-icalendar...
python-fonts is required
Installing python-fonts...
E: Unable to locate package python-fonts
Apt failed to install python-fonts!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting fonts
  Downloading https://files.pythonhosted.org/packages/1a/09/d3d1ab62e91b5b0167e155779120b4127d5fb622da2ffcd9bd418d21198f/fonts-0.0.3-py2-none-any.whl
Installing collected packages: fonts
Successfully installed fonts-0.0.3
python3-fonts is required
Installing python3-fonts...
E: Unable to locate package python3-fonts
Apt failed to install python3-fonts!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting fonts
  Downloading https://files.pythonhosted.org/packages/3e/6a/ff04b5b3d22389aa57d09989ea708b93ca8f09ff57828d1ffb12ae6424a6/fonts-0.0.3-py3-none-any.whl
Installing collected packages: fonts
Successfully installed fonts-0.0.3
python-font_hanken_grotesk is required
Installing python-font_hanken_grotesk...
E: Unable to locate package python-font_hanken_grotesk
Apt failed to install python-font_hanken_grotesk!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_hanken_grotesk
  Downloading https://files.pythonhosted.org/packages/f1/8f/4529f17d8578d900cea54538b0e1020473203ac62cb4fafcd76f03342370/font_hanken_grotesk-0.0.2-py2-none-any.whl (391kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 399kB 170kB/s
Installing collected packages: font-hanken-grotesk
Successfully installed font-hanken-grotesk-0.0.2
python3-font_hanken_grotesk is required
Installing python3-font_hanken_grotesk...
E: Unable to locate package python3-font_hanken_grotesk
Apt failed to install python3-font_hanken_grotesk!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_hanken_grotesk
  Downloading https://files.pythonhosted.org/packages/fb/a5/2d62a85490b89381327dbfe4ece48fe9b7bda44ce564ec00d98e571d4891/font_hanken_grotesk-0.0.2-py3-none-any.whl (391kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 399kB 185kB/s
Installing collected packages: font-hanken-grotesk
Successfully installed font-hanken-grotesk-0.0.2
python-font_intuitive is required
Installing python-font_intuitive...
E: Unable to locate package python-font_intuitive
Apt failed to install python-font_intuitive!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_intuitive
  Downloading https://files.pythonhosted.org/packages/a2/d8/6ad3c8727e8f1c91da474efb419c411ea88cd7f32ecc1a19612b14773b7f/font_intuitive-0.0.4-py2-none-any.whl (66kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 71kB 447kB/s
Installing collected packages: font-intuitive
Successfully installed font-intuitive-0.0.4
python3-font_intuitive is required
Installing python3-font_intuitive...
E: Unable to locate package python3-font_intuitive
Apt failed to install python3-font_intuitive!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_intuitive
  Downloading https://files.pythonhosted.org/packages/cb/2b/e1327922695f8800e91c0917fa9f4c14ee9737dff974f127fde8341d68e6/font_intuitive-0.0.4-py3-none-any.whl
Installing collected packages: font-intuitive
Successfully installed font-intuitive-0.0.4
python-font_fredoka_one is required
Installing python-font_fredoka_one...
E: Unable to locate package python-font_fredoka_one
Apt failed to install python-font_fredoka_one!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_fredoka_one
  Downloading https://files.pythonhosted.org/packages/8a/57/08daf462fa61641a26c9ff3c1cd0b23b3b79ddeb319b871de335b48775b4/font_fredoka_one-0.0.4-py2-none-any.whl
Installing collected packages: font-fredoka-one
Successfully installed font-fredoka-one-0.0.4
python3-font_fredoka_one is required
Installing python3-font_fredoka_one...
E: Unable to locate package python3-font_fredoka_one
Apt failed to install python3-font_fredoka_one!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_fredoka_one
  Downloading https://files.pythonhosted.org/packages/44/eb/3b8e4e23afab4da77eb4744b36db9d11d9a4e85398314483006cb53fb1bf/font_fredoka_one-0.0.4-py3-none-any.whl
Installing collected packages: font-fredoka-one
Successfully installed font-fredoka-one-0.0.4
python-font_source_serif_pro is required
Installing python-font_source_serif_pro...
E: Unable to locate package python-font_source_serif_pro
Apt failed to install python-font_source_serif_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_source_serif_pro
  Downloading https://files.pythonhosted.org/packages/b7/6a/6abb168e0e754989979ba142962789c6a821172167406907f680cdd47824/font_source_serif_pro-0.0.1-py2-none-any.whl (1.8MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.8MB 41kB/s
Installing collected packages: font-source-serif-pro
Successfully installed font-source-serif-pro-0.0.1
python3-font_source_serif_pro is required
Installing python3-font_source_serif_pro...
E: Unable to locate package python3-font_source_serif_pro
Apt failed to install python3-font_source_serif_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_source_serif_pro
  Downloading https://files.pythonhosted.org/packages/5d/06/bbb42742135b3fc99cf330dfcc47701d46967aae602f29f4b52b5967a912/font_source_serif_pro-0.0.1-py3-none-any.whl (1.8MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.8MB 45kB/s
Installing collected packages: font-source-serif-pro
Successfully installed font-source-serif-pro-0.0.1
python-font_source_sans_pro is required
Installing python-font_source_sans_pro...
E: Unable to locate package python-font_source_sans_pro
Apt failed to install python-font_source_sans_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_source_sans_pro
  Downloading https://files.pythonhosted.org/packages/02/ef/f3d2e4efe40cdb153802a97c7a95b213703a5a7ec3d514459095d3cda251/font_source_sans_pro-0.0.1-py2-none-any.whl (2.2MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.2MB 35kB/s
Installing collected packages: font-source-sans-pro
Successfully installed font-source-sans-pro-0.0.1
python3-font_source_sans_pro is required
Installing python3-font_source_sans_pro...
E: Unable to locate package python3-font_source_sans_pro
Apt failed to install python3-font_source_sans_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting font_source_sans_pro
  Downloading https://files.pythonhosted.org/packages/4c/95/3d29d2f821bd368f74ab5fe5e7d5bf0a55a0a26d3202a56526f475e51c1b/font_source_sans_pro-0.0.1-py3-none-any.whl (2.2MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.2MB 38kB/s
Installing collected packages: font-source-sans-pro
Successfully installed font-source-sans-pro-0.0.1
python-wikiquotes is required
Installing python-wikiquotes...
E: Unable to locate package python-wikiquotes
Apt failed to install python-wikiquotes!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting wikiquotes
  Downloading https://files.pythonhosted.org/packages/e6/45/0ed50f224a4559fcaea28b851b6b896cb5a0f5c8a5c382034f82e92a664d/wikiquotes-1.4.tar.gz
Collecting bs4 (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages (from wikiquotes) (4.3.2)
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from wikiquotes) (2.21.0)
Collecting slacker (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/ce/e5/ea90f49e6d0905dcb2d0ab47e068b8f28f87dd97bd2e599164c693a52691/slacker-0.14.0.tar.gz
Collecting unidecode (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/d0/42/d9edfed04228bacea2d824904cae367ee9efd05e6cce7ceaaedd0b0ad964/Unidecode-1.1.1-py2.py3-none-any.whl (238kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 245kB 255kB/s
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (from bs4->wikiquotes) (4.7.1)
Building wheels for collected packages: wikiquotes, bs4, slacker
  Running setup.py bdist_wheel for wikiquotes ... done
  Stored in directory: /root/.cache/pip/wheels/0e/70/6f/0622d0ecbfee175c7f76dd337e91032a1e303ca1af6dccc85e
  Running setup.py bdist_wheel for bs4 ... done
  Stored in directory: /root/.cache/pip/wheels/a0/b0/b2/4f80b9456b87abedbc0bf2d52235414c3467d8889be38dd472
  Running setup.py bdist_wheel for slacker ... done
  Stored in directory: /root/.cache/pip/wheels/7e/ed/ff/f60455391d9ee3bb371ba41f1eb7eac0008e93cd3c6677a690
Successfully built wikiquotes bs4 slacker
Installing collected packages: bs4, slacker, unidecode, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.14.0 unidecode-1.1.1 wikiquotes-1.4
python3-wikiquotes is required
Installing python3-wikiquotes...
E: Unable to locate package python3-wikiquotes
Apt failed to install python3-wikiquotes!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting wikiquotes
  Downloading https://www.piwheels.org/simple/wikiquotes/wikiquotes-1.4-py3-none-any.whl
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from wikiquotes) (4.3.2)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from wikiquotes) (2.21.0)
Collecting slacker (from wikiquotes)
  Downloading https://www.piwheels.org/simple/slacker/slacker-0.14.0-py3-none-any.whl
Collecting bs4 (from wikiquotes)
  Downloading https://www.piwheels.org/simple/bs4/bs4-0.0.1-py3-none-any.whl
Collecting unidecode (from wikiquotes)
  Using cached https://files.pythonhosted.org/packages/d0/42/d9edfed04228bacea2d824904cae367ee9efd05e6cce7ceaaedd0b0ad964/Unidecode-1.1.1-py2.py3-none-any.whl
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4->wikiquotes) (4.7.1)
Installing collected packages: slacker, bs4, unidecode, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.14.0 unidecode-1.1.1 wikiquotes-1.4

Downloading examples and documentation...
Resources for your Inky pHAT & wHAT were copied to
/home/pi/Pimoroni/inky

Finalising Install...


Some packages could not be installed, review the output for details!

pi@raspberrypi:~ $



#####################################################################################

###### Calendar example - worked OK###########

pi@raspberrypi:~ $ cd /home/pi/Pimoroni/inky/examples
pi@raspberrypi:~/Pimoroni/inky/examples $ cd phat
pi@raspberrypi:~/Pimoroni/inky/examples/phat $ python3 calendar-phat.py --colour "yellow"
Inky pHAT: Calendar

Draws a calendar for the current month to your Inky pHAT.
This example uses a sprite sheet of numbers and month names which are
composited over the background in a couple of different ways.


Detected Yellow pHAT (SSD1608)
pi@raspberrypi:~/Pimoroni/inky/examples/phat $



#####################################################################################

###### Weather example - worked OK###########

pi@raspberrypi:~/Pimoroni/inky/examples/phat $ python3 weather-phat.py --colour "yellow"
Inky pHAT: Weather

Displays weather information for a given location. The default location is Sheffield-on-Sea.


Detected Yellow pHAT (SSD1608)
pi@raspberrypi:~/Pimoroni/inky/examples/phat $


#####################################################################################


###### Weather example - worked OK###########
pi@raspberrypi:~/Pimoroni/inky/examples $ python3 name-badge.py --type "auto" --colour "red" --name "Inigo Montoya"
pHAT/wHAT: Hello... my name is:

Use Inky pHAT/wHAT as a personalised name badge!


Detected Yellow pHAT (SSD1608)

Hi.

Just re-awakening this old thread.

Bought a black inkyphat 2.13.

Pi zero W Fresh install of raspian. Updated.

Install inkyphat as per instructions.

Prolonged build with errors.

No recognition of inky phat.

Tried everything. No success.

The tutorial is way out of date as previously noted.

Any ideas?

Thanks.

John

Hi

Update.

I fixed this.

A fresh… fresh! Install. Sudo update then fastidious input of the command including type and colour.

Cheers

John

This could have been better coordinated before releasing: I purchased thru Adafruit in US in Jan, and the link to the beginners tutorial is already outdated with github that one has to fin from R+ D after the pHAT wouldn’t update with simple instructions, but some canned sketches would work. It appears the initial build thru curl grabbs the older version when the simpler approach is a sudo pip install --upgrade inky to sort it out, then a totally different approach to the simple show text with this reformatted code that’s the result of 3 hrs/3 days to piece it all together. In short, suggest a more updated tutorial. This is how to put text on it, and the only apparent way that seems to show it, as the tutorial didn’t

from inky.auto import auto
from PIL import Image, ImageFont, ImageDraw
from font_fredoka_one import FredokaOne
font = ImageFont.truetype(FredokaOne, 22)

board = auto()

print(board.colour)
print(board.resolution)

inky_display = auto(ask_user=True, verbose=True)

img = Image.new(β€œP”, (inky_display.WIDTH, inky_display.HEIGHT))
draw = ImageDraw.Draw(img)

message = β€œThis is Super Crazy”
w, h = font.getsize(message)
x = (inky_display.WIDTH / 2) - (w / 2)
y = (inky_display.HEIGHT / 2) - (h / 2)

inky_display.set_border(inky_display.BLACK)

draw.text((x, y), message, inky_display.YELLOW, font)
inky_display.set_image(img)
inky_display.show()

Is it normal for eInk (Inky pHAT) to take 15 seconds to refresh and blink for that long? It’s really distracting for a 1 minute frequency update, and wondered if there is a code that can limit the extent of refreshing on the display to avoid the magnitude of flashing?

Thank you very much for this. It’s June 2021 now and this fixed my issues. I struggled to get the simple helloWorld tutorial to display anything. All the example scripts worked fine but nothing I wrote myself till I switched to the auto inclusion. +1 to the notion of an updated tutorial!

-julian

Sorry about that, looks like I’d updated the examples part of the tutorial to accommodate for the inky.auto library changes but not the bits about how to write your own code. Should all be correct now - thanks for the heads up!

Superb. Thanks @hel for following up. I appreciate it.

1 Like

Thanks for that. Disappointing though that it took a long discussion and eleven months for the otherwise amazing Pimoroni folks to react.