-
Notifications
You must be signed in to change notification settings - Fork 16
config.txt
This chapter explains the meaning of the properties in config.txt file.
The properties in this section allow to define screen information.
[screen.info]
width = 480
height = 320
depth = 32
frame.rate = 30
hdmi = False
no.frame = False
flip.touch.xy = False
multi.touch = False
The property frame.rate
defines the screen frame rate. 30 frames per second is the default value. This property affects the animation speed of the scrolling title.
The property hdmi
should be used if HDMI display was connected to the Raspberry Pi board. It defines that double-buffering will be switched off.
no.frame
property allows to display Peppy UI without window frame. That can be useful when player was started in X Window and there is the need to use it in full-screen mode.
Using property flip.touch.xy
it's possible to flip X,Y coordinates for touchscreen events.
The property multi.touch
should be used with multi-touch displays (e.g. the Official 7" Raspberry Pi display).
This section contains properties which can switch on/off different functionality in Peppy player.
[usage]
touchscreen = True
mouse = True
lirc = False
rotary.encoders = False
web = True
stream.server = False
browser.stream.player = False
voice.assistant = False
headless = False
vu.meter = False
album.art = True
auto.play = True
long.press.time.ms = 700
poweroff = True
check.for.updates = False
In order to use web client the property use.web should be set to True
For using voice assistant functionality the property use.voice.assistant
should be set to True
The property use.headless
should be set to True to run Peppy player in a headless mode.
If Peppy player was installed on some graphical desktop then property poweroff
should be set to False to avoid system shutdown when Poweroff button was clicked twice in GUI.
The properties required for logging configuration were grouped in this section.
file.logging = False
log.filename = /home/pi/Peppy/peppy.log
console.logging = False
enable.stdout = True
show.mouse.events = False
- file.logging - enable/disable logging to file.
- log.filename - log file name. Log messages will be saved in this file if file logging was enabled.
- console.logging - enable/disable console log messages.
- enable.stdout - enables stdout for messages. Should be set to True in most cases.
- show.mouse.events - enable/disable log messages for mouse events.
This section defines the properties for the File Browser and File Player. Here are the default properties:
[file.browser]
audio.file.extensions = mp3,wav,wv,flac,ape
playlist.file.extensions = m3u,cue
folder.images = folder.jpg,folder.png,cover.jpg,cover.png,front.jpg,front.png
cover.art.folders = covers,artwork,scans,art
auto.play.next.track = True
cyclic.playback = True
hide.folder.name = False
folder.image.scale.ratio = 0.8
rows = 3
columns = 3
alignment = center
- audio.file.extensions - only files with extensions listed in this property will be displayed in the File Browser.
- playlist.file.extensions - defines file extensions for supported playlists
- folder.images - file names listed in this property define album art images which will be displayed in the File Player
- cover.art.folders - this property lists folder names which will be used by Slideshow screensaver. The screensaver will display all images from these folders in the loop.
- auto.play.next.track - starts playing next track automatically if True.
- cyclic.playback - starts playing the first track automatically if True.
- hide.folder.name - True will cause file browser to show only images and hide text info.
- folder.image.scale.ratio - defines the scale ratio of images displayed in the file browser.
- rows - the number of rows in the file menu.
- columns - the number of columns in the file menu.
- alignment - image alignment in the button. Possible values: center, left, right
The only property necessary to configure web server is the port number. The host IP address will be detected by the Peppy player automatically.
[web.server]
http.port = 8000
https = False
The property https
will make web server use HTTPS protocol instead of the default HTTP.
This property defines port number which will be used by Peppy web client to listen to the stream
[stream.server]
stream.server.port = 8080
podcasts.folder = /home/pi/podcasts
This property defines the folder name where podcasts will be saved for the offline usage.
These properties allow to enable/disable different player modes.
[home.menu]
radio = True
audio-files = True
audiobooks = True
stream = False
cd-player = False
podcasts = True
airplay = False
spotify-connect = False
back = True
screensaver = True
equalizer = True
language = True
timer = True
network = True
player = True
about = True
These properties allow to enable/disable the particular screensaver. When disabled it will not show up in the Screensaver menu.
[screensaver.menu]
clock = True
logo = True
slideshow = True
peppymeter = True
peppyweather = True
spectrum = True
lyrics = True
random = True
These properties allow to switch on/off the particular language. After switching off the language will not show up in the menu.
[languages.menu]
English-USA = True
German = True
French = True
Italian = True
Spanish = True
Russian = True
The properties specific for the Voice Assistant should be defined in this section.
[voice.assistant]
type = Google Assistant
credentials = /home/pi/credentials.json
device.model.id = Peppy
device.id = my_peppy
command.display.time = 1
The colors in this section define the color scheme of the whole UI.
[colors]
color.web.bgr = 0,38,40
color.dark = 0,70,75
color.dark.light = 20,90,100
color.medium = 70,140,150
color.bright = 160,190,210
color.contrast = 255,190,120
color.logo = 20,190,160
color.mute = 242,107,106
The font for Peppy player is located in folder Peppy/font/
. It can be changed for any other font and its name should be defined here. This allows to switch between fonts placed in that folder.
[font]
font.name = FiraSans.ttf
startup.script.name =
shutdown.script.name =
These properties let reassign GPIO pins for rotary encoders.
[rotary.encoders]
gpio.volume.up = 16
gpio.volume.down = 26
gpio.mute = 13
gpio.move.left = 6
gpio.move.right = 12
gpio.select = 5
jitter.filter = 1
- Peppy Players
- Peppy Home
- Hardware
- Audio Players
- Software
- Installation Guide
- Updating Guide
- Peppy Configuration
- Languages
- Scripts
- Voice Assistant
-
Peppy Player UI
- About
- Home Screen
- Radio Player
- Radio Groups
- Radio Favorites
- Radio Browser
- File Browser
- File Menu
- Quick Configuration
- File Player
- Audiobooks Player
- Audiobooks Browser
- Stream
- Podcasts Player
- Podcasts Browser
- AirPlay
- Spotify Connect
- Bluetooth Sink
- Jukebox
- Archive
- Equalizer
- Timer
- Language
- Network
- Headless Mode
- Resolution
- Recursive Playback
- Playback Order
- Information
- Background
- Icons
- Fonts
- Player Screen
- Image Viewer
- Switch
- Collection
- Catalog
- YA Streams
- Web UI
- Screensavers
- Woodware
- Sketches