ReolinkCameraAPI / reolinkapipy

Reolink Camera API written in Python 3.6
GNU General Public License v3.0
207 stars 46 forks source link

feat: add presets and calibration related methods, add to docs, add example jsons #74

Closed car-haj closed 8 months ago

car-haj commented 8 months ago

To utilize the PTZ function, especially the presets, it's necessary to 'calibrate' some or at least the E1 Zoom camera to achieve non drifting behaviour when gearing towards stored preset locations. This can be achieved using the newly provided calibration function "perform_calibration" in this commit. Before calibrating, one can check whether the calibration is necessary using the get_ptz_check_state (PtzCheckState 2 being already calibrated). Also add get_ptz_presets function to get information about the currently stored presets. Tested on Reolink E1 Zoom on most recent firmware.