Coder Social home page Coder Social logo

kautilyasingh07 / flood-rainfall-disaster-prediction-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sparxxz/flood-rainfall-disaster-prediction-website

0.0 0.0 0.0 45.55 MB

Advance warning system for flood with rainfall analysis

License: MIT License

JavaScript 5.08% Python 15.96% CSS 6.44% HTML 23.57% Jupyter Notebook 48.95%

flood-rainfall-disaster-prediction-website's Introduction

Flood-Rainfall-Disaster-Prediction-Website

NTT-CodeForGood-DataScience-HACKATHON (Finalist)

Disaster relief website from flood and rainfall.

Welcome Page

1

Approach:->

Disaster response is the second phase of the disaster Management cycle. It consists of a number of elements, for example, warning, evacuation, search and rescue, providing immediate assistance, assessing damage, continuing assistance and the immediate restoration. So among all, we have worked upon warning system for floods. In this, we have provided a user interface to the common public to check the level of water flow in rivers in future and have a provided a mechanism of notification if there is any possibility of flood due to any river in nearby future(12 months). Along with that users can also see the historical trends of rivers flow and can visualize the rainfall patterns also in their Sub-Division(Area). So with that much information beforehand and knowing the chances of the flood in any region we can prepare ourselves and alert the local public so that loss would be minimum.

Workflow chart

1

STEPS TAKEN IN THE PROCESS:->

CONNECTION TO HTML:

  1. A user issues a request for a domain's root URL / to go to its index page
  2. main.py maps the URL / to a Python function
  3. The Python function finds a web template living in the templates/ folder.
  4. A web template will look in the static/ folder for any images, CSSfiles it needs as it renders to HTML
  5. Rendered HTML is sent back to main.py
  6. main.py sends the HTML back to the browser

URL IN THE BROWSER AND BACKEND CONNECTION:

  1. First. we imported the Flask class and a function render template.
  2. Next, we created a new instance of the Flask class.
  3. We then mapped the URL / to the function index(). Now, when someone visits this URL, the function index() will execute.
  4. The function index() uses the Flask function render template() to render the index.html template we just created from the templates/ folder to the browser.
  5. Finally, we use run() to run our app on a local server.
  6. We'll set the debug flag to true, so we can view any applicable error messages if something goes wrong, and so that the local server automatically reloads after we've made changes to the code.
  7. When we visited http://127.0.0.1:5000/, main.py had code in it, which mapped the URL / to the Python function index().
  8. index() found the web template index.html in the templates/ folder, rendered it to HTML, and sent it back to the browser, giving us the screen above.

flood-rainfall-disaster-prediction-website's People

Contributors

sparxxz avatar

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.