This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APIID="GET API KEY" | |
temp() { | |
python -c 'import json; import sys; print json.load(sys.stdin)["main"]["temp"]' | |
} | |
humidity() { | |
python -c 'import json; import sys; print json.load(sys.stdin)["main"]["humidity"]' | |
} | |
wind() { | |
python -c 'import json; import sys; print json.load(sys.stdin)["wind"]["speed"]' |