Skip to content

Add PtzPreset to SetPtzPreset POST data#94

Merged
Benehiko merged 1 commit into
ReolinkCameraAPI:masterfrom
MJPye:mp-setPtz-fix
Jun 19, 2025
Merged

Add PtzPreset to SetPtzPreset POST data#94
Benehiko merged 1 commit into
ReolinkCameraAPI:masterfrom
MJPye:mp-setPtz-fix

Conversation

@MJPye

@MJPye MJPye commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Hi,
I was using reolinkapi==0.4.1 with an E1 zoom camera and when calling add_preset from ptz.py I got the following error:

[{'cmd': 'SetPtzPreset', 'code': 1, 'error': {'detail': 'not exist', 'rspCode': -1}}]

Which means "Missing Parameters".

Adding PtzPreset to the POST data fixed it for me.

From Camera HTTP API version 5,
Screenshot 2025-06-05 at 00 20 35

PS: Thank you for maintaining this repo, has been super fun to use. I am using an E1 zoom camera mounted on top of a mobile robot :)

@Benehiko Benehiko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Benehiko Benehiko merged commit 87cd382 into ReolinkCameraAPI:master Jun 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants