Skip to content

chess-levin/webradio_touch

Repository files navigation

VLC based webradio with lcd touch display

picture of webradio touch

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.

Parts

Config

Run py3 main_oop.py kiosk to start in fullscreen kiosk mode.

Python

Show installed packages: pip list

VLC

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\

Resources

Python

Waveshare Touch LCD

TKinter

Rasberry Pi

VLC

Assembly

enclosure assembly enclosure assembly enclosure assembly enclosure assembly enclosure assembly

About

VLC based webradio with lcd touch display

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published