This is a weather tool based on the Open Weather Map API. You need a (free) API Key for Open Weather Map to use this API.
Get a free API Key for Open Weather Map.
To add your API key:
-
Copy the file
.env.sample
to.env
and add the API Key:STEPZEN_OPEN_WEATHER_MAP_APIKEY=
-
Save the file.
-
Import the tool:
wxflows init --endpoint-name api/my-project \ --import-name weather \ --import-package https://raw.githubusercontent.com/IBM/wxflows/refs/heads/main/tools/weather.zip \ --import-tool-name weather \ --import-tool-description "Retrieve detailed weather information." \ --import-tool-fields "weatherByCity"
-
Deploy the wxflows endpoint:
wxflows deploy
When deployed, the endpoint will pick up the API Key from your .env
file.
Please reach out to us on Discord if you have any questions or want to share feedback. We'd love to hear from you!