Logo of Kodi
and the time.
KodiDisplyInfo is a little Python/Pygame program, which the Kodi Media Center JSON-RPC API uses to display actually information of the just running movies or music on the little TFT Display. Due to the disposition of limited quantity of pixels on the display, often 320x240 on 2.8" or 480x320 on 3.5" displays, only a few information such as runtime and title or thumbnail are displayed.
MediaPlayer Box hardware 2014:
Raspberry Pi 2 B + TinyLCD 3.5" + OpenDisplayCase + Hard drive.
MediaPlayer Box hardware 2016:
UP Board + Adafruit PiTFT 3.5" + OpenDisplayCase + Hard drive.
pi@raspberrypi ~ $ sudo apt-get -y install python python-pygame git
git clone https://github.com/bjoern-reichert/KodiDisplayInfo.git
Change into the (sub)-directory "KodiDisplayInfo" and rename the file "sample.config.txt" to "config.txt". Then edit the file with an editor.
[CONFIG] #Screen Modus: time (default), later thumbnail SCREENMODUS = time #Title format: oneline (default), twoline TITLEFORMAT = oneline #Time format: minutes (default), kodi (00:00:00) TIMEFORMAT = minutes [DISPLAY] # Possible resolutions: 320x240 (default) or 480x272 or 480x320 RESOLUTION = 480x320 # Set to your Framebuffer /dev/fb1 or /dev/fb2 FBDEV = /dev/fb1 # Setting find unter: Kodi : System → Settings → Services → Webserver → Allow control of Kodi via HTTP [KODI_WEBSERVER] # Set it to localhost or IP (192.168.2.101) HOST = localhost # Port of the Kodi Webserver PORT = 8080 # Username USER = kodi # Password PASS = [COLOR] # Color for background BLACK = 000000 # Color for font WHITE = FFFFFF # Color for error message RED = FF0000 # Color for progress bar background GREEN = 87D31E # Color for progress bar improvement ORANGE = E07018
The call does not work via SSH! (pygame.error: Unable to open a console terminal)
NO KODI ACCESS! The webserver of Kodi must be activated and the access settings must be correct.
To run "KodiDisplayInfo" and "Kodi" parallel at boot you must setup a startup script.