Files
Backend/WEBROOT/Commands/WeatherLog.php
T
2026-05-21 11:42:46 +02:00

26 lines
584 B
PHP

<?php
include_once( __DIR__ . '/../src/utils/databaseMethods.php');
include_once( __DIR__ . '/../src/classes/getData.php');
include_once( __DIR__ . '/../src/database/databaseConnect.php');
$data = new getSpecificData();
print_r($data->getWeather());
echo "";
$aktuell=($data->getWeather()['aktuell']);
$min=($data->getWeather()['min']);
$max=($data->getWeather()['max']);
$gefuehlt=($data->getWeather()['gefuehlt']);
$zeit=(date("d.m.Y H:i:s"));
DatabaseInsert(
"Wetter",
"ZEIT, AKTUELL, MIN, MAX, GEFUEHLT",
$zeit,
$aktuell,
$min,
$max,
$gefuehlt,
);