This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rfid_access_system_door_lock_and_laser_cutter [2020/10/29 12:54] Tiago |
rfid_access_system_door_lock_and_laser_cutter [2020/11/12 13:58] (current) Tiago [RPi preparation] |
||
---|---|---|---|
Line 14: | Line 14: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[http:// | ||
The current solution includes a few Python scripts on a local Raspberry Pi and a simple Django application server side. | The current solution includes a few Python scripts on a local Raspberry Pi and a simple Django application server side. | ||
Line 20: | Line 21: | ||
**Hardware** | **Hardware** | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | **WIP:** | ||
+ | |||
+ | {{ :: | ||
**Software** | **Software** | ||
Line 41: | Line 48: | ||
The django app provided along with the local scripts should be deployed as a regular django app, nothing special :-) The dependencies are listed in the '' | The django app provided along with the local scripts should be deployed as a regular django app, nothing special :-) The dependencies are listed in the '' | ||
+ | |||
+ | For authenticating the RPi requests, you need to create a user token and add it to script '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | On the client side, add the generated token to '' | ||
+ | |||
+ | '' | ||
**API** | **API** | ||
- | * uid=XXXXXX& | + | For json responses, add '' |
- | Actions: | + | Resource usage examples: |
+ | |||
+ | * / | ||
+ | * / | ||
+ | |||
+ | Possible actions: | ||
* LAS (laser start) | * LAS (laser start) | ||
* LAE (laser end) | * LAE (laser end) | ||
Line 53: | Line 73: | ||
* NON (do nothing, used for authentication only) | * NON (do nothing, used for authentication only) | ||
+ | Getting users information, | ||
+ | * / | ||
+ | * /people (get all users info) | ||
+ | |||
+ | Getting total resource usage from a given user from their rfid: | ||
+ | * / | ||