/weather_and_time

A kind of clock widget with dynamic video background. Cointains the forecast application

Primary LanguagePython

weather_and_time

This is a django app with some interesting python scripts. First of all, I used the ip api to calculate the user's ip. Next, using the JavaScript Date() object, I calculate the current time of the user. Also, using the openweather api, I pass the user's city specified by ip address and find out the current weather and the forecast for the next 5 days. Changing the background video depending on the weather.

Это django приложение с некоторыми интересными python скриптами. В первую очередь, я использовал ip api, чтобы вычислить ip пользователя. Далее используя JavaScript объект Date() вычисляю нынешнее время пользователя. Также с помощью openweather api, передаю город пользователя указаный по ip адресу и узнаю нынешнюю погоду и прогноз на следующие 5 дней. В зависимости от погоды меняю фоновое видео.

The project is still under development

Проект ещё на стадии разработки