Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WebRadioPi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thorfin89
WebRadioPi
Commits
0becd8b4
Commit
0becd8b4
authored
Jan 22, 2023
by
Thorfin89
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Affichage du nom de la radio dans le bas de l'application
parent
4878d5e0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
23 deletions
+32
-23
README.md
README.md
+2
-0
radios.csv
data/radios.csv
+19
-19
WebRadioPi-on-eeePC.png
dcts/images/WebRadioPi-on-eeePC.png
+0
-0
main.py
main.py
+0
-0
pupitre.py
pupitre.py
+10
-3
webradiopi.cfg
webradiopi.cfg
+1
-1
No files found.
README.md
View file @
0becd8b4
...
...
@@ -12,6 +12,8 @@ Pour toute information : thorfin89@free.fr
Interface au 15/01/2023
#### Sur un eee-PC reconverti en poste de radio Web
![
WebRadioPi
](
dcts/images/WebRadioPi-on-eeePC.png
)
### SOLUTIONS :
...
...
data/radios.csv
View file @
0becd8b4
Nom,Pays,Type,Url,Logo
France Inter,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
France Musique,FR,Classique,http://direct.francemusique.fr/live/francemusique-midfi.mp3,france-musique.png
France Bleue Auxerre,FR,Régionale,http://direct.francebleu.fr/live/fbauxerre-midfi.mp3,fb-auxerre.png
France Bleue Isère,FR,Régionale,http://direct.francebleu.fr/live/fbisere-midfi.mp3,fb-isere.png
France Bleu Armorique,FR,Régionale,http://direct.francebleu.fr/live/fbarmorique-midfi.mp3,fb-armorique.png
France Info,FR,Informations,http://direct.franceinfo.fr/live/franceinfo-midfi.mp3,france-info.png
RTL,FR,Généraliste,http://icecast.rtl.fr/rtl-1-44-128?listen=webCwsBCggNCQgLDQUGBAcGBg,rtl.png
Europe 1,FR,Généraliste,http://stream.europe1.fr/europe1.mp3,europe-1.png
Nostalgie,FR,Divers,http://scdn.nrjaudio.fm/adwz2/fr/30601/mp3_128.mp3?origine=fluxradios,nostalgie.png
Dépèche Mode,UK,Rock,http://streaming.radionomy.com/wwwdepechemodebe-radio,dempechemode.png
TSF Jazz,FR,Jazz,http://tsfjazz.ice.infomaniak.ch/tsfjazz-high.mp3,tsf-jazz.png
Jazz Radio,FR,Jazz,http://jazzradio.ice.infomaniak.ch/jazzradio-high.mp3,jazz-radio.png
Live Ireland ch1,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Highlander Radio Live Stream,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
Boom FM Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
Celtic-Folk-Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
\ No newline at end of file
Null,Nom,Pays,Type,Url,Logo
,France Inter,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
,France Musique,FR,Classique,http://direct.francemusique.fr/live/francemusique-midfi.mp3,france-musique.png
,France Bleue Auxerre,FR,Régionale,http://direct.francebleu.fr/live/fbauxerre-midfi.mp3,fb-auxerre.png
,France Bleue Isère,FR,Régionale,http://direct.francebleu.fr/live/fbisere-midfi.mp3,fb-isere.png
,France Bleu Armorique,FR,Régionale,http://direct.francebleu.fr/live/fbarmorique-midfi.mp3,fb-armorique.png
,France Info,FR,Informations,http://direct.franceinfo.fr/live/franceinfo-midfi.mp3,france-info.png
,RTL,FR,Généraliste,http://icecast.rtl.fr/rtl-1-44-128?listen=webCwsBCggNCQgLDQUGBAcGBg,rtl.png
,Europe 1,FR,Généraliste,http://stream.europe1.fr/europe1.mp3,europe-1.png
,Nostalgie,FR,Divers,http://scdn.nrjaudio.fm/adwz2/fr/30601/mp3_128.mp3?origine=fluxradios,nostalgie.png
,Dépèche Mode,UK,Rock,http://streaming.radionomy.com/wwwdepechemodebe-radio,dempechemode.png
,TSF Jazz,FR,Jazz,http://tsfjazz.ice.infomaniak.ch/tsfjazz-high.mp3,tsf-jazz.png
,Jazz Radio,FR,Jazz,http://jazzradio.ice.infomaniak.ch/jazzradio-high.mp3,jazz-radio.png
,Live Ireland,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
,Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
,Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
,Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
,Boom FM_Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
,Celtic Folk Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
dcts/images/WebRadioPi-on-eeePC.png
0 → 100644
View file @
0becd8b4
603 KB
main.py
100644 → 100755
View file @
0becd8b4
File mode changed from 100644 to 100755
pupitre.py
View file @
0becd8b4
...
...
@@ -130,6 +130,8 @@ class Pupitre:
radios_list
=
[
dict
(
ligne
)
for
ligne
in
radios_list
]
# transforme en liste de dictionnaires
self
.
logo_selected
=
tk
.
PhotoImage
(
file
=
"images/Large/"
+
radios_list
[
num_radio
][
'Logo'
])
self
.
lbl_radio_selected
.
config
(
image
=
self
.
logo_selected
)
print
(
radios_list
[
num_radio
][
'Nom'
])
self
.
lbl_info_radio
.
config
(
text
=
radios_list
[
num_radio
][
'Nom'
],
font
=
(
'Helvatical bold'
,
20
))
def
switch_sound
(
self
):
# bascule on/off du son
global
mute
...
...
@@ -143,10 +145,15 @@ class Pupitre:
mute
=
False
def
info
(
self
):
# affichage de l'info sur la radio sélectionnée
self
.
lbl_info_radio
=
tk
.
Label
(
self
.
bandeau
)
self
.
lbl_info_radio
.
place
(
width
=
500
,
height
=
60
,
x
=
0
,
y
=
10
)
# affichage de l'info sur l'application dans le bas
lbl_info
=
tk
.
Label
(
self
.
bandeau
,
text
=
"WebRadioPi © Thorfin89"
,
anchor
=
CENTER
)
lbl_info
.
config
(
bg
=
"gray51"
,
fg
=
"white
"
)
lbl_info
.
place
(
width
=
180
,
height
=
16
,
x
=
620
,
y
=
60
)
self
.
lbl_info
=
tk
.
Label
(
self
.
bandeau
,
text
=
"WebRadioPi © Thorfin89"
,
anchor
=
CENTER
)
self
.
lbl_info
.
config
(
bg
=
bg_color
,
fg
=
"black
"
)
self
.
lbl_info
.
place
(
width
=
180
,
height
=
16
,
x
=
620
,
y
=
60
)
def
boucle
(
self
):
self
.
root
.
mainloop
()
webradiopi.cfg
View file @
0becd8b4
90
\ No newline at end of file
55
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment