Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.08 KB

Weather tool

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 your API Key

Get a free API Key for Open Weather Map.

Getting started

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.

Support

Please reach out to us on Discord if you have any questions or want to share feedback. We'd love to hear from you!