chore(webapp): verwijder hardcoded SONOS IP en gebruik config.py

Het hardcoded IP-adres voor de SONOS API is verwijderd uit app.py. In plaats daarvan wordt het IP-adres nu geïmporteerd uit config.py, wat configuratiebeheer vergemakkelijkt en flexibiliteit biedt bij het wijzigen van netwerkinstellingen.
This commit is contained in:
filoor 2025-05-28 19:11:42 +02:00
parent 5b75976839
commit cb710214f2
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ SETTINGS_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'settin
HADITHS_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static', 'hadiths.json') HADITHS_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static', 'hadiths.json')
VUMG_API = 'https://www.vumg.nl/?rest_route=/dpt/v1/prayertime&filter=today' VUMG_API = 'https://www.vumg.nl/?rest_route=/dpt/v1/prayertime&filter=today'
CLIPS_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static', 'clips') CLIPS_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static', 'clips')
SONOS_API_IP = '192.168.0.114' # IP van Raspberry Pi waar Sonos API draait # SONOS_API_IP wordt nu geïmporteerd uit config.py
# Globale variabelen # Globale variabelen
debug_time_offset = 0 # Offset in seconden voor debug mode debug_time_offset = 0 # Offset in seconden voor debug mode

1
done
View File

@ -65,3 +65,4 @@ Wed May 28 08:39:34 CEST 2025: Settings pagina georganiseerd in tabbladen - 4 ta
Wed May 28 13:43:52 CEST 2025: Bevestigd dat Adzkaar scherm wordt geopend in nieuwe pagina bij gebedstijd Wed May 28 13:43:52 CEST 2025: Bevestigd dat Adzkaar scherm wordt geopend in nieuwe pagina bij gebedstijd
Wed May 28 13:46:26 CEST 2025: Adzkaar aangepast van nieuwe pagina naar fullscreen modal in hoofdpagina Wed May 28 13:46:26 CEST 2025: Adzkaar aangepast van nieuwe pagina naar fullscreen modal in hoofdpagina
Wed May 28 14:02:31 CEST 2025: Debug tijd synchronisatie toegevoegd tussen debug pagina en hoofdpagina Wed May 28 14:02:31 CEST 2025: Debug tijd synchronisatie toegevoegd tussen debug pagina en hoofdpagina
2025-05-28 19:11:30 - SONOS IP adres probleem opgelost: hardcoded 192.168.0.114 verwijderd uit app.py, nu gebruikt het config.py (192.168.0.112)