Adds a slash command that returns the current weather for a given location.
Uses the AccuWeather API. Requires a free API key.
- Register on the AccuWeather developer portal.
- Then create an app and get the API key.
It's free for 50 calls per day.
Install using SillyTavern's extension installer from the URL:
https://github.com/SillyTavern/Extension-AccuWeather
The function tool needs to be enabled in the extension settings first and used with a compatible backend.
If all requirements are met, just ask the model about the current weather or a forecast for your location.
Docs: Function Calling
/weather <location>
Available arguments:
units
-metric
orimperial
condition
- the result should include the weather condition, e.g. "Clear". The default istrue
.temperature
- the result should include the temperature. The default istrue
.feelslike
- the result should include the "feels like" temperature. The default isfalse
. Only works iftemperature
istrue
.humidity
- the result should include the humidity. The default isfalse
.wind
- the result should include the wind speed and direction. The default isfalse
.pressure
- the result should include the pressure. The default isfalse
.visibility
- the result should include the visibility. The default isfalse
.uvindex
- the result should include the UV index. The default isfalse
.precipitation
- the result should include the precipitation. The default isfalse
.
/forecast <location>
Available arguments:
units
-metric
orimperial
/weather units=metric condition=true temperature=true feelslike=true humidity=true wind=true pressure=true visibility=true uvindex=true precipitation=true London, UK
/forecast units=imperial Tampa, FL
AGPL-3.0