HTTP command list for the Git2.

Javier Marin

New Member
Joined
Jul 21, 2017
Messages
12
Points
0
We are working with several Git2 cameras and controlling them via Wi-fi.
The cameras wi-fi are configured “Station Mode” so we can start or stop them using the following HTTP command:
Start Recording: http://192.168.43.237/?custom=1&cmd=2001&par=1
Stop recording: http://192.168.43.237/?custom=1&cmd=2001&par=0

But, we would need to use more http command, for example: change the size movie, change to photo mode, get the battery level and so on.

Is there a complete listing of HTML commands?
Command codes and options for each.

We would appreciate help
 

Alistair Parsons

Well-Known Member
Joined
Dec 25, 2015
Messages
863
Points
93
pasted from another post


The API is described more or less at http://www.gitup.com/forum/index.php?threads/web-api-application-use-settings.211/#post-1106, for basic usage also see https://gist.github.com/peel/ca8c5b25efbe3052fdb5 (cmds are different)


Settings can be queried with cmd 3014. In order to find out the command for a certain setting, just change it on camera and see which value has been changed ... ;-)




/*--------------Photo----------------*/

NT_CAPTURE = 1001

NT_CAPTURESIZE = 1002

NT_FREE_PIC_NUM = 1003


/*--------------movie----------------*/

NT_RECORD = 2001

NT_MOVIE_REC_SIZE = 2002

NT_CYCLIC_REC = 2003

NT_MOVIE_HDR = 2004

NT_MOVIE_EV = 2005

NT_MOTION_DET = 2006

NT_MOVIE_AUDIO = 2007

NT_DATEIMPRINT = 2008

NT_MAX_RECORD_TIME = 2009

NT_MOVIE_LIVEVIEW_SIZE = 2010

NT_MOVIE_GSENSOR_SENS = 2011

NT_SET_AUTO_RECORDING = 2012

NT_MOVIE_REC_BITRATE = 2013

NT_MOVIE_LIVEVIEW_BITRATE = 2014

NT_MOVIE_LIVEVIEW_START = 2015

NT_MOVIE_RECORDING_TIME = 2016

NT_MOVIE_TRIGGER_RAW = 2017

NT_MOVIE_GET_RAW = 2018


/*--------------setup----------------*/

NT_MODECHANGE = 3001

NT_QUERY = 3002

NT_SET_SSID = 3003

NT_SET_PASSPHRASE = 3004

NT_SET_DATE = 3005

NT_SET_TIME = 3006

NT_POWEROFF = 3007

NT_LANGUAGE = 3008

NT_TVFORMAT = 3009

NT_FORMAT = 3010

NT_SYSRESET = 3011

NT_VERSION = 3012

NT_FWUPDATE = 3013

NT_QUERY_CUR_STATUS = 3014

NT_FILELIST = 3015

NT_HEARTBEAT = 3016

NT_DISK_FREE_SPACE = 3017

NT_RECONNECT_WIFI = 3018

NT_GET_BATTERY = 3019

NT_NOTIFY_STATUS = 3020

NT_SAVE_MENUINFO = 3021

NT_GET_HW_CAP = 3022

NT_REMOVE_USER = 3023

NT_GET_CARD_STATUS = 3024

NT_GET_DOWNLOAD_URL = 3025

NT_GET_UPDATEFW_PATH = 3026

NT_UPLOAD_FILE = 3027

NT_LIST_CAMERE = 3029


/*--------------playback----------------*/

NT_THUMB = 4001

NT_SCREEN = 4002

NT_DELETE_ONE = 4003

NT_DELETE_ALL = 4004
 

Javier Marin

New Member
Joined
Jul 21, 2017
Messages
12
Points
0
Thank so much for your quick reply.
In order to find out the command for a certain setting, we changed it on camera and saw which value has been changed, using:
http://192.168.1.254/?custom=1&cmd=3014

We have checked that the following commands do not work:
http://192.168.1.254/?custom=1&cmd=2002&par=5 # change MOVIE_REC_SIZE
http://192.168.1.254/?custom=1&cmd=1002&par=1 # Photo CAPTURESIZE

We have tested the following options for movie record size:
5 – 1080p/60fps
6 – 1080p/30fps
7 – 1080p/60fps 4:3
8 – 720p/120fps
And so on …

But we don’t achieve to change the movie size using HTTP command when the camera is connected via wi-fi, neither in “client” mode o in “station” mode.

The following http commands work OK:
http://192.168.0.100/?custom=1&cmd=3001&par=1 # switch to video mode
http://192.168.0.100/?custom=1&cmd=2001&par=1 # inicia recording
http://192.168.0.100/?custom=1&cmd=2001&par=0 # stop recording

http://192.168.0.100/?custom=1&cmd=3001&par=0 # switch to photo mode
http://192.168.0.100/?custom=1&cmd=1001 # take photo

Do you know why the following command does no work?
http://192.168.1.254/?custom=1&cmd=2002&par=5 # it should change to 1080p/60fps

We have turn on/off the camera to check it but does not change.

Thank you for your help.
 
Top