From e5e55c9a4867dee0b066807195c163c404aae5c3 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 19 Apr 2023 18:52:50 +0300 Subject: [PATCH] Add hostname --- earth_wallpaper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/earth_wallpaper.sh b/earth_wallpaper.sh index a58c57d..17304e2 100755 --- a/earth_wallpaper.sh +++ b/earth_wallpaper.sh @@ -181,7 +181,9 @@ if [[ "$o_longitude" == "West" ]]; then fi weather_url="http://api.wunderground.com/api/be78b9c2c0dbd00f/conditions/lang:ES/q/$g_latitude,$g_longitude.xml" temperature=$("${curl_cmd}" -s "$weather_url" | egrep -o "-?[0-9]*\.?[0-9]?" | sed "s///g" - | sed "s|||g" -) -text="Image from $cur_date at $time\n$city $temperatureº C" + +text="Host: ${hostname}\n${cur_date} at ${time}\n${city} ${temperature}º C" + convert_cmd=$(which convert) if [ ! -x "${convert_cmd}" ]; then if [ "$(which apt)" != "" ]; then