36588b93f17042f0adfe214ef4fd07825b27c7f1
Car
PHP based vehicle service for state collection, TCP command dispatch, monitoring, and mobile data usage display.
Main Features
- Vehicle status collection and storage.
- TCP command dispatch for allowed vehicle commands.
- Monitoring UI with separated status and usage AJAX endpoints.
- Data usage and billing display with adjustment metadata.
- TCP failure reason and receive freshness metadata.
Main APIs
api.php?action=statusapi.php?action=commandmonitor.php?mode=ajaxmonitor.php?mode=usage
Structure
api.php: vehicle status and control API.monitor.php: monitoring UI and AJAX responses.common.php: external secret loading and shared DB/API helpers.collector_se.php: CLI/cron state collector.sw.js: service worker.assets/: icons and static assets.
Secrets
Runtime settings are loaded from /home/seo/secret/car.php. Do not commit that file.
Expected values include TCP settings, DB credentials, API token, and allowed IP policy.
Security
- Vehicle API uses API token or allowed IP policy.
- Control commands are limited to known command codes.
- Secret files must remain outside the repository with restricted permissions.
Description
Languages
PHP
98.9%
JavaScript
1.1%