Skip to content

Commit

Permalink
remove lat, lon (#240)
Browse files Browse the repository at this point in the history
* remove lat, lon

* drop also lat, lon
  • Loading branch information
MateoLostanlen authored Feb 7, 2025
1 parent 8ae55e8 commit 5e223a3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,13 @@ 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

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
```
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e223a3

Please sign in to comment.