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.
- 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.
- 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.
- 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.
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
Run the application:
python app.py
Open a web browser and go to http://127.0.0.1:8050/
to view the 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.
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.
This project is deployed at https://imagine2024.ibtehaz.xyz. The website is optimized for PC only at this moment.
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.
This project is licensed under the MIT License. See the LICENSE file for details. unlicensed.
For any questions or suggestions, please contact:
- Name: Mohammad Asif Ibtehaz
- Email:
[email protected]