-
Notifications
You must be signed in to change notification settings - Fork 5
/
webradio_fallback.conf
118 lines (94 loc) · 5.61 KB
/
webradio_fallback.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# This is the only configuration-File for the Python-Script "webradio.py". All Values entered here will be read only
# at each startup of the script and can not be changed and respected during runtime.
# Please note, that you need "sudo" in your start-command, when you want to use the GPIOs (In and Out)
# -> sudo python /home/pi/webradio/webradio.py
# Also please note the different Starting - Methodes:
#(1) python ~/webradio/webradio.py >> Real GPIOs inactiv, WITH Simulator
#(2) python ~/webradio/webradio.py --disable-gpio >> Real GPIOs inactiv, NO Simulator
#(3) sudo python ~/webradio/webradio.py >> Real GPIOs activ, NO Simulator
#
# Also keep in Mind the different Startup-Arguments which you may add:
#'--no-network-check' ='Ignore missing network connection')
#'--debug' ='Show debug messages')
#'--disable-gpio' ='Disables GPIOs (Only available on Raspberry Pi)')
#'--fullscreen' ='Shows Window in Full-Screen Mode')
#'--touchscreen' ='disables visible mouse-pointer')
[GENERAL]
# Screen Resolution : Define the Resolution of the Display which is used. This will affect the Window-Size.
# Possible Values: 1024x600 800x480 700x480 640x480 -> 1024x600 will be used as fallback and is recommended
Screen_resolution=1024x600
#Screen_resolution=800x480
#Screen_resolution=700x480
#Screen_resolution=640x480
# "MusicFolder" : Give a absolute path to the location of the folder which were given to the mpd.conf file.
# (in mpd.conf it is called 'music_directory')
MusicFolder=/home/pi/Musik
# "VARIABLE_DATABASE_NAME" : Give the NAME (not the path) of the symbolic link, which you may have placed into your
# Music-Folder. In your "variable Database" a exchangeable data-storage like an USB-Stick should get mounted.
# Note that this subfolder or symbolic link gets updated as soon as something is mounted in the mountpoint.
VARIABLE_DATABASE_NAME="usb_device"
# "VARIABLE_DATABASE_MOUNTPOINT" : Give the PATH (not the Name) of the Folder where exchangeable data-storages
# like an USB-Stick get mounted. Mounting is Managed from /etc/fstab.
VARIABLE_DATABASE_MOUNTPOINT=/home/pi/usb_device
# Weather_LocationID : This is the Location-ID for your specific town. The weatherforecast will be shown for this
#In order do find the correct Location-ID, I suggest to visit "https://weather.com/de-DE" and search for your town
#in the upper right corner.
#With a search for "Hamburg" you will be forwarded to the Browser-Adress:
#https://weather.com/de-DE/wetter/heute/l/GMXX0049:1:GM --> The needed Location ID is encrypted in there.
# >>>>>GMXX0046<<<<<<<<
# Enter this id in above field
Weather_LocationID=GMBY7640
Weather_LocationName=Sattelpeilnstein
# sleepTimerDigitalSpinBox: The sleeptimer can look like a an old-school spinner or a digital spinbox.
# the old-school spinner is flickable but if you use an resistve Touchscreen or a mouse you may prefer the digiral ones.
# False = Spinner
# True = SpinBox
SleepTimerDigitalSpinBox=False
# In the subfolder "res/designs" are different designs to choose. The design which is currently active can be changed
# in the Settings-Tab or in this conf-file, if the design which is selected from the conf-file is not existing, a
# predefinded fallback will be used.
design=fallback
[DEVELOPMENT]
# THESE SETTINGS ARE ONLY NECESSARY IF YOU WANT TO RUN THE PROGRAMM ON A DESKTOP-PC IN ADDITION! DONT TOUCH THIS :-)
MusicFolder=/home/matthias/Musik
VARIABLE_DATABASE="toplevel"
[GPIOS_IN]
# IMPORTANT: Use Board-Numbering, not GPIO Numbering
# All Switches are LOW-Active, this means you have to connect the GPIO to a 3.3V Supply with current limitation in case
# If the Switch is clicked, a logical "0" has to be produced.
# Power_switch: Note: The Power-Switch has a double Function, first is "Longpress" which turns the radio OFF, second is
# short-click to "umount" a mounted USB-Stick...
# DO NOT USE OTHER PIN FOR ON/OFF BUTTON! Otherwise you will not be able to start the pi from halt (standby)
IN_Power_switch=5
# Preset switch : These switches are "progammable" Buttons were specific radio-channels can be "stored" on with a
# "long-press" for "store" and
# "short-click" for "play".
# NOTE: You can add more or less, just count the digit at the end of the descriptor (Next would be IN_Preset_switch5)
IN_Preset_switch1=7
IN_Preset_switch2=11
IN_Preset_switch3=13
IN_Preset_switch4=15
[GPIOS_OUT]
# IMPORTAND: Use Board-Numbering, not GPIO Numbering
# These are outputs! Expect 3.3V with a low current! So do not attatch big loads ...
# Normaly Use LEDs with a suitable current-limiting-resistor.
# OUT_Power_status Turns on as soon as the webradio is "playing" or active (even when in standby)
OUT_Power_status=36
# OUT_USB_status Turns on as soon as something is mounted (USB-Stick), as long as it shows, you are not allowed to pull
# the USB-Stick out... first umount (using Power-Button)
OUT_USB_status=32
# These Outputs can be also added or reduced. RELAIS1 and 2 will be called as "AMP on AMP off" ... RELAIS3 will be
# used as "LCD_Off", RELAIS4 is not in use at my side. NOTE: If you want to use this, Python-Coding is necessary.
OUT_RELAIS1_status=31
OUT_RELAIS2_status=33
OUT_RELAIS3_status=35
#OUT_RELAIS4_status=37
[ROTARY_ENCODER]
Pin_A=16
Pin_B=18
[DHT11]
# IMPORTANT: give the GPIO not the Pin-No (Pin3 is GPIO2 for example)
# GPIO_TEMP: Where is the DHT11-Sensor connected with the I2C Line to the Pi ? Use GPIO! (Pin3, is GPIO2)
GPIO_TEMP=2
# delay_tempmeasurement : How often (in Seconds) should the Temperature-Label updated ? in Seconds! 3 minutes == 180sec.
delay_tempmeasurement = 180