Weather Data Pipeline

I used JavaScript to make a fetch request to Meteo's weather API on their company website. Next, I plotted it using only JavaScript and HTML in the following method:

  • In the first JS function written, I requested the API data, created an empty data array, and populated it with API data for the days specified.
  • Next, I called another function, drawChart().
  • Within the drawChart() function:
      • Added headers to the data array.
      • Initialized dataTable using the data array.
      • Initialized “options” variable with title, x-axis label, and y-axis label.
      • Initialized chart for plotting using the dataTable and Google’s AreaChart() function.

Originally I was using Python’s Flask framework to deploy a website with this chart locally. Now that I’m hosting a full website using S3, the Flask framework is unnecessary and excluded from this website’s setup.