Skip to content

riis/cloudapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJI Cloud API Demo

Demo to showcase connecting a drone to the Cloud API and viewing its real-time location on a map.

Setup

  1. Follow the DJI Docker guide for setting up the backend / front end. However, the front-end will not be used.

    In my case, the dji-cloud-api itself does not work on docker, therefore, download the Java backend seperately and run it. In addition, the emqx version specified in the dockerfile may not work on M1 Macs, therefore, change the version to latest

  2. Update all environment variables in the backend configuration with your IP address, NOT localhost. By default, the MQTT username is admin and the password is public.

    Note: OSS will not be used, therefore, leave it all commented out.

  3. Create a new file called .env, copy and past the existing text from .env.example into it. Then place a Mapbox public key, DJI app id, DJI app key, and DJI app license inside it.

  4. Run the containers (besides the cloud-api-backend) and run this application with npm run start

  5. On the controller, go to the third-party cloud services and enter in http://<your_machines_ip>:3000/pilot, then click connect.

  6. On the site, click the refresh button to reload the device list. Then, click the aircrafts card to be taken to the drone's position on the map.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published