Mercurial > repo
changeset 4384:4454857b5767
<boily> ` echo -e "#!/bin/sh\\nwget -q ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/$1.txt -O - | grep $1 | python -c \'import math,sys;a,b=[int(x.replace(\\"M\\",\\"-\\")) for x in [f for f in sys.stdin.readline().split() if \\"/\\" in f][0].split(\\"/\\")];print(\\"Humidit\xc3\xa9 relative: %.1f%%\\"%(100*math.exp(17.67*(b/(b+243.5)-a/(a+243.5)))))\'" >bin/horrolative
author | HackBot |
---|---|
date | Thu, 30 Jan 2014 21:45:58 +0000 |
parents | e110a8cc4287 |
children | dee64960f4ed |
files | bin/horrolative |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/horrolative Thu Jan 30 21:45:58 2014 +0000 @@ -0,0 +1,2 @@ +#!/bin/sh +wget -q ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/.txt -O - | grep | python -c 'import math,sys;a,b=[int(x.replace("M","-")) for x in [f for f in sys.stdin.readline().split() if "/" in f][0].split("/")];print("Humidité relative: %.1f%%"%(100*math.exp(17.67*(b/(b+243.5)-a/(a+243.5)))))'