System Running Guide
This document guides you on how to start and use GreenWave AI through two methods: using the Dashboard interface (recommended) and using the command line (CLI).
Prerequisites
Ensure you have installed the following tools:
| Requirement | Version | Download |
|---|---|---|
| Docker | 28.3.2+ | Get Docker |
| Node.js | 24.6.0+ | Get Node.js |
| SUMO | 1.25.0+ | Get SUMO |
Method 1: Running with Interface (Dashboard UI)
This is the most intuitive way to monitor and demo the system.
Step 1: Start Backend
Open the terminal and run the Docker containers:
# At the project root directory
docker-compose up
Step 2: Access Dashboard
-
Open your browser and visit: http://localhost:5137/
-
Log in with the account:
- email: "admin@olp.vn",
- password: "admin123",
-
In the SUMO Control section, select Scenario.
-
Click the green "Start" button.
- The status will change to
Connected.
- The status will change to
Step 4: Activate AI
- Scroll down to the Control Panel section.
- On the Dashboard, press the ▶ Play button to start the simulation.
- Click the "🤖 Enable AI Control" button.
- Observe the logs on the Dashboard to see AI controlling the light phases in real-time.
Troubleshooting
1. Dashboard reports "Not Running"
- Cause: The
auto_start_sumo.pyscript is not running or not on port 8813. - Fix: Check the terminal running the python script, ensure there are no errors. Run
lsof -i :8813to see if the port is open.
2. "Connection refused" Error
- Cause: Backend has not finished starting or incorrect network configuration.
- Fix: Run
docker logs backendto view error logs. Ensure theSUMO_HOSTenvironment variable points correctly to the host machine (usuallyhost.docker.internalon Windows/Mac or172.17.0.1on Linux).
3. No vehicles moving
- Cause: Simulation is in Pause state or Play has not been pressed.
- Fix: Press the Play button on the Dashboard or send API
/sumo/stepcontinuously.