Weather Planner

This application is an on-line Proof Of Concept for Generative AI that comments live, during a web request, the data obtained from a weather API, during same web request (data stream analyser). The resulting web page contains AWS Gen AI recommendations for cloth and activities according to weather forecast for next 12 hours. Other use-cases for AI data stream analysis are comments and live game analysis in sports.
If page refreshed, Gen AI recommendation are expressed differently for same set of weather forecast. The AI prompt for Titan Text LLM is built dynamically with a Velocity template that includes transformed weather data for each of the next 12 hours. Recommendations can be according to user location. In the recommendation, Titan use literary styles like: formal, casual, funny, cosy, romantic.
More details about the fields from the page are presented in the table after the page.

FieldDetails
Weather PlannerTitle: application plans clothing and activities according to weather forecast
Start timeRequest time in time zone specified below
LocationThe default location is Bucharest, but after the user agreement, the location can be the one from user browser, and all weather data and recommendations will be for that location, even if only timezone city is displayed, which is the capital or a major city from the country of the location.
TimezoneThe default timezone is Bucharest. A timezone includes multiple locations that are identified according to geocoordinates from user browser.
StyleLiterary style randomly used by Titan Text LLM to give recommendations. Possible values: formal, casual, funny, cosy, romantic, meteorological, news, philosophical.
Vertical left sectionWeather forecast from weather API for next 12 hours after Start Time
Vertical section rowForecast hour and weather icon. On icon mouse-over, some weather details appear. Row colours shows day/night hours.
Central sectionAmazon Titan Text Premier Generative AI Large Language Model response: styled title and recommendations. The recommended activities consider the timezone city, and this POC consider that the weather forecast from location is very similar with the one from the timezone city.