Het IP-adres voor de Sonos API is bijgewerkt van 192.168.0.114 naar 192.168.0.112 in de configuratie. Deze wijziging is nodig om overeen te komen met de nieuwe netwerkinstellingen, zodat de applicatie correct verbinding kan maken met de Sonos-service. Zorg ervoor dat dit overeenkomt met de actuele netwerkconfiguratie om verbindingsproblemen te vermijden.
21 lines
696 B
Python
21 lines
696 B
Python
# Configuratie bestand voor de Adhaan applicatie
|
|
|
|
# OpenWeatherMap API configuratie
|
|
# Verkrijg een gratis API key op: https://openweathermap.org/api
|
|
OPENWEATHER_API_KEY = '99caf7628fd7197acd71df3fc2cafbdb'
|
|
|
|
# Locatie voor weersinformatie
|
|
WEATHER_LOCATION = 'Amsterdam,NL'
|
|
|
|
# Sonos API configuratie
|
|
SONOS_API_IP = '192.168.0.112'
|
|
|
|
# VUMG API voor gebedstijden
|
|
VUMG_API_URL = 'https://www.vumg.nl/?rest_route=/dpt/v1/prayertime&filter=today'
|
|
|
|
# Bestandspaden
|
|
import os
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
SETTINGS_PATH = os.path.join(BASE_DIR, 'settings.json')
|
|
HADITHS_PATH = os.path.join(BASE_DIR, 'static', 'hadiths.json')
|
|
CLIPS_PATH = os.path.join(BASE_DIR, 'static', 'clips') |