]> Stephen's Gitweb - reasonableweather.git/commitdiff
Remove unused variable
authorStephen Jianu <stephen@stephenjianu.com>
Sun, 23 Mar 2025 21:19:14 +0000 (16:19 -0500)
committerStephen Jianu <stephen@stephenjianu.com>
Sun, 23 Mar 2025 21:19:14 +0000 (16:19 -0500)
index.php

index e9304c392ae6658879ec83f64f552c990d57a891..8ee9bbf3efd9e2b4bef51a84b9ba69e6250e81eb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -17,7 +17,6 @@
        echo "<img src=\"".$image."\"/><br>".$description."<br>".$json["current"]["temperature_2m"]."&deg; F\n";
        echo "</h1>\n";
        echo "<h3>Your 7 day forecast for Park Ridge is:</h3>\n";
-       $tempNow = $json["current"]["temperature_2m"];
        for ($i = 0; $i < 7; $i++) {
                $code = $json["daily"]["weather_code"][$i];
                $description = $jsonDescriptions[$code]["day"]["description"];