Skip to main content
class: JordanPrice\Toolbox\Tools\Weather\WeatherTool
env vars: WEATHER_API_KEY
source: GitHub

Prism Integration

Publish

Optionally, you can publish the configuration file to make modifications:
Add your Weather API key to your .env file:

Methods

__invoke

Get weather data for a location.

Parameters

  • location (string): Location to get the weather for. Can be a city name, zipcode, IP address, or lat/lng coordinates. Example: “London”

Returns

  • string: Formatted weather information