Skip to content

Instantly share code, notes, and snippets.

@flyinva
Last active August 29, 2015 14:23
Show Gist options
  • Save flyinva/8fc05dc6390a2fabf7ee to your computer and use it in GitHub Desktop.
Save flyinva/8fc05dc6390a2fabf7ee to your computer and use it in GitHub Desktop.
Décryptage de la météo
#/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