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

node-red-contrib-trashschedule

v1.3.5

Published

NodeRED Node to manage trash schedule events

Downloads

81

Readme

banner

Node Red Trash Schedule

NPM NPM_downloads issues Node.js CI

NPM

The node-red-contrib-trashschedule Node is the ultimative Node to manage your Trashschedule events.

Please make sure that you've picked the right timezone into your system settings!

Installation

npm install node-red-contrib-trashschedule

Node Description

Settings

Add your trashschedule events into the list.

list_example

|field|required input | |-----|-------------------------------| |1 |event day (1-31) | |2 |event month (1-12) | |3 |event year (yyyy example: 2021)| |4 |event name |

Select the hour until the trashschedule event will be displayed.

skip_example

The last field "Name" gives the possibility to change the name which will be displayed for this node into your flow.

Input

You can use the input to trigger events manually. The keywords are listed below. |msg.payload |output | |------------------------|-------------------------------------| |checkTrashschedule|return next trashschedule event | |checkNextThree |return next three trashschedule event| |all |return all trashschedule event |

Output

Every hour the node returns the next trashschedule event (output 1) and next three trashschedule events (output 2). It returns the trashschedule events as an object. If there isn't a trashschedule event available you will receive the payload "Trashschedule events outdated". The next three trashschedule events are packed into an array.

|key |value | |-----|----------------------| |name |event's name | |day |event's day | |month|event's month | |year |event's year |

Example Flow

flow_example

You can import this example into your Node Red flow.

[{"id":"fec0be7818a3b438","type":"trashschedule","z":"7035994dcde5f3c9","name":"Trash Schedule","trashschedule":[{"name":"Restmüll","day":"3","month":"9","year":"2022"},{"name":"Papiertonne","day":"4","month":"3","year":"2022"},{"name":"Biotonne","day":"5","month":"8","year":"2023"},{"name":"Gelbe Tonne","day":"2","month":"2","year":"2022"}],"skipHour":12,"x":450,"y":260,"wires":[["b8e1b4ecca4d94b4"],["2514c3ce60ebc8ec"],["867c0090bf72aa2a"]]},{"id":"9ed74172ad019d57","type":"inject","z":"7035994dcde5f3c9","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"checkTrashschedule","payloadType":"str","x":230,"y":220,"wires":[["fec0be7818a3b438"]]},{"id":"2514c3ce60ebc8ec","type":"debug","z":"7035994dcde5f3c9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":260,"wires":[]},{"id":"867c0090bf72aa2a","type":"debug","z":"7035994dcde5f3c9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":300,"wires":[]},{"id":"b8e1b4ecca4d94b4","type":"debug","z":"7035994dcde5f3c9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":220,"wires":[]},{"id":"8b9bbfffbf7eec36","type":"inject","z":"7035994dcde5f3c9","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"checkNextThree","payloadType":"str","x":240,"y":260,"wires":[["fec0be7818a3b438"]]},{"id":"fa3b06b5a4cdbf50","type":"inject","z":"7035994dcde5f3c9","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"all","payloadType":"str","x":270,"y":300,"wires":[["fec0be7818a3b438"]]}]