Your message dated Sat, 23 Mar 2024 09:26:05 +0000
with message-id <[email protected]>
and subject line Bug#743662: fixed in wmweather 2.4.8-1
has caused the Debian Bug report #743662,
regarding wmweather has no option to turn off metric
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
743662: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743662
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wmweather
Version: 2.4.5-2
Severity: wishlist
Tags: patch

The system-wide wmweather.conf file lists metric, and since there's no
option to set imperial units, there's no way to bring up wmweather in
imperial units. Here's a patch to add such an option.

-- 
Kie ekzistas vivo, ekzistas espero.
diff -u src~/wmweather.1.in src/wmweather.1.in
--- src~/wmweather.1.in	2014-04-04 13:06:24.498062656 -0700
+++ src/wmweather.1.in	2014-04-04 13:08:10.326596205 -0700
@@ -73,6 +73,12 @@
 speed in kilometers per hour rather than miles per hour. This option can be
 toggled at runtime using a middle click.
 .TP
+.B \-i, \-\-imperial
+Display imperial values: temperatures in degrees Fahrenheit rather than degrees
+Celsius, pressure in inches of Mercury rather than hectoPascal, and wind
+speed in miles per hour rather than kilometers per hour. This option can be
+toggled at runtime using a middle click.
+.TP
 .B \-w, \-\-chill, \-W
 Display wind chill--if available--instead of dew point temperature.
 .TP
