diff --git a/README.md b/README.md index ca31dac..cc99cda 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,6 @@ pip install -e pyro-engine/. In order to run the project, you will need to specify some information, which can be done using a `.env` file. This file will have to hold the following information: - `API_URL`: the URL of the API where to send alerts -- `LAT`: the latitude of the device -- `LON`: the longitude of the device - `CAM_USER`: the username to access the camera - `CAM_PWD`: the password to access the camera @@ -77,8 +75,6 @@ So your `.env` file should look something like this: ``` API_URL=https://api.pyronear.org -LAT=48.88 -LON=2.38 CAM_USER=my_dummy_login CAM_PWD=my_dummy_pwd ``` diff --git a/docker-compose.yml b/docker-compose.yml index 1b41675..f5b55ee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,6 @@ services: container_name: pyro-engine-run environment: - API_URL=${API_URL} - - LAT=${LAT} - - LON=${LON} - CAM_USER=${CAM_USER} - CAM_PWD=${CAM_PWD} command: python run.py diff --git a/src/run.py b/src/run.py index f11ddde..4718428 100644 --- a/src/run.py +++ b/src/run.py @@ -27,9 +27,7 @@ def main(args): # .env loading load_dotenv(".env") API_URL = os.environ.get("API_URL") - LAT = float(os.environ.get("LAT")) - LON = float(os.environ.get("LON")) - assert isinstance(API_URL, str) and isinstance(LAT, float) and isinstance(LON, float) + assert isinstance(API_URL, str) CAM_USER = os.environ.get("CAM_USER") CAM_PWD = os.environ.get("CAM_PWD") assert isinstance(CAM_USER, str) and isinstance(CAM_PWD, str)