GithubHelp home page GithubHelp logo

isaric / weather-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 3.37 MB

A simple python app that uses flask, requests and bokeh to give the user a weather report. This project is an exercise for an educational Python course.

Home Page: http://demo.path-variable.com

License: MIT License

Python 35.58% HTML 32.27% CSS 12.69% JavaScript 17.45% Dockerfile 2.01%
bokeh flask javascript python3 open-meteo-api

weather-app's Introduction

isaric GitHub stats

isaric GitHub most used languages

weather-app's People

Contributors

isaric avatar lorenavlah avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

weather-app's Issues

improve visualisations

Apply the following changes to the visualization package:

  • split each trend line into own graph
  • add table for current weather

def get_plot(weather_data, current):
plot = figure(x_axis_type="datetime")
if current:
y_range = weather_data["hourly"]["temperature_2m"]
y2 = weather_data["hourly"]["relativehumidity_2m"]
y3 = weather_data["hourly"]["windspeed_10m"]
x_range = [i for i in range(1,len(weather_data["hourly"]["temperature_2m"]))]
plot.multi_line([x_range, x_range, x_range], [y_range, y2, y3], color=["red", "green", "blue"], line_width=2)
else:
x_range = [i for i in range(1,len(weather_data["daily"]["temperature_2m_max"]))]
y_range = weather_data["daily"]["temperature_2m_max"]
y2 = weather_data["daily"]["temperature_2m_min"]
plot.multi_line([x_range, x_range], [y_range, y2], color=["red", "green"], line_width=2)
return components(plot)

Bug: Cities with same names treated as one city

When you have multiple cities with the same name available, any autocomplete value selected will be treated by the server as the first result with that name.
Example: Type in Paris. You will get back a dozen cities that are called Paris. Whichever you select, the results returned will be for Paris, France.
How to fix this? Include country information and/or coordinate pairs in the autocomplete. Coordinate pairs should be hidden for UX reasons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.