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
### Keybase proof | |
I hereby claim: | |
* I am infernvs on github. | |
* I am infernvs (https://keybase.io/infernvs) on keybase. | |
* I have a public key ASDVPC_HpLM9_y0Ra2Oiou5FPI6j0ghKn1dWkf-ikKXo2wo | |
To claim this, I am signing this object: |
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"]' |