You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Define API URL and parameters
API_URL="https://api.open-meteo.com/v1/forecast"
LATITUDE="-23.5475"
LONGITUDE="-46.6361"
TIMEZONE="America/Sao_Paulo"# Make the API request and store the response
response=$(curl -s "${API_URL}?latitude=${LATITUDE}&longitude=${LONGITUDE}¤t_weather=true")# Parse and print the necessary information from the response
current_temperature=$(echo $response| jq '.current_weather.temperature')echo"${current_temperature}°C"