Skip to content

Instantly share code, notes, and snippets.

@cpfair
cpfair / unificliptz.md
Created August 24, 2022 22:30
Unifi Protect Cameras - Set PTZ position preset via Command Line/CLI over SSH

This method was tested on a Unifi Protect G4 PTZ Camera.

Instructions:

  1. Enable SSH on camera: log into Unifi appliance via SSH, open /usr/share/unifi-protect/app/config/config.json in an editor, and change "enableSsh": false to "enableSsh": true.

  2. Get camera SSH password: this is the "Recovery Code" found in the Unifi Protect settings under "Other Configurations."

  3. Connect to camera via SSH: ssh ubnt@x.x.x.x using the password from (2)

  4. Run these commands to set pan, tilt, and zoom:

ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "zoomPosition":12}'

Tasmota Timezone Table

Use this table to look up the correct Timezone, TimeStd, and TimeDst commands to configure a Tasmota device for your local timezone.

Timezone Commands
Africa/Abidjan Timezone +0:00
Africa/Accra Timezone +0:00
Africa/Addis_Ababa Timezone +3:00
Africa/Algiers Timezone +1:00