npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@markxroberts/risco-lan-bridge

v0.15.4

Published

Risco Lan Bridge allows direct communication with most Risco control panels. It allows you to recover in real time the state of your system and to perform the arming/disarming functions or the inhibition of the detection zones.

Downloads

118

Readme

license badge Package Version Node Version Maintenance badge

risco-lan-bridge

risco-lan-bridge is not intended to be used as is. This program is intended to be used as a "bridge" between your application and a Risco alarm Panel (can also work with Electronic Line products but this has not been tested).

Compatibility

risco-lan-bridge is compatible with these central units and these features: ||Agility|Wicomm|Wicomm Pro|LightSYS/Plus|ProSYSPlus/GTPlus|Other| |--|:--:|:--:|:--:|:--:|:--:|:--:| |Zones|Y*|Y*|Y*|Y|Y*|?| |Partitions|Y*|Y*|Y*|Y|Y*|?| |Outputs|Y*|Y*|Y*|Y|Y*|?| |Groups|N**|N**|N**|N**|N**|?| |Arming|Y*|Y*|Y*|Y|Y*|?| |Stay Arming|Y*|Y*|Y*|Y|Y*|?| |Temporised Arming|N**|N**|N**|N**|N**|?| |Disarming|Y*|Y*|Y*|Y|Y*|?| |Bypass/UnBypass Zones|Y*|Y*|Y*|Y|Y*|?| |Command Outputs|Y*|Y*|Y*|Y|Y*|?| |PirCam Support|N***|N***|N***|N|N***|?|

*=> Theoretical compatibility not tested.

**=> Not functional today.

***=> Not functional today (planned for a future version).

WARNING : For control panels equipped with a Mono-Socket type IP module (IPC / RW132IP), direct connection may not work if RiscoCloud is enabled in the configuration. To use this module, you must therefore deactivate RiscoCloud and then restart your control panel (or the IP module by deactivating it and then reactivating it in the configuration from the keyboard). This action will prevent the control panel from connecting to RiscoCloud and you will no longer be able to use it remotely from the iRisco application.

Configuration

First of all, you must define the options necessary to define the Risco Panel Object.

let  Options = {
// Define Panel IP Address (Optional)
panelIp:  '192.168.0.100',
// Define Panel TCP Port (Optional)
panelPort:  1000,
// Define Panel Access Code (Optional)
panelPassword:  5678,
// Define Panel ID (Optional)
panelId:  '0001',
// Activate autodiscover (Optional)
autoDiscover:  true,
// Defines the waiting time for a reconnection in ms (Optional)
ReconnectDelay:  10000,
// Defines automatic connection (Optional)
cloudConnectionDelay: 5000,
// Defines cloud reconnection delay
autoConnect:  true,
// Defines if the plugin should deactivate RiscoCloud on the control panel (Optional)
Disable_RiscoCloud:  true,
// Defines if the plugin should activate RiscoCloud on the control panel (Optional)
Enable_RiscoCloud:  true,
//Note :If the 'Disable_RiscoCloud' and 'Enable_RiscoCloud' options are both true, no changes will be made.
// Defines if the plugin should discover the access codes and the Id panel automatically (Optional)
DiscoverCode:  true,
// Defines the operating mode of the TCP Socket ('direct' or 'proxy') (Optional)
// see wiki for more information
SocketMode: 'direct',
// In Proxy Mode, define the listening TCP port for the Panel to connect (Optional)
ListeningPort: 33000,
// In Proxy Mode, define the TCP port to connect to RiscoCloud (Optional)
CloudPort: 33000,
// In Proxy Mode, define the URL to connect to RiscoCloud (Optional)
CloudUrl: 'www.riscocloud.com',
// Defines an overload function for logging (Optional)
logger:  logger_function,
// Defines a specific channel for logs (Optional - default channel is 'console')
log:  log_channel
};

All these options are not mandatory, the only really essential option is the 'panelIp' option (unless the TCP Port, Panel Id and remote password are not the default ones, in which case they must also be specified).

For Socket mode, see the wiki for more information

You can then create your RiscoPanel Object:

// Create Agility Object
let  RPanel = new  RiscoTCPPanel.Agility(Options);
// Or create WiComm Object
let  RPanel = new  RiscoTCPPanel.WiComm(Options);
// Or create WiCommPro Object
let  RPanel = new  RiscoTCPPanel.WiCommPro(Options);
// Or create LightSys Object
let  RPanel = new  RiscoTCPPanel.LightSys(Options);
// Or create LightSysPlus object
let  RPanel = new  RiscoTCPPanel.LightSysPlus(Options);
// Or create ProsysPlus Object
let  RPanel = new  RiscoTCPPanel.ProsysPlus(Options);
// Or create GTPlus Object
let  RPanel = new  RiscoTCPPanel.GTPlus(Options);

With the default options, the connection will be automatically made and you will obtain an object representing your control panel and permanently reflecting the real state of the equipment.

For more information regarding operation or interactions with the hardware, please refer to the wiki.

License

risco-lan-bridge is licensed under the MIT license, so you can dispose of it as you see fit under the terms of that license.