Skip to content

Interactive dashboard for historical and forecasted occupancy data at Kalevan liikuntapuisto, developed in 6 hours during the Image 2024, Tampere

Notifications You must be signed in to change notification settings

shepherd-06/Tampere-IOT-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Occupancy Data Dashboard with Forecasting

Project Overview

This project aims to create a comprehensive occupancy data dashboard for Kalevan liikuntapuisto in Tampere City. The dashboard displays historical occupancy data and provides a 30-day forecast using Prophet for predicting future occupancy trends. Additionally, the dashboard includes usage data in terms of total seconds the facility has been used by all users, converted to hours. This project was developed as part of the Imagine 2024 Tampere Program on June 11, completed within 6 hours. Data was provided by Wapice.

This project is deployed at https://imagine2024.ibtehaz.xyz. The website is optimized for PC only at this moment.

Features

Data Visualization

  • Displays historical occupancy data in an interactive bar chart.
  • Provides clear axis titles for better understanding: "Days" on the x-axis and "Occupancy (Total)" or "Usage (Hours)" on the y-axis, depending on the data type.

Forecasting

  • Generates a 30-day occupancy forecast using Prophet.
  • Forecast data is displayed in a line chart.
  • A table displays the forecasted occupancy alongside the graph for easy reference.

Interactive UI

  • Users can select a specific product to view detailed data and forecasts.
  • Loading spinner to indicate data fetching.
  • Bootstrap integration for a responsive and aesthetically pleasing UI.

Installation

Clone the repository:

git clone <repository_url>
cd <repository_directory>

Create a virtual environment and activate it:

python -m venv .venv
source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`

Install the required packages:

pip install -r requirements.txt

Usage

Run the application:

python app.py

Open a web browser and go to http://127.0.0.1:8050/ to view the dashboard.

How It Works

Dashboard

  • Dropdown Menu: Allows the user to select a specific location's occupancy data.
  • Fetch Data Button: Fetches historical occupancy data for the selected location.
  • Predict Button: Generates a 30-day forecast based on the fetched historical data.

Prediction Model

The prediction model uses Prophet to generate forecasts. The model takes the historical data, processes it, and predicts future occupancy for the next 30 days. The results are displayed in both a line chart and a table format.

Example Graphs

Historical Occupancy Data

Historical Occupancy Data of Beach-Kentaa from Jan 01 to Feb 11

30-Day Forecast

30 Day Usage Forecast of Beach-Kentaa from Feb 12 to Mar 12

Deployment

This project is deployed at https://imagine2024.ibtehaz.xyz. The website is optimized for PC only at this moment.

Acknowledgements

This project was developed for the Imagine 2024 Tampere Program on June 11. Special thanks to the organizers and participants for their support and collaboration and to Wpice for the dataset.

License

This project is licensed under the MIT License. See the LICENSE file for details. unlicensed.

Contact

For any questions or suggestions, please contact:

  • Name: Mohammad Asif Ibtehaz
  • Email: asif.ibtehaz@tuni.fi

About

Interactive dashboard for historical and forecasted occupancy data at Kalevan liikuntapuisto, developed in 6 hours during the Image 2024, Tampere

Topics

Resources

Stars

Watchers

Forks

Languages