-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate method for looking up weather station data #20
Comments
Starting a google sheet to compare API options https://docs.google.com/spreadsheets/d/1U8RnKo2cHlmG7Q6yCjSw3Qgd1t-uNCvvIvvm74XLk7s/edit?usp=sharing |
Use Archive to retrieve archival weather (do not use for last 6-7 days of weather)
|
I know we rejected To use import { useFetcher } from "@remix-run/react";
const fetchData = async () => {
const response = await fetch("https://api.example.com/data");
const data = await response.json();
return data;
};
export function MyComponent() {
const fetcher = useFetcher(fetchData);
const { isLoading, error, data } = fetcher;
if (isLoading) {
return <p>Loading...</p>;
}
if (error) {
return <p>Error: {error.message}</p>;
}
return (
<div>
{/* Render the fetched data */}
<pre>{JSON.stringify(data, null, 2)}</pre>
</div>
);
} Please note that the sources provided are not directly related to Remix, but they offer insights on using similar hooks and concepts in React applications. |
We're using |
Co-authored-by: plocket <plocket@users.noreply.github.com> Co-authored-by: Thad Kerosky <thadk@users.noreply.github.com> Co-authored-by: Leopardfoot <Leopardfoot@users.noreply.github.com>
Co-authored-by: plocket <plocket@users.noreply.github.com> Co-authored-by: Thad Kerosky <thadk@users.noreply.github.com> Co-authored-by: Leopardfoot <Leopardfoot@users.noreply.github.com>
We need to look up weather station data for the calculation of heat degree days. There are APIs online (e.g. https://www.degreedays.net) that might be able to help.
The text was updated successfully, but these errors were encountered: