Compare commits

..

No commits in common. "fae99965c6b033b31dc4cc96225390a0c53efe04" and "63213d43df6c752e7364e010ab42571b225482a4" have entirely different histories.

2 changed files with 0 additions and 32 deletions

View File

@ -13,5 +13,3 @@ To check weather for your location simply run the following command in a termina
### In Fahrenheit ### In Fahrenheit
+ Weather for one week - `curl sky.webionite.com/f/location` + Weather for one week - `curl sky.webionite.com/f/location`
+ Weather for today - `curl sky.webionite.com/f/location/t` + Weather for today - `curl sky.webionite.com/f/location/t`
Replace sky.webionite.com/ with sky.webionite.com/p/ on Windows

View File

@ -150,8 +150,6 @@ def index():
"In Fahrenheit\n" "In Fahrenheit\n"
"+ Weather for one week - curl sky.webionite.com/f/location \n" "+ Weather for one week - curl sky.webionite.com/f/location \n"
"+ Weather for today - curl sky.webionite.com/f/location/t\n\n" "+ Weather for today - curl sky.webionite.com/f/location/t\n\n"
"Replace sky.webionite.com/ with sky.webionite.com/p/ on "
"Windows \n\n"
+ config.source + "\n") + config.source + "\n")
return text return text
@ -164,10 +162,6 @@ def main(location, geocoder, cache_db, kind, unit):
"https://darksky.net/poweredby/\n") "https://darksky.net/poweredby/\n")
def strip_colors(text):
return re.sub('\033\\[[0-9;]+?m', '', text)
app.add_url_rule('/<location>', 'location', lambda location: app.add_url_rule('/<location>', 'location', lambda location:
main(location, geocoder, cache_db, "daily", "c")) main(location, geocoder, cache_db, "daily", "c"))
@ -185,27 +179,3 @@ app.add_url_rule('/f/<location>/', 'location_f/', lambda location:
app.add_url_rule('/f/<location>/t', 'today_location_f', lambda location: app.add_url_rule('/f/<location>/t', 'today_location_f', lambda location:
main(location, geocoder, cache_db, "hourly", "f")) main(location, geocoder, cache_db, "hourly", "f"))
app.add_url_rule('/p/<location>', 'plain_location', lambda location:
strip_colors(main(location, geocoder, cache_db, "daily",
"c")))
app.add_url_rule('/p/<location>/', 'plain_location/', lambda location:
strip_colors(main(location, geocoder, cache_db, "daily",
"c")))
app.add_url_rule('/p/<location>/t', 'plain_today_location', lambda
location: strip_colors(main(location, geocoder, cache_db,
"hourly", "c")))
app.add_url_rule('/p/f/<location>', 'plain_location_f', lambda location:
strip_colors(main(location, geocoder, cache_db, "daily",
"f")))
app.add_url_rule('/p/f/<location>/', 'plain_location_f/', lambda location:
strip_colors(main(location, geocoder, cache_db, "daily",
"f")))
app.add_url_rule('/p/f/<location>/t', 'plain_today_location_f', lambda
location: strip_colors(main(location, geocoder, cache_db,
"hourly", "f")))