Once you are done with the geo-referencing process you can access the positions of the camera mounted on the device you are tracking. The positions can be retrieved in 4 different ways which are function of:
- where you would like to get the positions from -> directly from the Dragonfly machine VS from the Onit cloud server)
- the type of positions you would like to retrieve -> real-time VS historical positions.
Retrieve the positions from the PC that runs Dragonfly
Real-time data
It is possible to retrieve the real-time positions computed by the machine that runs the Dragonfly directly on the machine that runs Dragonfly by issuing a GET call towards the “device status” function. The answer is returned as a JSON.
Historical/past data
It is possible to retrieve the positions computed by the machine that runs Dragonfly directly on the machine that runs Dragonfly by parsing the CSV files stored locally under the path: /application/
- The
positionlog.csv file
contains every position Dragonfly has computed for a day that has not ended yet, and grows as the positions are computed and appended to the CSV file. This means that to get the last position you need to close and reopen the file with a chosen frequency. - The
positionlog.csv.YYYY-MM-DD
contains every position Dragonfly has computed for a specific day.
The structure of the CSV files is shown here.
To activate inside the Dragonfly App the local store of the positions
- Open the Dragonfly App.
- Click on the CONFIGURATION tab.
- Click on the CONFIGURATION tab > ADVANCED SETTINGS.
- Enable the POSITION_LOG_ENABLE.
- Click on the Save Config and Restart button at the bottom of the page.
Retrieve the positions from the Onit server
Real-time data
It is possible to:
- retrieve the real-time positions computed by the machine that runs the Dragonfly (and uploaded to the Onit cloud server) by issuing a GET call towards the “device” function made available by the Onit cloud server.
- see the real-time positions inside the Dragonfly Cloud Dashboard at https://dashboard.dragonflycv.com
To activate inside the Dragonfly App the upload of the positions to the Onit server:
- Launch the Dragonfly App.
- Click on the CONFIGURATION tab > ADVANCED SETTINGS.
- Set the Position upload interval to a value above 1000 ms.
- Click on the Save Config and Restart button at the bottom of the page.
Historical/past data
It is possible:
- to retrieve the past positions computed by the machine that runs the Dragonfly (and uploaded and saved on the Onit cloud server) by issuing a GET call towards the “history” function made available by the Onit cloud server.
- see the historical/past positions inside the Dragonfly Cloud Dashboard at https://dashboard.dragonflycv.com
To activate inside the Dragonfly App the upload (and store) of the positions to the Onit server:
- Launch the Dragonfly App.
- Click on the CONFIGURATION tab > ADVANCED SETTINGS.
- Enable the Position upload store.
- Set Position upload interval to a value above 1000 ms.
- Click on the Save Config and Restart button at the bottom of the page.