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

@aingtii/node-red-trashdate

v1.3.1

Published

A node to generate next and overnext trashdate with type from CSV Files

Downloads

26

Readme

Node Red TrashDate

NPM NPM_downloads issues

NPM

Installation

npm install @aingtii/node-red-trashdate

Node Description

A node that read an CSV File and generate Date, Type and count the days for next and overnext Date of Trash.

Preparation

  1. create an CSV File with two colums
  2. Line 1: col1;col2
  3. next lines: Date;TrashType

|Example CSV File | |--------------------------------| |col1;col2 | |05.01.2024;Yellow Bag | |12.01.2024;Blue Trash | |19.01.2024;Brown Trash | |...;... and so on (whole year) | | |

see example file Kalender.csv

  1. save this file in a folder that NodeRed has access

Settings:

  1. CSV File: path of the CSV File (mandatory) like: /opt/iobroker/trashcalendar.csv
  2. Name: you can set a name of the node (optional)

nodered Propertiers

Inputs:

|Inputs: | |----------------------------------------| |just inject, with repetition every Day |

Outputs:

|Outputs: | | |---------|-----------------------------------| |Output 1 | Date (col1) of next Trash | |Output 2 | Type (col2) of the next Trash | |Output 3 | Days until next Trash | |Output 4 | Date (col1) of overnext Trash | |Output 5 | Type (col2) of the overnext Trash | |Output 6 | Days until overnext Trash | |Output 7 | Special Output (Setup) |

Output 3 & 6 setup:

here you can change the output value of Output 3&6 by default is what you see as placeholder (grey)

nodered Output3_6

Special Output 7

This Output is specialy for users of Homematic Mediola AIO Crerator so you can visible or unvisible a trash icon with this output

This Output you can Setup in the properties for Today, Tomorrow and for other Days...

Example: Today => Heute Tomorrow => Morgen alle other Days => Leer

nodered Output7

so in AIo Creator you can visible or unvisible a trash icon with this output Like this:

Mediola AIO

Example Flow

example flow

Example Flow

... [{"id":"7da36d25d832619e","type":"inject","z":"61b3b2b50abe2c5d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 00 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":410,"y":720,"wires":[["8aa8da39274203af"]]},{"id":"1ed27416fdf65289","type":"debug","z":"61b3b2b50abe2c5d","name":"Date 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":600,"wires":[]},{"id":"abf287d26d38c692","type":"debug","z":"61b3b2b50abe2c5d","name":"Type 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":640,"wires":[]},{"id":"beab9eae83db9f1e","type":"debug","z":"61b3b2b50abe2c5d","name":"Days 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":680,"wires":[]},{"id":"f02060b5f9b31977","type":"debug","z":"61b3b2b50abe2c5d","name":"Date 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":760,"wires":[]},{"id":"7712f374dbd741f7","type":"debug","z":"61b3b2b50abe2c5d","name":"Type 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":800,"wires":[]},{"id":"0b2a4fee274720b7","type":"debug","z":"61b3b2b50abe2c5d","name":"Days 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":840,"wires":[]},{"id":"8aa8da39274203af","type":"TrashDate","z":"61b3b2b50abe2c5d","name":"","filename":"/opt/iobroker/Kalender.csv","heute":"","morgen":"","weitere":"Blende das Blöde Ding aus","day0":"","day1":"","day2":"","day3":"","day4":"","day5":"Bernd Versteht es nicht","day6":"","day7":"","day8":"","day9":"","day10":"","day11":"","day12":"das Versteht Bernd nicht","day13":"","day14":"","day15":"","x":590,"y":720,"wires":[["1ed27416fdf65289"],["abf287d26d38c692"],["beab9eae83db9f1e"],["f02060b5f9b31977"],["7712f374dbd741f7"],["0b2a4fee274720b7"],["6a3a563662393349"]]},{"id":"6a3a563662393349","type":"debug","z":"61b3b2b50abe2c5d","name":"Special","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":880,"wires":[]}]

...