Hi Everyone,
I would like some help in making, if possible, a simple HTTP API to interface remotely via wifi.
Something along the lines of https://github.com/KonradIT/gopro-control ,
On the Thread "Script Ideas for A12 Cams" , Nutsey presents using 't app key <key>' command, within an autoexec.ash script the possibility to perform virtual keys to "presses" to define a automatic initial setup. But I currently have not managed to use the "t"AmbaShell Test Command outside the domain of the autoexec.ash script, for example through a telnet session.
I have however managed to from within a telnet session to the camera :
I have stock firmware I believe it is TI/UN5-170112-V5.0 ,
I have attached a generated info file of my camera
Generated by ambainfo.sh [by petesimon] from within a telnet session ThieyeT5e_info.txt
Generated by autoexec.ash [by Nutsey] (getinfo_script) on the root SD card ThieyeT5e_log.txt
Any input would be greatly apreciated, Thanks!
I would like some help in making, if possible, a simple HTTP API to interface remotely via wifi.
- Idealy it would be with some scripts,utilities loaded onto the stock firmware
- the camera would
- accept commands which represent the button presses (short, long, very-long if applicable)
- need to expose the current "screen" we are in, or current status, or some sort of feedback to be able to define what a button press would do.
Something along the lines of https://github.com/KonradIT/gopro-control ,
On the Thread "Script Ideas for A12 Cams" , Nutsey presents using 't app key <key>' command, within an autoexec.ash script the possibility to perform virtual keys to "presses" to define a automatic initial setup. But I currently have not managed to use the "t"AmbaShell Test Command outside the domain of the autoexec.ash script, for example through a telnet session.
I have however managed to from within a telnet session to the camera :
- change the camera mode (Video/Photo)
Code:
~ # /usr/bin/SendToRTOS record
- Trigger the shutter (Photo or Start/Stop the recording)
Code:
~ # /usr/bin/SendToRTOS photo
- provide Power through microUSB. The camera starts up automatically
- Connect to the camera via wifi
- HTTP API : Read Current Settings or Current Screen revelant information
- HTTP API : Navigate through the different settings / Screens
- HTTP API : Change settings if needed through button presses
- HTTP API: Start Recording (Button press or not)
- HTTP API: Stop Recording (Button press of not)
- Download the files on the SD card through ftp server or http server, actually the cameras http server accesses the SD card already
- HTTP API: Turn Off the Camera
- The power provided through the microUSB would be disconnected.
I have stock firmware I believe it is TI/UN5-170112-V5.0 ,
I have attached a generated info file of my camera
Generated by ambainfo.sh [by petesimon] from within a telnet session ThieyeT5e_info.txt
Generated by autoexec.ash [by Nutsey] (getinfo_script) on the root SD card ThieyeT5e_log.txt
Any input would be greatly apreciated, Thanks!
Comment