Last active
August 29, 2015 14:23
-
-
Save flyinva/8fc05dc6390a2fabf7ee to your computer and use it in GitHub Desktop.
Décryptage de la météo
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 | |
curl http://www.meteo-france.mobi/ws/getDetail/france/462010.json \ | |
| | jq '.result.previsions | map(.)[] | select(.jour<3) | select( .moment=="matin" or .moment=="midi" or .moment=="soir") | {"date": .date, "jour": .jour, "moment": .moment, "description": .description, "vent": {"direction": .directionVent, "vitesse": .vitesseVent, "rafales": .forceRafales}, "temperatures": {"min": .temperatureMin, "max": .temperatureMax}, "indiceUV": .indiceUV, "probaPluie": .probaPluie }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment