import eel
import pyowm
city = 'New York, USA'
owm = pyowm.OWM("*******************")
@eel.expose
def get_weather(place):
mgr = owm.weather_manager()
observation = mgr.weather_at_place(city)
w = observation.weather
temp = w.temperature('celsius')['temp']
return "It is now " + str(temp) + "°" + " in " + city
#eel.init("web")
#eel.start("main.html", size=(700, 700))