diff -u src~/wmweather.c src/wmweather.c
--- src~/wmweather.c	2014-04-04 13:06:24.498062656 -0700
+++ src/wmweather.c	2014-04-04 13:11:16.408034644 -0700
@@ -289,6 +289,8 @@
 			delay *= 60;
 		} else if (strcmp(buffer, "metric")   == 0) {
 			metric = 1;
+		} else if (strcmp(buffer, "imperial")   == 0) {
+			metric = 0;
 		} else if (strcmp(buffer, "hPa")      == 0) {
 			hPa  = 1;
 			mmHg = 0;
@@ -364,6 +366,7 @@
 		{"station",    1, NULL, 's'},
 		{"delay",      1, NULL, 'd'},
 		{"metric",     0, NULL, 'm'},
+		{"imperial",   0, NULL, 'i'},
 		{"hPa",        0, NULL, 'a'},
 		{"kPa",        0, NULL, 'k'},
 		{"mmHg",       0, NULL, 'g'},
@@ -397,7 +400,7 @@
 			mmHg   = 1;
 		}
 	while (1) {
-		if ((i = getopt_long(argc, argv, "s:d:makgbnpwWeut:x:U:chv", long_opts, NULL)) == -1)
+		if ((i = getopt_long(argc, argv, "s:d:miakgbnpwWeut:x:U:chv", long_opts, NULL)) == -1)
 			break;
 		switch (i) {
 		case 's':
@@ -429,6 +432,9 @@
 		case 'm':
 			metric = 1;
 			break;
+		case 'i':
+			metric = 0;
+			break;
 		case 'a':
 			hPa  = 1;
 			mmHg = 0;
@@ -495,6 +501,7 @@
 			printf("  -c, --compat          use version 1 monitor style, default in wmWeather,\n");
 			printf("  -d, --delay=[@]<min>  update delay, use @ for minutes past the hour,\n");
 			printf("  -m, --metric          display metric values: °C, hPa, km/h,\n");
+			printf("  -i, --imperial        display metric values: °F, mmHg, mi/h,\n");
 			printf("  -w, --chill           display wind chill instead of dew point,\n");
 			printf("  -e, --heat            display heat index instead of dew point,\n");
 			printf("  -b, --beaufort        display windspeed in Beaufort,\n");

--- End Message ---
--- Begin Message ---
Source: wmweather
Source-Version: 2.4.8-1
Done: Martin A. Godisch <[email protected]>

We believe that the bug you reported is fixed in the latest version of
wmweather, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin A. Godisch <[email protected]> (supplier of updated wmweather package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 23 Mar 2024 09:05:56 +0100
Source: wmweather
Architecture: source
Version: 2.4.8-1
Distribution: unstable
Urgency: low
Maintainer: Martin A. Godisch <[email protected]>
Changed-By: Martin A. Godisch <[email protected]>
Closes: 743662
Changes:
 wmweather (2.4.8-1) unstable; urgency=low
 .
   * New upstream release, including imperial patch, closes: #743662.
     Thanks to David Starner <[email protected]>.
   * Changed build system to debhelper.
   * Updated standards version.
Checksums-Sha1:
 9bc4a97cb327e9aafde61797c6b191e2b05d16ed 1850 wmweather_2.4.8-1.dsc
 7e44438910652bc7e7356bc3d3a98a0f48d40cb4 113536 wmweather_2.4.8.orig.tar.gz
 f1a30a737ee965c1e8f795da3e830d7ea417bda6 5116 wmweather_2.4.8-1.debian.tar.xz
 e5d61b9af18dba3d4b24d10d0424273300cd625d 7967 wmweather_2.4.8-1_amd64.buildinfo
Checksums-Sha256:
 cf85f0ed384b867b7a98b17fbf5dfa8e03d4f558116728fc431c226399882d51 1850 
wmweather_2.4.8-1.dsc
 d92e7e411ee4f5f6f5e7ce7d3050e494b04721a5284ec73ea189745900697a36 113536 
wmweather_2.4.8.orig.tar.gz
 64830ee2bf0f05e9d318a6965ab09776d96fb9536589af792c950c95bc43e6da 5116 
wmweather_2.4.8-1.debian.tar.xz
 195ed27389beb5ed73a6658b87f62b59a0fa88c915a4446281347a70053a4b68 7967 
wmweather_2.4.8-1_amd64.buildinfo
Files:
 fbc2531d515a847790c833faa366b9d4 1850 gnustep optional wmweather_2.4.8-1.dsc
 34d8c9fef4a4d62983df08d489c87a4c 113536 gnustep optional 
wmweather_2.4.8.orig.tar.gz
 9321f1a598dbf1ce678e6d56dfcc8eca 5116 gnustep optional 
wmweather_2.4.8-1.debian.tar.xz
 346e2dd0c9d71ce4d1e0b3613caa94b9 7967 gnustep optional 
wmweather_2.4.8-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCAAxFiEEGEIyO0/Pm5CZX6F/o1C5kfBaSFcFAmX+j+sTHGdvZGlzY2hA
ZGViaWFuLm9yZwAKCRCjULmR8FpIV6hmEACipAcfifmNKtTOZ9tRDF+XBVyY98Vz
+E0APzpxMMUb8bumNFep2P/lJbm6n3bZ4pivpaEuDNpXG7WQnmmlSFIIhJ/Fn6GQ
knZCxqpIsQA6yTc1w2A5rHm7ZMH1DXfWGxsaaZ1Mv11JwsfQvohFB4Vi8Y5pbLU8
JzPcnxPMBTml5lyOOaLXandU82WA9+hsujY39afMmnXTNzS+yL19hwCl6qzG2wx8
U4N5E3Tr5JNrLad4EeI+Crp4DZoPdcMoI9LuMK+LcOxHGFYRnbSkw572H1TBQnc6
ogOHKQWGUwQSTMWGIBkoHnwy0iXosL0rhemM0G2zwEsInfF/5l7fTxPg+e8jhq1t
qSO2vqT+U286l+Ig4MdZYU+TPrNz+7RZzYhx5zJUFuXE3N/jMCnsX4KWLtqnlDpq
QmTrM8pYEnJbX/ZeX7v6F1g02/wxoE8FxfTQPXI+qPo046V+5Al5Z8Yob8LRty2I
csG9yPatI6uUp/QPVMFcvzweVEFTvCoKwK+81AgFj0Pt+R/nFlC0xdUYcjBQxaXp
XHATyuGw6pxN4PmKuzVlQWIlylPzPsnQAxw/XzW2l+QdIciZ3uuaL38VGABsy/2E
cP11M9QxyC0XwJua9O4igy+TLzhWMJAWbDioaTIbqcrbJfMCXYA+9wB1DeQqCMdV
jSvFDukq1YVaGw==
=zNFf
-----END PGP SIGNATURE-----

Attachment: pgpx2h0hVSmOa.pgp
Description: PGP signature


--- End Message ---

Reply via email to