Mercurial > repo
view bin/horrolative @ 4385:dee64960f4ed
<boily> ` chmod 0755 bin/horrolative
author | HackBot |
---|---|
date | Thu, 30 Jan 2014 21:46:16 +0000 |
parents | 4454857b5767 |
children |
line wrap: on
line source
#!/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)))))'