Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knx-components

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knx-components

Knx Software Components

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

knx-components

KNX Software Components. For now it emits the time (DPT-10) and date (DPT-11) using cron-style configuration. See Here on how to write the cron string.

To use it, just:

npm i knx-components --save

Then in your code:

var cronDate = "0 0 * * *"; // Every day (at midnight)
var addresses = ['0/0/143', '0/0/144'];
var opts = { host: '192.168.69.150', port: 6720};
require("knx-components").startDateTimeJob(opts, addresses, cronDate, genTime, genDate, function (err) {
    console.log('An error has occurred', err);
});

Subsequent calls of startDateTimeJob will substitute the previous schedule with the new one.

CLI (-t: generate time, -d: generate date):

knxdtgen -H 192.168.69.150 -p 6720 -g 0/0/143 -td

FAQs

Package last updated on 03 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc