Timer Camera - UIFlow MediaTrans

Description

Use TimerCAM to achieve low-power wake-up shooting function, which requires Wi-Fi connection. The captured pictures will be automatically uploaded to the M5 cloud, and a fixed HTTP interface will be generated through a unique token, and other devices can access the latest frame of pictures and the current battery voltage status of the device through this interface.

Driver Installation

Connect the device to the PC. If the port cannot be recognized normally, the user can manually install the FTDI driver to fix the problem. Take the win10 environment as an example, download the driver file that matches the operating system, unzip it, and install it through the device manager. (Note: In some system environments, the driver needs to be installed twice for the driver to take effect. The unrecognized device name is usually M5Stack or USB Serial. Windows recommends using the driver file to install directly in the device manager (custom Update), the executable file installation method may not work properly). Click here to download FTDI driver

For MacOS users, please tick System Preferences -> Security and Privacy -> General -> Allow downloadable apps from the following locations -> App Store and Approved Developer Options .

Download burning tool

Please click the button below to download the corresponding M5Burner firmware burning tool according to the operating system you are using. Unzip and open the application.

Pay Attention:
MacOS users please put the APP into the Application folder after the installation, as shown in the figure below.
For Linux users, please switch to the unzipped file path and run ./M5Burner in the terminal to run the application.

Burn firmware

Open M5Burner-->Connect the device to the computer-->Select the corresponding port-->Switch to TimerCam option-->Select the appropriate version and click download-->Configure the appropriate Parameters -->Click on Burn to burn-->Wait for the pop-up window successful to indicate that the burn is complete

WIFI SSID: WIFI name, be careful not to appear special characters
WIFI PASSWORD: WIFI password
Image Size: image size
Wake Time: image sending interval, it is recommended that the interval be greater than 30s.

GET TOKEN

Click Get Token to get it --> Wait for the pop-up window Token, the displayed string is the Token, which can also be obtained by scanning the QR code, or directly open in the browser.

HTTP API

The request method is GET, the return data is JPG image data, and the device voltage value will be included in the Voltage field in the HTTP Response Headers.


//GET
//http://api.m5stack.com:5003/timer-cam/image?tok=token

http://api.m5stack.com:5003/timer-cam/image?tok=8caab58179bc02d5435c653acbe03966

UIFlow programming

Use the M5CORE type device in UIFlow to call the HTTP interface to automatically obtain the picture and display it on the screen.

On This Page