mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-24 02:16:14 +00:00
docs: move api to new file
This commit is contained in:
committed by
Florian BEZANNIER
parent
4fa4d553f7
commit
5a2f09e2d6
@@ -0,0 +1,48 @@
|
||||
# PSACC API
|
||||
1. Get the car state
|
||||
|
||||
http://localhost:5000/get_vehicleinfo/YOURVIN
|
||||
|
||||
2. Get the car state from cache to avoid to use PSA API too much
|
||||
|
||||
http://localhost:5000/get_vehicleinfo/YOURVIN?from_cache=1
|
||||
|
||||
3. Stop charge
|
||||
|
||||
http://localhost:5000/charge_now/YOURVIN/0
|
||||
|
||||
4. Set hour to stop the charge to 6 am
|
||||
|
||||
http://localhost:5000/charge_control?vin=YOURVIN&hour=6&minute=0
|
||||
|
||||
5. Change car charge threshold to 80%
|
||||
|
||||
http://localhost:5000/charge_control?vin=YOURVIN&percentage=80
|
||||
|
||||
6. See the dashboard (only if record is enabled)
|
||||
|
||||
http://localhost:5000
|
||||
|
||||
7. Refresh car state (ask car to send its state):
|
||||
|
||||
http://localhost:5000/wakeup/YOURVIN
|
||||
|
||||
8. Start (1)/Stop (0) preconditioning
|
||||
|
||||
http://localhost:5000/preconditioning/YOURVIN/1 or 0
|
||||
|
||||
9. Change charge hour (for example: set it to 22h30)
|
||||
|
||||
http://localhost:5000/charge_hour?vin=YOURVIN&hour=22&minute=30
|
||||
|
||||
10. Honk the horn
|
||||
|
||||
http://localhost:5000/horn/YOURVIN/count
|
||||
|
||||
11. Flash the lights (Duration is always roughly 10 seconds, regardless of set duration)
|
||||
|
||||
http://localhost:5000/lights/YOURVIN/duration
|
||||
|
||||
12. Lock (1)/Unlock (0) the doors
|
||||
|
||||
http://localhost:5000/lock_door/YOURVIN/1 or 0
|
||||
Reference in New Issue
Block a user