20.08.2025
FinWX:n sivuston toimintahäiriöinen serveri korvataan uudella
Työt serverin korvaamiseksi uudella serverillä ovat aloitettu.
Lue korvaustyöstä lisää täältä.
FinWX:n ylläpito pahoittelee sivuston toimintahäiriöstä aiheutunutta haittaa.
// Decode JSON into an associative array
$data = json_decode($json, true);
// Initialize variables to store extracted values
$aFo1 = null;
$etdyGe1 = null;
// Loop through the dataList to find the desired keys
foreach ($data["dataList"] as $item) {
if ($item["key"] === "A_Fo1") {
$aFo1 = $item["value"];
} elseif ($item["key"] === "Etdy_ge1") {
$etdyGe1 = $item["value"];
}
}
// Output results
echo "A_Fo1: " . $aFo1 . " Hz\n";
echo "Etdy_ge1: " . $etdyGe1 . " kWh\n";