This app takes away the time that it takes every morning to select an outfit and create new and unique outfits that not only look good but that are good for the weather. Mix&Match works by Calling the API Open-Meteo to obtain the current temperature and based on the temperature generate a randomized outfit for the user. The items in this list are store in a spreadsheet, brought to Thunkable and randomized selected to create interesting and different outfits.
The first step for this app to work dynamically is to use the location sensor to give exact data of the temperature. With the current data was then call the API using a function call displayWeather with a parameter: response. The weather is then display at the top right of the screen in the app.
For each one of the buttons in the app to generate items the same structure as this one was used. with conditional statements that check the current weather label and selected the list of items from the specific temperature at the time the app is being used.
The function generate item was created to avoid redundancy in the code, and the parameters clothing list and item with return value were also created in this function to make the code more eficient.