Skip to main content

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)

Release files for NEMO-rs2-access 1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NEMO-rs2-access 1.7.1
File Size Uploaded
nemo_rs2_access-1.7.1.tar.gz 22.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NEMO-rs2-access 1.7.1
File Interpreter ABI Platform
nemo_rs2_access-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.4 kB

Release files / nemo_rs2_access-1.7.1.tar.gz

Download URL nemo_rs2_access-1.7.1.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9aae51af678bcef4910e334cdaa745e8ea6eaf6e4199c292d193022323edad47
BLAKE2b-256 checksum
How to use checksums
695f96ef9d584097a1b09bb26aa76808b5085432b1f96898d30d3e5ac0670cfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / nemo_rs2_access-1.7.1-py3-none-any.whl

Download URL nemo_rs2_access-1.7.1-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a12baf28abe8308be85530f0480bf5def9fcbfc48781a27175fa1e0467abb58c
BLAKE2b-256 checksum
How to use checksums
8173f7946301ab0aadf6ca830f1ff6ba60d9c90657f0b74ce8d090fc8dee2ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.7.1 This release

2 release files

1.7.0

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

1 release file

1.6.0

1 release file

1.5.6

1 release file

1.5.5

1 release file

1.5.4

1 release file

1.5.3

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page