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

lighttalk_schedule_no_mqtt

v1.0.1

Published

sending payload with schedule

Downloads

13

Readme

스케쥴 노드

시간 설정에 따라 메시지를 출력하는 노드입니다.

구동 방식


시간 설정은 2가지 방식이 있습니다.

1. 노드 내부 설정
2. 노드 외부 입력

1) 노드 내부 설정

image

노드 내부에서 시작시간 / 종료시간 을 선택해주시면 됩니다.
현재 시간과 비교해서 자동으로 메시지가 출력됩니다.

2) 노드 외부 입력

image

image

노드 외부에서 입력할 때는 위와 같은 형식을 지켜주세요.
주의사항
외부에서 시간을 입력할 때는 노드 내부 시간 설정을 비워주세요.

Node-red Flow


Node-red 에서 실습해보실 수 있는 예제 코드입니다.
1.노드 내부 설정

image

[
    {
        "id": "c3d9fa102c60d438",
        "type": "tab",
        "label": "플로우 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "dc3d2153ec330a23",
        "type": "스케쥴노드",
        "z": "c3d9fa102c60d438",
        "name": "",
        "startTime": "2022-12-08T13:34",
        "endTime": "2022-12-08T13:35",
        "x": 270,
        "y": 60,
        "wires": [
            [
                "30206ffc0eeb0125"
            ]
        ]
    },
    {
        "id": "30206ffc0eeb0125",
        "type": "debug",
        "z": "c3d9fa102c60d438",
        "name": "debug 43",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 420,
        "y": 60,
        "wires": []
    }
]

2.노드 외부 입력

image

[
    {
        "id": "c3d9fa102c60d438",
        "type": "tab",
        "label": "플로우 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "46aff630acdef7ef",
        "type": "debug",
        "z": "c3d9fa102c60d438",
        "name": "debug 43",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 440,
        "y": 140,
        "wires": []
    },
    {
        "id": "213f6c2dbd5c7956",
        "type": "function",
        "z": "c3d9fa102c60d438",
        "name": "function 20",
        "func": "msg.payload=\n{ \"start_time\" : \"2022-12-08 12:43\", \n    \"end_time\": \"2022-12-08 12:44\"};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 310,
        "y": 60,
        "wires": [
            [
                "d9463ce49d31e9eb"
            ]
        ]
    },
    {
        "id": "538d9a0f678ce693",
        "type": "inject",
        "z": "c3d9fa102c60d438",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 140,
        "y": 60,
        "wires": [
            [
                "213f6c2dbd5c7956"
            ]
        ]
    },
    {
        "id": "d9463ce49d31e9eb",
        "type": "스케쥴노드",
        "z": "c3d9fa102c60d438",
        "name": "",
        "startTime": "",
        "endTime": "",
        "x": 250,
        "y": 140,
        "wires": [
            [
                "46aff630acdef7ef"
            ]
        ]
    }
]

License

김동일 http://i2r.link

개발자 : 최윤섭