---
title: 'Dash (Plotly) application with meteo data'
url: 'https://www.faunalia.eu/en/blog/2020-01-07_dash'
markdown: 'https://www.faunalia.eu/en/blog/2020-01-07_dash.md'
lang: en
date: '2020-01-07'
description: 'dash meteoapp'
taxonomy:
  category:
    - blog
  tag:
    - plotly
    - flask
    - python
    - dash
  archives_month:
    - jan_2020
  archives_year:
    - '2020'
---

[ Faunalia ](https://www.faunalia.eu/en)     [ Blog ](https://www.faunalia.eu/en/blog)      Dash (Plotly) application with meteo data    

## [Dash (Plotly) application with meteo data](https://www.faunalia.eu/en/blog/2020-01-07_dash)

    7th Jan 2020

  [plotly](https://www.faunalia.eu/en/blog/tag:plotly) [flask](https://www.faunalia.eu/en/blog/tag:flask) [python](https://www.faunalia.eu/en/blog/tag:python) [dash](https://www.faunalia.eu/en/blog/tag:dash)  

# Introduction

With the [Dash](https://dash.plot.ly/) application of [Plotly](https://plot.ly/) team it is very easy to create custom Flask app/frameworks to deploy locally or on a dedicated server.

## Meteo-App SouthTyrol

The Bolzano County provides [historical data and dedicated API to download them](http://meteo.provincia.bz.it/download-dati.asp).

The data start from 2014 and depending on the station, different variables are available (rain, temperature, wind speed, etc).

See the [official webpage](http://meteo.provincia.bz.it/download-dati.asp) for further information.

## Set-up

We wrote a simple python script that *harvests* the data from the original database and writes them into a dedicated PostgreSQL database on our personal server.

This script is executed every day (actually every night) with a *cronjob*on our Liux Server.

The data are now available to be processed with SQL queries and other statistical tools.

![Workflow](https://www.faunalia.eu/images/8/c/2/a/4/8c2a481f3773881132c96124a6be5606320a3d23-preview.png)

### Dash

There are many different frameworks that can be used to display the data. One of these is [Dash](https://plot.ly/dash/), build on top of [Flask](https://www.palletsprojects.com/p/flask/).

Thanks to Dash, the data are read from the DB and different plots are available in order to see the behavior of many variables and places.

It is also possible create many plots on the same canvas in order to compare the same variable in different places.

Some example:

1. Comparing the temperature in Bolzano - Brunico - Merano:

    ![Temperature](https://www.faunalia.eu/user/pages/08.blog/2020-01-07_dash/temperature.gif)
2. Rain in Bolzano:

    ![Precipitazioni](https://www.faunalia.eu/user/pages/08.blog/2020-01-07_dash/precipitazioni.gif)
3. Wind speed in Merano:

    ![Vento](https://www.faunalia.eu/user/pages/08.blog/2020-01-07_dash/vento.gif)

## Deploy applicazione

Dash and Flask can be deployed on your server. There are many ways to do it, one of this is by using the we server [Apache](https://httpd.apache.org/).

For forther information have a look at the [meteoapp](https://gitlab.com/faunalia/meteoapp#southtyrol-meteo-app)repository or write us an email <info@faunalia.eu>.

 [  Previous Post ](https://www.faunalia.eu/en/blog/2019-10-30-dataplotly-release) [Next Post  ](https://www.faunalia.eu/en/blog/2020-03-10-remote-smart)

---

## Navigation

- Parent: [Blog](https://www.faunalia.eu/en/blog.md)
- Previous: [Smart & Remote Working](https://www.faunalia.eu/en/blog/2020-03-10-remote-smart.md)
- Next: [DataPlotly 3.0 is here!](https://www.faunalia.eu/en/blog/2019-10-30-dataplotly-release.md)
