Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RickV85 committed Apr 15, 2024
1 parent 4af83ec commit 59f9759
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SendTemps is a full-stack Next.js 14 application designed for Colorado Front Ran
- **Seamless User Account Management:** Integrates Google OAuth and NextAuth for a secure, streamlined sign-in experience with persistent sessions, enabling easy access to location customization features.
- **Interactive Mapping:** Features a point-and-click Google Maps interface for easy creation of backcountry locations, with an auto-updating, user-friendly UI.
- **Robust Location Management:** Employs a Vercel PostgreSQL database for durable storage of custom locations, supporting full CRUD operations through Next.js APIs for dynamic user interaction.
- **AI-Powered Recommendations:** Using prompt engineering, integrated AI to analyze forecasts and recommend optimal days to engage in the sports that the user selected location is associated with.
- **Optimized User Experience:** Implements intelligent error handling and automatic retry mechanisms for NOAA forecast API requests, ensuring smooth and informative user interactions.
- **Standalone Display:** Designed for optimal performance on mobile devices, with capabilities for home screen addition, paving the way for full Progressive Web App functionality in the future.
- **Hourly Forecast Display:** New as of 2.26.24 - Provides detailed hourly weather forecasts for more precise activity planning.
Expand All @@ -26,7 +27,6 @@ SendTemps is a full-stack Next.js 14 application designed for Colorado Front Ran
- **Multiple Sport Association:** Enable users to associate multiple sports with a single location for enhanced flexibility.
- **Customizable Default Views:** Allow users to personalize the locations around the Front Range that are loaded by default. This would allow a user to further personalize the application, increasing engagement by reducing irrelevant information.
- **Enhanced Search Functionality:** Implement text-based search with autocomplete to streamline location finding. This would be especially useful if a user has many locations and the current select inputs become too cumbersome.
- **AI-Powered Recommendations:** Using prompt engineering, integrate AI to analyze forecasts and recommend optimal days to engage in the sports that the location is associated with.

## Technical Challenges
- Google OAuth / NextAuth
Expand Down
18 changes: 6 additions & 12 deletions src/app/Components/DetailedDayForecast/DetailedDayForecast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ interface Props {

const DetailedDayForecast: React.FC<Props> = ({ period }) => {
const {
selectedLocType,
setHourlyForecastParams,
hourlyForecastData,
forecastSendScores,
error,
} = useContext(HomeContext);

if (period && hourlyForecastData) {
Expand All @@ -24,12 +22,10 @@ const DetailedDayForecast: React.FC<Props> = ({ period }) => {

const minRH = hourlyForecastData.getMinRHForTimePeriod(hourlyParams);

let sendScore;
if (forecastSendScores?.forecastPeriods) {
sendScore = forecastSendScores?.forecastPeriods.find(
(score) => score.name === period.name
);
}
const sendScoreData = forecastSendScores?.forecastPeriods.find(
(score) => score.name === period.name
);

return (
<article
className="detailed-day-forecast"
Expand All @@ -53,10 +49,8 @@ const DetailedDayForecast: React.FC<Props> = ({ period }) => {
</div>
<h2 className="day-header-text">{period.name}</h2>
<div className="day-header-details">
{sendScore?.sendScore ? (
<p>SendScore: {sendScore.sendScore}</p>
) : (
!error && selectedLocType !== "other" && <p>Loading...</p>
{sendScoreData?.sendScore && (
<p>SendScore: {sendScoreData.sendScore}</p>
)}
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/app/Components/HomeControl/HomeControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Forecast } from "@/app/Classes/Forecast";
import { HourlyForecast } from "@/app/Classes/HourlyForecast";
import { postForecastForSendScores } from "@/app/Util/OpenAiApiCalls";
import { OpenAIForecastData } from "@/app/Classes/OpenAIForecastData";
import { ForecastSendScores } from "@/app/Interfaces/interfaces";

export default function HomeControl() {
const {
Expand Down

0 comments on commit 59f9759

Please sign in to comment.