1.1.7 • Published 2 months ago

node-red-contrib-uhppoted v1.1.7

Weekly downloads
11
License
MIT
Repository
github
Last release
2 months ago

node-red-contrib-uhppoted

platform npm version NPM build

Node-RED module that implements an API for interacting with a UHPPOTE TCP/IP Wiegand access controller board. The API supports device and card management as well as handling for events.

Requirements:

  • node‑red version 2.2.3+
  • node.js version 14.18.3+
  • ip.js version 1.1.5+

For the latest updates see the CHANGELOG.md

Installation

To install the stable version use the Menu - Manage palette option and search for node-red-contrib-uhppoted, or run the following command in your Node-RED user directory (e.g. ~/.node-red on MacOS and Linux):

npm install node-red-contrib-uhppoted

Restart your Node-RED instance and you should have the uhppoted nodes available in the palette.

If you want to try the development version from the node‑red‑contrib‑uhppoted github repository:

cd ~/.node-red/node_modules
git clone https://github.com/uhppoted/node-red-contrib-uhppoted.git
cd node-red-contrib-uhppoted
npm install
Upgrading from v0.x

Please note that updating from node-red-contrib-uhppoted v0.x to v1.x is a breaking change. node-red-contrib-uhppoted v1.0 fixed node name conflicts with other NodeRED modules and unfortunately changing node names throughout requires a breaking change.

Please see:

Nodes

NodeDescription
get‑devicesFetches a list of access controllers on the local LAN
get‑deviceRetrieves the information for a single access controller
set‑ipSets the controller IP address, net mask and gateway address
get‑statusRetrieves the current controller status
get‑timeRetrieves the current controller date and time
set‑timeSets the controller date and time
get‑door‑controlRetrieves the control configuration for a controller door
set‑door‑controlSets the control configuration for a controller door
open‑doorRemotely opens a controller door
get‑cardRetrieves a card record from a controller
get‑card-by-indexRetrieves a card record from a controller by record number
put‑cardAdds or updates a card record on a controller
delete‑cardDeletes a card record from a controller
delete‑all‑cardsDeletes all card records stored on a controller
get-time-profileRetrieve a time profile from a controller
set-time-profileDefines a time profile on a controller
clear-time-profilesDeletes all time profiles defined on a controller
clear-task-listClears a controller task list
add-taskAdds a new task to a controller's task list
refresh-task-listRefreshes a controller task list
record-special-eventsEnables or disables door events
get‑event‑indexRetrieves the current event index from a controller
set‑event‑indexSets the current event index on a controller
get‑eventRetrieves a single event from a controller
set-pc-controlDelegates access control to an offboard application
set-interlockSets the controller door interlock mode
activate-keypadsActivates/deactivates the reader access keypads
set-door-passcodesSets the supervisor keypad passcodes for a door
restore-default-parametersResets a controller to the manufacturer default configuration
listenEstablishes a listening connection for controller events

All nodes take a message with JSON object payload as input and send a message with a JSON object payload as output.

Configuration

The nodes can (optionally) accept a configuration that overrides the default settings:

DescriptionDefault
timeoutRequest execution timeout (in milliseconds)5000
bindUDP address to bind to for requests0.0.0.0
broadcastUDP address for broadcast requests255.255.255.255
listenUDP address:port on which to listen for events0.0.0.0:60000
controllersList of controller specific IPv4 address:port overrides for systems where a controller is either not located on the same LAN (i.e. cannot receive or respond to UDP broadcasts) or where directed UDP messages are preferred.(none)
debugEnables logging of request/response messages to the consolefalse

Examples

The node‑red‑contrib‑uhppoted github repository includes a set of basic examples that demonstrate the usage of each node, as well as a more complex dashboard project that combines the nodes to create a dashboard:

NodeDescription
1‑get‑devicesExample flow for the get‑devices node
2‑get‑deviceExample flow for the get‑device node
3‑set-ipExample flow for the set‑ip node
4‑event-listenerExample flow for the listen. get-listener and set‑listener nodes
5‑get-statusExample flow for the get‑status node
6‑timeExample flow for the get‑time and set‑time nodes
7‑doorsExample flow for the get‑door‑control, set‑door‑control, open‑door and activate-keypads nodes
8‑cardsExample flow for the get‑cards, get‑card, get‑card‑by‑index, put‑card, delete‑card and delete‑cards nodes
9-time-profilesExample flow for the get-time-profile, set‑time-profile and clear-time-profiles nodes
10-tasklistExample flow for the clear-task-list, add-task and refresh-task-list nodes
11-eventsExample flow for the record-special-events, get‑event‑index, set‑event‑index and get‑event nodes
12-set-pc-controlExample flow for the set-pc-control node
13-set-interlockExample flow for the set-interlock node

The dashboard example requires the following additional components to be installed into the palette:

Issues and Feature Requests

Please create an issue in the node‑red‑contrib‑uhppoted github repository.

License

MIT

1.1.7

2 months ago

1.1.6

5 months ago

1.1.5

9 months ago

1.1.4

11 months ago

1.1.3

1 year ago

1.1.1

2 years ago

1.1.2

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.12

3 years ago

0.6.10

3 years ago

0.6.9

3 years ago

0.6.8

3 years ago

0.6.7

3 years ago

0.6.6

3 years ago

0.6.5

4 years ago