diff --git a/index.html b/index.html
index fca4bc7..0e6e2f4 100644
--- a/index.html
+++ b/index.html
@@ -90,7 +90,20 @@
draw_image_and_boxes(file, boxes);
const location = locationInput.value;
- getWeather(location);
+
+ if (cropTypeInput.value == "external") {
+ getWeather(location);
+ }
+
+ else {
+ const randomTips = [
+ "water your tomatoes every day.",
+ "keep the temperature between 20-25 degrees Celsius.",
+ "place the tomatoes in sunlight."];
+
+ const randomTip = randomTips[Math.floor(Math.random() * randomTips.length)];
+ document.getElementById("weatherInfo").innerText = "TIP! To maximalize your yields " + randomTip;
+ }
});
function draw_image_and_boxes(file, boxes) {