bristolmotorclub / autosolo-timing

A timing display system for AutoSolo events
GNU General Public License v3.0
2 stars 2 forks source link

Pi does not know when a car is staged #1

Closed bristolmotorclub closed 2 years ago

bristolmotorclub commented 3 years ago

Pi needs to query timing service to return when a car is staged. Indicator for driver when car is staged and ready to go - LED or OLED with text.

Michael is adding an endpoint. Will return 2xx when a car is staged and 4xx otherwise.

mabware commented 3 years ago

slight change of plan, I've added getters to each stage as well at the existing /currentState endpoint that gives all states

suggest the Pi call GET /stage and checks for an array of length 1 in the response body see commit

Also if you use a socket-io python client you can do a re-fetch on 'stateUpdate' which is emitted everytime a driver changes state see commit