12urenloop / Telraam

New and hopefully improved application to count laps of the 12urenloop event
MIT License
6 stars 2 forks source link

Implement `/time` endpoint #71

Closed redfast00 closed 2 years ago

redfast00 commented 2 years ago

In our monitoring setup, we verify that the time of all components (ronny's, telraam, manualcount, ...) is synced. In order to do that, we need an endpoint /time that returns a JSON dictionary that looks like this:

{"timestamp": 123}

The timestamp value should be an integer of the amount of milliseconds since the Unix Epoch (so the Unix timestamp * 1000)

redfast00 commented 2 years ago

Fixed in https://github.com/12urenloop/Telraam/commit/a2bbb2238b0509443b9f0226abd2bb75abde1309