MCPcopy
hub / github.com/Cveinnt/LiveTerm / getWeather

Function getWeather

src/utils/api.ts:16–23  ·  view source on GitHub ↗
(city: string)

Source from the content-addressed store, hash-verified

14};
15
16export const getWeather = async (city: string) => {
17 try {
18 const { data } = await axios.get(`https://wttr.in/${city}?ATm`);
19 return data;
20 } catch (error) {
21 return error;
22 }
23};
24
25export const getQuote = async () => {
26 const { data } = await axios.get('https://api.quotable.io/random');

Callers 1

weatherFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected