This project contains examples of integrating various BI tools with an analytical database for real-time vehicle status monitoring.
The project consists of three main components:
- Streamlit - Python-based web dashboard
- Apache Superset - BI platform with dashboards
- Power BI - dashboard for Microsoft Power BI Desktop
Requirements:
- Python 3.8+
- Internet access to connect to the database
Steps:
- Navigate to the streamlit folder:
cd streamlit- Create a virtual environment:
# Windows
python -m venv venv
venv\Scripts\activate
# Linux/macOS
python -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with database connection parameters:
DB_HOST=your_db_host
DB_NAME=your_db_name
DB_USER=your_db_user
DB_PASS=your_db_password
DB_PORT=5432
DB_SCHEMA=raw_business_data- Run the dashboard:
streamlit run moving_status_dashboard.pyThe dashboard will be available at: http://localhost:8501
📖 Detailed instructions: streamlit/readme.md
Requirements:
- Docker and Docker Compose
- At least 4 GB RAM (8 GB recommended)
- 20 GB free disk space
- Linux / Windows with WSL2 / macOS
Steps:
-
Install Docker and Docker Compose (if not already installed)
-
Download the docker-compose file:
curl -fL https://raw.githubusercontent.com/apache/superset/master/docker-compose-non-dev.yml -o docker-compose.yml- Start Superset:
docker-compose up -d- Create an admin user:
docker-compose exec superset superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email admin@superset.com \
--password admin- Initialize the database:
docker-compose exec superset superset db upgrade
docker-compose exec superset superset init- Open Superset in your browser: http://localhost:8088
📖 Detailed instructions: SuperSet/readme.md
Requirements:
- Windows 10/11 or Windows Server 2016+
- Microsoft Power BI Desktop
- At least 4 GB RAM (8 GB recommended)
Steps:
-
Install Power BI Desktop from the official Microsoft website
-
Open the file
power_bi/moving_status_dashboard.pbix -
Update the database connection parameters via Transform data → Edit parameters
-
Click Refresh to reload the data
📖 Detailed instructions: power_bi/readme.md
To connect to the demo database, contact the administrator:
- Email: support@squaregps.com
- Schema overview - data schema overview
- Example queries - example SQL queries
For technical questions, contact: support@squaregps.com