From cdead1a8f9160d7d170b5e3a7fd44956b5a4bc62 Mon Sep 17 00:00:00 2001 From: cheatoman Date: Wed, 27 Mar 2024 20:32:40 -0400 Subject: [PATCH 1/2] Update weather-cal.php Adds "high-low" option for temperature argument --- weather-cal.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weather-cal.php b/weather-cal.php index 1b22e05..811bd6b 100644 --- a/weather-cal.php +++ b/weather-cal.php @@ -92,6 +92,8 @@ function makeDescriptions($data) { function displayTemp($temp, $display) { if ($display == 'day') { return round($temp['day']) . '°'; + } else if ($display == 'high-low'){ + return round($temp['max']) . '°/' . round($temp['min']) . '°'; } else { return round($temp['min']) . '°/' . round($temp['max']) . '°'; } From 1ba2aafe0d37c2dceeee257b589f22a4b4ebc14d Mon Sep 17 00:00:00 2001 From: cheatoman Date: Sun, 24 Nov 2024 00:33:48 -0500 Subject: [PATCH 2/2] Update README.md to add "high-low" temperature display option --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37f3f77..6ad99c6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Key | Values --- | ------ `city` | `city name` or
`city name,state code` or
`city name,state code,country code` `units` | `metric` or `imperial` -`temperature` | `day` or `low-high` +`temperature` | `day` or `low-high` or `high-low` `location` | `show` or `hide` ## System Requirements