HTTPv1

相机与媒体

Server 当前 相机与媒体 接口;路径、方法、状态码与处理器签名直接来自 0.8.4 源码。

源码 packages/fastsim-plugin-server/src/fastsim_plugin_server/application.py

接口 3

GET/api/v1/cameras/{entity_id}/jpegcamera_jpeg
200dict[str, object]

Camera jpeg

处理器camera_jpeg
签名async camera_jpeg(entity_id: str=Path(min_length=1, max_length=136, pattern=_CAMERA_ENTITY_PATTERN), quality: int=Query(default=85, ge=40, le=95), timeout_s: _QueryTimeout=None) -> Response
源码L2865
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/cameras/{entity_id}/jpeg
GET/api/v1/cameras/{entity_id}/pngcamera_png
200dict[str, object]

Camera png

处理器camera_png
签名async camera_png(entity_id: str=Path(min_length=1, max_length=136, pattern=_CAMERA_ENTITY_PATTERN), timeout_s: _QueryTimeout=None) -> Response
源码L2836
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/cameras/{entity_id}/png
GET/api/v1/cameras/{entity_id}/rgbcamera_rgb
200dict[str, object]

Camera rgb

处理器camera_rgb
签名async camera_rgb(entity_id: str=Path(min_length=1, max_length=136, pattern=_CAMERA_ENTITY_PATTERN), timeout_s: _QueryTimeout=None) -> Response
源码L2812
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/cameras/{entity_id}/rgb