wisescootering / infrareddrone

Aerial infrared photography
GNU Affero General Public License v3.0
14 stars 4 forks source link

Basic web interface for IRdrone #28

Closed balthazarneveu closed 1 year ago

balthazarneveu commented 1 year ago

Using Flask or Django to run a server , we could simply call the python program. If it is done inside the irdrone docker & the webpage is redirected correctly, then the interface could be quite friendly.

balthazarneveu commented 1 year ago

Gave it a quick try:

  1. I thought I would be able to use the file browser to pick up the files & later communicate with python..

BUT Uploading files is mandatory (can't work with local paths for security reasons + obvious client/server reasons). https://flask.palletsprojects.com/en/2.2.x/patterns/fileuploads/

  1. Running python scripts or commands via webpage clickable buttons is doable.
  2. It would be possible to get the webpage running in the irdrone docker. something roughly like this ... files upload is still mandatory ... https://www.digitalocean.com/community/tutorials/how-to-build-and-deploy-a-flask-application-using-docker-on-ubuntu-20-04 -> there's no big interest in my opinion in pursuing this way. -> making a pluging for WebODM would have been nice though