From 937c306c67aa2aad2eab1f2a752f2d467f0c3306 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Thu, 13 Dec 2018 21:38:15 +0530 Subject: [PATCH] Add new message for / --- server.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 8015a1b..aa0bff6 100644 --- a/server.py +++ b/server.py @@ -121,8 +121,17 @@ def weather_to_text(forecast, kind, unit): @app.route('/') def index(): - text = ("To get the weather for a location, run curl " - "https://sky.webionite.com/location. \n" + config.source) + text = ("\nSky - A simple weather monitor\n\n" + "Usage\n\n" + "To check weather for your location simply run the following " + "command in a terminal\n\n" + "In Celsius\n" + "+ Weather for one week - curl sky.webionite.com/location \n" + "+ Weather for today - curl sky.webionite.com/location/t\n\n" + "In Fahrenheit\n" + "+ Weather for one week - curl sky.webionite.com/f/location \n" + "+ Weather for today - curl sky.webionite.com/f/location/t\n\n" + + config.source + "\n") return text