feat: /api/data.php with fixture source, robots.txt

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-11 14:40:15 +02:00
co-authored by Claude Fable 5.1
parent 216b6616fc
commit dfc28ee6c3
3 changed files with 84 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Weerscherm;
/** Echte bronnen: Netatmo (stationsdata, regenmetingen) en Open-Meteo (verwachting). Wordt in fase 3/4 ingevuld. */
final class LiveSource implements WeatherSource
{
public static function fromConfig(Config $config): self
{
throw new \RuntimeException('LiveSource is nog niet beschikbaar; gebruik data_source = fixture');
}
public function stationsData(): array
{
throw new UpstreamException('niet geïmplementeerd');
}
public function measure(string $deviceId, string $moduleId, int $begin, int $end): array
{
throw new UpstreamException('niet geïmplementeerd');
}
public function forecast(float $lat, float $lon, string $timezone): array
{
throw new UpstreamException('niet geïmplementeerd');
}
}