From 0750a771e26bc91022736f7e564936f4d0287f6b Mon Sep 17 00:00:00 2001 From: Ronan Date: Fri, 7 Feb 2025 23:23:03 +0100 Subject: [PATCH 1/3] Fix readme --- README.md | 71 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index cc99cda..0be009f 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,8 @@ 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 +- `API_LOGIN`: the login of the user account which will be used to create camera token +- `API_PWD`: the password of the user account - `CAM_USER`: the username to access the camera - `CAM_PWD`: the password to access the camera @@ -87,39 +89,41 @@ Additionally, you'll need a `./data` folder which contains: ### Example of `credentials.json`: ```json -{ - "169.254.40.1": { - "brand": "reolink", - "type": "ptz", - "credentials": [ - { - "login": "dummy_login_1", - "password": "dummy_password_1", - "posid": 1 - }, - { - "login": "dummy_login_2", - "password": "dummy_password_2", - "posid": 2 - }, - { - "login": "dummy_login_3", - "password": "dummy_password_3", - "posid": 3 - } - ] - }, - "169.254.40.3": { - "brand": "reolink", - "type": "static", - "credentials": [ - { - "login": "dummy_login_4", - "password": "dummy_password_4" - } - ] - } -} + { + "169.254.7.1": { + "brand": "reolink", + "type": "static", + "token": "", + "azimuth": 322, + "id": 9, + }, + "169.254.7.2": { + "brand": "reolink", + "type": "static", + "token": "", + "azimuth": 251, + "id": 10, + }, + "169.254.7.3": { + "brand": "reolink", + "type": "ptz", + "token": "", + "id": 11, + "poses": [ + 0, + 1, + 2, + 3, + ], + "azimuths": [ + 0, + 90, + 180, + 270 + ] + } + } + ``` ## Documentation @@ -137,4 +141,3 @@ This project is developed and maintained by the repo owner and volunteers from [ ## License Distributed under the Apache 2 License. See [`LICENSE`](LICENSE) for more information. - From 7719435dbe0960173715565d74c1c6b340d3914f Mon Sep 17 00:00:00 2001 From: RonanMorgan <49660557+RonanMorgan@users.noreply.github.com> Date: Tue, 11 Feb 2025 22:17:49 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 0be009f..724055a 100644 --- a/README.md +++ b/README.md @@ -68,7 +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 -- `API_LOGIN`: the login of the user account which will be used to create camera token - `API_PWD`: the password of the user account - `CAM_USER`: the username to access the camera - `CAM_PWD`: the password to access the camera From 7748ad688574f919f6051ba0247dcb778b554553 Mon Sep 17 00:00:00 2001 From: RonanMorgan <49660557+RonanMorgan@users.noreply.github.com> Date: Tue, 11 Feb 2025 22:18:04 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 724055a..bc0b482 100644 --- a/README.md +++ b/README.md @@ -68,7 +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 -- `API_PWD`: the password of the user account - `CAM_USER`: the username to access the camera - `CAM_PWD`: the password to access the camera