A few months ago I started the first webradio project based on an ESP32 (Arduino API). I changed the project platform to a Rasberry Pi for several reasons:
- The wifi streaming performance of the ESP32 (Arduino platform) is not as good as expected
- It is not possible to use Wifi and Bluetooth in parallel.
- It was not possible to find a way to automatically (re)connect an already paired Bluetoothspeaker
All this issues working like a charm with the raspi.
My motivation to choose this platform was to dive deeper into Python and GUI-development for touch displays.
There is a Python wrapper for VLC, which does all the streaming work in this project.
I found CustomTKinter by Tom Schimansky and gave it try. It's a good looking and easy to use addition to Tkinter.
- Rasberry 4B running Bookworm 64-bit
- Waveshare 7.9" Touch LCD
- WAVESHARE 7.9" DSI LCD & RPI 4B ENCLOSURE
- Bluetooth Speaker
Run py3 main_oop.py kiosk
to start in fullscreen kiosk mode.
Show installed packages: pip list
In case there are errors like these on startup of the python app
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_concat_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_imem_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_mms_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_realrtsp_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_srt_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_wasapi_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libattachment_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libcdda_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libdcp_plugin.dll
[000002635638b9b0] main libvlc error: stale plugins cache: modified C:\Program Files\VideoLAN\VLC\plugins\access\libdshow_plugin.dll
execute the following command on an admin shell:
c:\programme\videolan\vlc\vlc-cache-gen.exe c:\programme\videolan\vlc\plugins\
- https://www.youtube.com/watch?v=WE1IuPOICxE
- Scrollable Frames
- https://www.youtube.com/watch?v=A48414Lz7NM
- Switch Frames
- MVC with Tkinter
- Professional GUI with TKinter inkl. Switch frames
- Using images in tkinter