You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Simple, light-weight server for RF commands (such as: IR, 433 MHz etc.) for appl
7
7
* In project directory press `poetry install`
8
8
* Create MongoDB database named `ir-commands`.
9
9
* Create collection named `commands`.
10
-
* Set `DATABASE_URL` environment variable the MongoDB URL,
10
+
* Set the `DATABASE_URL` environment variable the MongoDB URL,
11
11
* Run it using `poetry run python src/app.py`.
12
12
* In production run is recommended to use `gunicorn` see [gunicorn page](https://pypi.org/project/gunicorn/).
13
13
@@ -20,10 +20,19 @@ The Server is Build with Python, with the Flask framework for the HTTP Routing,
20
20
If you have a project that uses RF commands for appliances (For example, see my great project [casanet](https://github.com/casanet/casanet-server)), worry no more! this project will help with storing and fetching commands on demand.
21
21
With simple RESTfull API, you will be able the get all the available devices in the system, and their known commands.
22
22
23
-
# stages
24
-
## Stage A
25
-
The DB will be close for uploading, and we will upload them manually.
26
-
you will be able to get the list of all the devices and their known commands. the data will be mostly for Air-conditioning.
27
-
## Stage B
28
-
The DB will be open for everyone to upload their data, hopefully for other types of devices. also, the API will allow you to search the device you need with a single recording of your device-command.
29
-
another expansion planned for stage B is receiving all devices commands by type of command (i.e. Turn-off, Turn-on), as a way to try to detect the type of your device.
23
+
# data access & manipulation
24
+
Anyone can access the API, but to manipulate the data the request need to authorized by the [remote server](https://github.com/casanet/remote-server) as a valid local user
25
+
by adding an `local_server_key_header` header contains the local server certificate `mac_address:local_server_api_secret_key`.
26
+
27
+
To allow it, set `REMOTE_SERVER_URL` environment variable contained the remote server URL and `RF_REPOSITORY_API_KEY` with same key in the remote server to validate Rf commands validations requests, see [.env.example](./.env.example) for example.
0 commit comments