adjust hardcoded keys

This commit is contained in:
2025-09-07 10:32:49 +02:00
committed by root
parent 8164db5549
commit 40ca1222f5

View File

@@ -62,8 +62,6 @@ function openweathermap($iCity, $bDebug = false) {
/* Perform actual call */ /* Perform actual call */
$sUrl = sprintf('https://api.openweathermap.org/data/2.5/weather?id=%d&appid=%s', $iCity, KEY); $sUrl = sprintf('https://api.openweathermap.org/data/2.5/weather?id=%d&appid=%s', $iCity, KEY);
$sUrl = sprintf('https://api.openweathermap.org/data/2.5/weather?id=%d&appid=%s', $iCity, KEY);
// $sUrl = 'https://samples.openweathermap.org/data/2.5/weather?q=Uitgeeddst&appid=5fc7ebf9168bfbe9745920438e3b1';
$sJSON = file_get_contents($sUrl); $sJSON = file_get_contents($sUrl);
return json_decode($sJSON, true); return json_decode($sJSON, true);
} }