How wuqin04/parksense works
The source tree implements a parking-management system: camera-based plate processing and fee/occupancy records on a Python host, paired with MicroPython sensors and gate control; browser pages provide a web interface. The README instead describes a desktop file organizer, so it does not reliably document this repository’s behavior. Edges follow shown calls or SOURCE INDEX references; web behavior is not connected where its wiring was not shown.
Main entry points: micropython/main.py Device Server · python/main.py Plate Processing · gate_control.py Gate Logic · lcd_i2c.py I2C LCD Driver
Components 16
Host Parking Service
- Plate Processing
python/main.py - Car and Fees
python/car.py - Parking Records
python/database.py - JSON Records
data.json - Occupancy Records
occupancy.json
Embedded Parking Control
- Device Server
micropython/main.py - Gate Logic
micropython/gate_control.py - Slot Sensing
micropython/ultrasonic.py - Device Configuration
micropython/configs.py
Hardware Drivers
- Servo Driver
lib/servo/__init__.py - I2C LCD Driver
lib/lcd_i2c/lcd_i2c.py - LCD Constants
lib/lcd_i2c/const.py - LCD Typing Support
lib/lcd_i2c/typing.py
Web Interface
- Parking Pages
web/pages - Web Backend
web/logic/backend.js
Other components
- Parking Operator
Connections 17
- Parking Operator → Plate Processing: submits plates
- Plate Processing → Car and Fees: uses car model
python/main.py - Plate Processing → Parking Records: loads and saves
python/main.py - Parking Records → JSON Records: reads and writes
- Plate Processing → Occupancy Records: updates occupancy
python/main.py - Plate Processing → Device Server: sends plate data
python/main.py - Device Server → Plate Processing: posts occupancy
micropython/main.py - Device Server → Gate Logic: dispatches gate actions
micropython/main.py - Device Server → Slot Sensing: creates slot sensors
micropython/main.py - Device Server → Device Configuration: uses settings
micropython/main.py - Device Server → Gate Logic: creates gate controllers
micropython/main.py - Gate Logic → Servo Driver: moves gate servo
micropython/gate_control.py - Gate Logic → I2C LCD Driver: updates display
micropython/gate_control.py - Gate Logic → Device Configuration: checks capacity
micropython/gate_control.py - Slot Sensing → Device Configuration: uses pin settings
micropython/ultrasonic.py - I2C LCD Driver → LCD Constants: uses command constants
lib/lcd_i2c/lcd_i2c.py - I2C LCD Driver → LCD Typing Support: uses type support
lib/lcd_i2c/lcd_i2c.py