Permalink
Browse files

+ openweathermap.org

  • Loading branch information...
l29ah committed Jun 23, 2016
1 parent 805b686 commit 535bdb1e759f5356b118b86fa962c3cfa04993a6
Showing with 7 additions and 0 deletions.
  1. +7 −0 openweathermap.org/openweathermap
@@ -0,0 +1,7 @@
#!/bin/bash
apikey='2106a30bdb931db58ebdb4416171cbe4' # up to 60 requests per minute TOTAL, don't abuse plzkthx
set -o pipefail
while o="`curl -s 'http://api.openweathermap.org/data/2.5/find?q='"$1"'&units=metric&mode=json&APPID='$apikey | jq -r '.list[0].main.temp'`"; do
echo -n "$o"
[[ -z "$o" ]] || break
done

0 comments on commit 535bdb1

Please sign in to comment.