This Flask application allows you to manage locations and their corresponding images. The app provides functionalities to add, rename, delete locations, upload images, pull live images from Sentinel Hub, and perform backups.
- Add a new location with GPS coordinates and a nickname.
- Rename an existing location.
- Delete a location.
- Upload images for a specific location.
- Delete individual images.
- Pull live images from Sentinel Hub every 48 hours.
- Backup functionality to save data and images.
- Logging and error handling.
- Python 3.x
- Flask
- Requests
- JSON
- Logging
- Shutil
- Zipfile
-
Clone the repository:
git clone <repository_url> cd <repository_directory>
-
Install the required dependencies:
pip install flask requests
Replace the Client_ID
and Client_Secret
variables in the main.py
file with your Sentinel Hub credentials:
Client_ID = "your_client_id"
Client_Secret = "your_client_secret"
Visit https://apps.sentinel-hub.com/dashboard/#/account/settings create an OAuth client and copy the Client ID
and Client Secret
.
To start the Flask application, run:\
python main.py
The application will be accessible at http://0.0.0.0:80.