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

@redplc/node-red-time

v2.0.2

Published

Node-RED nodes for get System-Time or NTP-Time using with redPlc nodes

Downloads

169

Readme

@redplc/node-red-time

platform platform

Node-RED nodes for get System-Time or NTP-Time using with redPlc nodes.

Nodes

  • sys-time: Reads System-Time and store in number array.
  • ntp-time: Reads NTP-Time and store in number array.

Usage

  • Install redPlc nodes.
  • For logical operations use redPlc nodes.
  • Data is exchanged with global context variable arrays.
  • The variable is updated cyclically.
  • A very quick query of the NTP server can lead to blocking of the IP.

Time/Date Elements Array-Index

|Element|Value|Index| |---|---|---| |Seconds|0 .. 59|0| |Minutes|0 .. 59|1| |Hours|0 .. 12/23|2| |AM/PM|0=AM, 1=PM|3| |Weekday|0 .. 7, 0=Sunday|4| |Day|1 .. 31|5| |Month|1 .. 12|6| |Year|YYYY|7| |since epoc|ms|8|

Example

This example switches on a consumer (e.g. lamp) on days of the week and between hour range. The redPlc module sys-time reads the system time and saves it in the variable IA99. The day of the week is stored in index 4 (0 = sunday, 1 = monday ..) and the hours in index 2. The days of the week are queried with the compare node. After that, the start and end hours are queried with the compare nodes in series. If all queries are fulfilled, the Raspberry Pi output is switched on. Select in module node rpi-gio-out GPIO26 as output.