diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-11 00:44:59 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-11 00:56:04 -0500 |
commit | 0a41deb9c67172c0597a0ac9e029c54640d03758 (patch) | |
tree | bc2bde734dd2b599af09e94bd78693913d198903 /bin/hush/weather | |
parent | c12f2bec67cd1964ec8bb3c524e83582b729282c (diff) | |
download | conf-0a41deb9c67172c0597a0ac9e029c54640d03758.tar.gz conf-0a41deb9c67172c0597a0ac9e029c54640d03758.zip |
display temperature in celsius
Diffstat (limited to 'bin/hush/weather')
-rwxr-xr-x | bin/hush/weather | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hush/weather b/bin/hush/weather index 09e5fa0..6d762d7 100755 --- a/bin/hush/weather +++ b/bin/hush/weather @@ -35,7 +35,7 @@ if (length($location) == 5) { $location = zip_location($location); } -my $data = slurp_http("https://api.darksky.net/forecast/$api_key/$location"); +my $data = slurp_http("https://api.darksky.net/forecast/$api_key/$location?units=si"); my $hour = (localtime(int($data->{currently}{time})))[2]; my $temp = int($data->{currently}{temperature}); |