How oscarminus/steinapi works
steinapi is a command-line synchronizer for vehicle status and comments between Stein.APP and Divera 24/7. It loads credentials and a direction option, fetches both services’ vehicle data, matches vehicles by their shared number/name, then compares status and modification times to decide which side to update. The Stein client encapsulates authenticated, rate-limited asset requests; Divera requests and synchronization decisions are handled in divera.py. The README documents the setup and directional modes; the graph reflects the sampled runtime code.
Main entry points: divera.py Sync command · steinapi.py Stein API client · config.json.sample Sync config
Components 7
Synchronization
- Sync config
config.json.sample - Sync command
divera.py - Match and reconcile
divera.py
API clients
- Stein API client
steinapi.py
External services
- Divera API
- Stein.APP API
Other components
- Operator
Connections 9
- Operator → Sync command: runs
README.md - Operator → Sync config: configures
README.md - Sync command → Sync config: loads
divera.py - Sync command → Divera API: fetches vehicles
divera.py - Sync command → Stein API client: fetches assets
divera.py - Sync command → Match and reconcile: processes data
divera.py - Match and reconcile → Divera API: updates status
divera.py - Match and reconcile → Stein API client: updates asset
divera.py - Stein API client → Stein.APP API: reads and patches
steinapi.py