Getting Displayotron to build menus


#1

Hi All

First post here!

I’ve got a displayotron that emulates the Real Time Information that you get at bus stops.

I want to add a menu to my application.

Found menu.py in https://github.com/pimoroni/dot3k/tree/master/python/examples/dothat/advanced

When I run it I get this error -

This advanced example uses the menu framework.
It gives you a basic menu setup with plugins. You should be able to view system info and adjust settings!
Press CTRL+C to exit.

Traceback (most recent call last):
File “menu.py”, line 17, in
from plugins.utils import Backlight, Contrast
ImportError: No module named plugins.utils

I do I overcome this problem?

Thanks in anticipation

Alex


#2

You’ll need to copy down all of the example code so that the menu.py can find the plugins folder.

Easiest way to do this:

git clone https://github.com/pimoroni/dot3k

Then cd into dot3k/python/examples/dothat/advanced and run it.

Usually this is done for you when you run the curl get.pimoroni.com/dot3k | bash installer and you should find the examples in ~/Pimoroni/dot3k ( aka /home/pi/Pimoroni/dot3k )


#3

Thanks

I first tried the curl get.pimoroni.com/dot3k | bash installer method. Didn’t seem to do much for me even answering a load of questions.

Then I went for the easiest way which worked like a dream, thanks.

Alex