« Bash api » : différence entre les versions
| Ligne 43 : | Ligne 43 : | ||
<syntaxhighlight lang="bash" copy> | <syntaxhighlight lang="bash" copy> | ||
curl "wttr.in/48.8566,2.3522?format=v2" | curl "wttr.in/48.8566,2.3522?format=v2" | ||
==== open-meteo.com ==== | |||
<syntaxhighlight lang="bash" copy> | |||
curl -s "https://api.open-meteo.com/v1/forecast?latitude=48.85&longitude=2.35¤t_weather=true" | jq '.current_weather' | |||
</syntaxhighlight> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
=== openstreetmap === | === openstreetmap === | ||