Skip to main content

Install RS2 access plugin for NEMO

Project description

NEMO RS2 Access plugin

This plugin for NEMO allows to sync up area access with the RS2 Access system.

Compatibility versions

NEMO-rs2-access NEMO NEMO-CE
1.7.0 >= 7.4.3 >= 7.4.11

Installation

  1. pip install NEMO-rs2-access
  2. in settings.py add to INSTALLED_APPS:
INSTALLED_APPS = [
  '...',
  'NEMO_rs2_access',
  '...'
]
  1. add the RS2 access information:
RS2_ACCESS = {
  "url": "",
  "timeout": 30, # timeout in seconds
  "public_key": "",
  "auth": {
    "user_id": "",
    "password": ""
  },
   # Uncomment to change the default CardHolder sync field 
   # Choices are "CardholderId", "CardNumber", "CardId", or cardholder attribute like "UserColumns.UserText1"
   # "user_sync_field": "CardNumber",
   # Uncomment to use the sync field as an attribute of Cardholder (default is False, meaning it is an attribute of the Event)
   # "cardholder_sync": False,
   # Uncomment to change the default NEMO sync field, for example `details__employee_id`
   # "nemo_user_sync_field": "badge_number",
   # Uncomment to change the default buffer in seconds, used to prevent potential duplicates and potential missing events between calls to readers
   # "buffer_in_seconds": "7",
   # Uncomment to change whether to record someone attempting to log into an area they are already logged in as error in logs (default is True)
   # "record_already_logged_in_as_error": True,
}
  1. enable and start systemd tasks (examples in this systemd folder):
    • nemo_rs2_sync_readers (every hour or every day)
    • nemo_rs2_sync_access (every minute)
    • nemo_rs2_update_current_access_project (every minute)

Notes:

  1. In Detailed administration -> Customization, a customization with key rs2_event_begin_date and date value for example 2023-05-18T19:30:16 can be set prior to the first run to grab data starting at that date.
  2. If not set, the system will start syncing from the beginning of the current day
  3. The systemd tasks can also be run manually from Detailed admin -> RS2 Access -> Reader -> select any reader (doesn't matter which one) and use the action dropdown to run the sync.

Usage

  1. Run the sync reader action via systemd or Detailed administration
  2. Edit the relevant readers and associate them with an Area and a type (Entrance or Exit)
  3. Set Badge numbers in NEMO users
  4. Run the sync access action via systemd or Detailed administration

Project selection rules

Upon login, the first active project is selected since all that matters is that we have a placeholder.

When updating the record on logout, the project is set using the following rules:

  1. If the user has only one active project, use it
  2. Check tool usage for this user since login time (non-remote) and create one record for each distinct account
  3. If there is no tool usage, use the default project (set in user preferences)
  4. If there is no default project, use the first active project by relation id (first added)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemo_rs2_access-1.7.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nemo_rs2_access-1.7.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file nemo_rs2_access-1.7.0.tar.gz.

File metadata

  • Download URL: nemo_rs2_access-1.7.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for nemo_rs2_access-1.7.0.tar.gz
Algorithm Hash digest
SHA256 ec3ee75f4c6e0b7c008ecc099b58611859f4e28e81321d0ea8cb14abd67bf8c0
MD5 7c1a22632945109de12ec285ec7bd8ff
BLAKE2b-256 43983b22271e0f5469ce392c4d6cb4709d34b6dcccbbce388b65824d5b85d6f6

See more details on using hashes here.

File details

Details for the file nemo_rs2_access-1.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nemo_rs2_access-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 344c0df7bca5a04dd3a4a6e52a92d2bda332a44ae5579ed293d76bf22f89b61d
MD5 e43fb39920f7328523b2604cccf9c032
BLAKE2b-256 d77ca9f4ba7d92831b613a8038ebd452b33ae22ae664f9dea6ef1b516b81e26a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page