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.

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 sync field 
# Choices are "CardholderId", "CardNumber", "CardId"
# BADGE_NUMBER_SYNC_FIELD = "CardNumber"
  1. enable and start systemd tasks (examples in this systemd folder):
    • nemo_rs2_sync_readers (every hour or every day)
    • nemo_rs2_sync_access

Notes:

  1. in Detailed administration -> Customization, a cutomization with key rs2_event_begin_date and value 2023-05-18T19:30:16 can be set prior to the first run to grab data starting at that date.
  2. the systemd tasks can also be run manually from Detailed admin -> Reader -> select any reader (doesn't matter which one) and use the action dropdown to run the sync.

Project selection

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)
  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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

NEMO_rs2_access-1.0.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file NEMO_rs2_access-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for NEMO_rs2_access-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1672645263bb199e10d6f1036c3e9ed7ee1d3009585cc1c08d035100ab9cdc19
MD5 b0834a4d1aef51e27b5955acf3a6b7ed
BLAKE2b-256 2f14898b3eff3d4e07802ceeba1e09404d098fed59ddb96f8137eaeeafa83ed4

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