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

node-red-contrib-trashschedule

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-trashschedule

NodeRED module to manage trash schedule events

  • 0.8.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

banner

Node Red Trash Schedule

NPM NPM_downloads issues

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

fieldrequired input
1event day (1-31)
2event month (1-12)
3event year (yyyy example: 2021)
4event 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.payloadoutput
checkTrashschedulereturn next trashschedule event
checkNextThreereturn next three 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.

keyvalue
nameevent's name
dayevent's day
monthevent's month
yearevent's year

Example Flow

flow_example

You can import this example into your Node Red flow.

[{"id":"16648316.40b675","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"checkTrashschedule","payloadType":"str","x":390,"y":2160,"wires":[["9046f677.54ca08"]]},{"id":"122515a7.53ba7a","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"checkNextThree","payloadType":"str","x":400,"y":2200,"wires":[["9046f677.54ca08"]]},{"id":"72c61c9d.7a7794","type":"debug","z":"f250d57e.bf23e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":2160,"wires":[]},{"id":"adfd6af9.07d488","type":"debug","z":"f250d57e.bf23e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":2200,"wires":[]},{"id":"9046f677.54ca08","type":"trashschedule","z":"f250d57e.bf23e8","name":"Trash Schedule","trashschedule":[{"name":"Hausmüll","day":2,"month":1,"year":2021},{"name":"Gelber Sack","day":8,"month":1,"year":2021},{"name":"Hausmüll","day":15,"month":1,"year":2021},{"name":"Altpapier","day":20,"month":1,"year":2021},{"name":"Gelber Sack","day":22,"month":1,"year":2021},{"name":"Hausmüll","day":29,"month":1,"year":2021},{"name":"Gelber Sack","day":5,"month":2,"year":2021},{"name":"Hausmüll","day":12,"month":2,"year":2021},{"name":"Altpapier","day":17,"month":2,"year":2021},{"name":"Gelber Sack","day":19,"month":2,"year":2021},{"name":"Test","day":28,"month":3,"year":2021},{"name":"Test2","day":29,"month":4,"year":2021}],"skipHour":"10","x":600,"y":2180,"wires":[["72c61c9d.7a7794"],["adfd6af9.07d488"]]}]

Keywords

FAQs

Package last updated on 06 Apr 2021

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