/
GET / PUT frenzel_state

Zeisberg GmbH

GET / PUT frenzel_state

Path

http://merlin.local:55552/v0/frenzel_state

Body for PUT

{ "side": "right", "state": "run", "duration_set": 20000, "duration_done": 0, "fps": 100 }

Body for GET

{ "side": "right" }

Response for GET

The body for a GET request can be reduced to just indicate the camera side for which the state shall be send.

However, the full body as for PUT can be Send as well. All other information beside side is ignored.

MQTT response

none

Notes

This endpoint controls and reports the state of recording in Frenzel mode.

side

The camera side requested to be returned or modified.

state

The state returned by a GET request represents the current state of the Frenzel mode. The state which is sent in PUT request triggers a state transition.

  • “run” - start the recording

    • valid in “reset”

    • transits to “run”

  • “stop” - stop the recording

    • valid in “run”

    • transits to “stop”

  • “reset” - reset stored file and set Duration_done to 0

    • valid in “run” and “stop”

    • transits to “reset”

See https://zeisberg.atlassian.net/wiki/spaces/DPET/pages/2311028985 for possible state transitions.

duration_set

This integer value represents the requested duration in ms for the recording.

duration_done

This integer value represents the currently recorded duration of recording.

The value is ignored in PUT requests but musst be contained in the struct.

Examples

 

image-20240822-100243.png

 

image-20240822-100154.png

 

Gutenbergstrasse 39 * 72555 Metzingen

Achtung: Ausgedruckte gelenkte Dokumente sind nicht gültig!
Die gültige Fassung ist in Confluence abrufbar.