feat: project skeleton with Config and exceptions
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Kopieer dit bestand naar config.php en vul de waarden in.
|
||||
* config.php staat in .gitignore en mag nooit in git komen.
|
||||
*/
|
||||
return [
|
||||
// 'live' haalt data op bij Netatmo en Open-Meteo, 'fixture' levert vaste voorbeelddata.
|
||||
'data_source' => 'fixture',
|
||||
|
||||
// Uit de app op dev.netatmo.com.
|
||||
'netatmo_client_id' => '',
|
||||
'netatmo_client_secret' => '',
|
||||
|
||||
// Optioneel: het _id (MAC-adres) van het basisstation. Leeg = eerste station.
|
||||
'netatmo_device_id' => null,
|
||||
|
||||
// Fallback als het station geen tijdzone meldt.
|
||||
'timezone' => 'Europe/Berlin',
|
||||
|
||||
// Optioneel: locatie voor de verwachting. Leeg = locatie van het station.
|
||||
'forecast_lat' => null,
|
||||
'forecast_lon' => null,
|
||||
|
||||
// Optioneel: volgorde en labels van de binnenruimtes, op basis van het _id van de module.
|
||||
// Voorbeeld: ['70:ee:50:00:00:01' => 'Woonkamer', '03:00:00:00:00:02' => 'Slaapkamer']
|
||||
'indoor_modules' => [],
|
||||
|
||||
// Cache per bron, in seconden.
|
||||
'cache_ttl' => [
|
||||
'stations' => 300,
|
||||
'measure' => 900,
|
||||
'forecast' => 3600,
|
||||
],
|
||||
|
||||
// Map voor tokens en cache. Moet schrijfbaar zijn voor de webserver en buiten de docroot liggen.
|
||||
'storage_path' => __DIR__ . '/storage',
|
||||
];
|
||||
Reference in New Issue
Block a user