From babf8d1c234c0038d1ede710271c918d7d825384 Mon Sep 17 00:00:00 2001 From: aevans1987 Date: Wed, 12 Jun 2024 13:06:26 -0400 Subject: [PATCH] Update AppContext.js updating API endpoint --- client/src/AppContext.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/AppContext.js b/client/src/AppContext.js index dce1a80..749eba5 100644 --- a/client/src/AppContext.js +++ b/client/src/AppContext.js @@ -332,7 +332,7 @@ export function AppContextProvider({ children }) { axios .get( - `https://data.climacell.co/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=1h&apikey=${weatherApiKey}&endTime=${endTime}` + `https://api.tomorrow.io/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=1h&apikey=${weatherApiKey}&endTime=${endTime}` ) .then((res) => { if (!res) { @@ -389,7 +389,7 @@ export function AppContextProvider({ children }) { } axios .get( - `https://data.climacell.co/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=1d&apikey=${weatherApiKey}&endTime=${endTime}` + `https://api.tomorrow.io/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=1d&apikey=${weatherApiKey}&endTime=${endTime}` ) .then((res) => { if (!res) { @@ -479,7 +479,7 @@ export function AppContextProvider({ children }) { axios .get( - `https://data.climacell.co/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=current&apikey=${weatherApiKey}` + `https://api.tomorrow.io/v4/timelines?location=${latitude}%2C${longitude}&fields=${fields}×teps=current&apikey=${weatherApiKey}` ) .then((res) => { if (!res) {