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-feiertage-austria

v1.6.1

Published

NodeRED node to get austrian holidays and own special dates

Downloads

53

Readme

banner

Node Red Feiertage Austria

NPM NPM_downloads issues

NPM

The Node Red Feiertage Austria node is the ultimate node to get information about austrian holidays.

Is there any holiday missing? Write an issue! I'm going to add this holiday for you.

This node was split out of the node-red-contrib-feiertage node. This Node only contains Austrian holidays. To get this node for another country read the point below.

You're living in Germany, Austria or Switzerland?

| country | node-red node | |-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| | Germany | node-red-contrib-feiertage-germany | | Austria | node-red-contrib-feiertage-austria | | Switzerland | node-red-contrib-feiertage-switzerland | | Or you want all in one node (Germany, Austria, Switzerland) | node-red-contrib-feiertage |

Installation

npm install node-red-contrib-feiertage-austria

Getting Started

At first, it's important to check that you have picked the right localisation and timezone on your device. Below you can find a manual how to change those settings on to a RaspberryPi.

Login into your Pi. Then open the settings with this command.

sudo raspi-config

Now you should see this interface. Navigate to 5 Localisation Options and press ENTER.

pi_settings_1

Here you can set your Local and Timezone. If your localisation is Austria chose de_AT.UTF-8 as your local and Europe --> Wien as your timezone.

pi_settings_2

After you have finished setup click Finish. To make your changes valid reboot your pi.

sudo reboot

Node Description

Input

The input can be used to trigger special outputs. The keywords are listed below.

| msg.payload | output | |-------------------|---------------------------------------------------------------------------| | isTodayHoliday | boolean whether today is holiday | | isTomorrowHoliday | boolean whether tomorrow is holiday | | isChristmasTime | boolean whether today is Christmas time (1. Advent - Heilige drei Könige) | | nextHoliday | information about next holiday | | nextThreeHolidays | information about next 3 holidays | | all | information about all holidays |

Output

The output can be used to listen to automatic and user triggered events. Every day at 00:01 o'clock the node automatically outputs a boolean value whether today is a holiday.

You decide what you want to receive: Object or Array! To enable output as array open the node settings and hit the checkbox output: Array instead of Object at the bottom.

holiday object output:

| key | output | |---------|--------------------------| | id | id | | name | name | | dateObj | date (yyyy-mm-dd) | | dateDE | german date (dd.mm.yyyy) |

holiday array[3] output:

| index | output | |-------|--------------------------| | 0 | id | | 1 | name | | 2 | date (yyyy-mm-dd) | | 3 | german date (dd.mm.yyyy) |

Every day at 12 am you will receive a boolean value whether today is a holiday if daily output is enabled.

Own Holidays

You can choose up to 10 own dates. Select the day in the first dropdown-menu and the month in the second. Chose a name for your holiday and type it into the input field. Don't forget to hit the checkbox to enable your own holiday. Pay attention: The node does NOT validate your own dates. So if you set the 30 february or the 31 april as date you won't get an error message.

own_holiday_example

Example Flow

You can import this example into your Node Red flow.

flow_example

[{"id":"887936b22cd2a124","type":"feiertageAT","z":"d92a1f96.826db","name":"Feiertage AT","local":"DE","neujahr":true,"neujahrName":"Neujahr","heiligeDreiKoenige":true,"heiligeDreiKoenigeName":"Heilige drei Könige","stJosef":true,"stJosefName":"St. Josef","gruendonnerstag":true,"gruendonnerstagName":"Gründonnerstag","karfreitag":true,"karfreitagName":"Karfreitag","easterSunday":true,"easterSundayName":"Ostersonntag","easterMonday":true,"easterMondayName":"Ostermontag","firstMay":true,"firstMayName":"Staatsfeiertag","stFlorian":true,"stFlorianName":"St. Florian","christiHimmelfahrt":true,"christiHimmelfahrtName":"Christi Himmelfahrt","pfingstsonntag":true,"pfingstsonntagName":"Pfingstsonntag","pfingstmontag":true,"pfingstmontagName":"Pfingstmontag","fronleichnam":true,"fronleichnamName":"Fronleichnam","mariaHimmelfahrt":true,"mariaHimmelfahrtName":"Maria Himmelfahrt","stRupert":true,"stRupertName":"St. Rupert","tagDerVolksabstimmung":true,"tagDerVolksabstimmungName":"Tag der Volksabstimmung","nationalfeiertagAT":true,"nationalfeiertagATName":"Nationalfeiertag","halloween":true,"halloweenName":"Halloween","allerheiligen":true,"allerheiligenName":"Allerheiligen","stMartin":true,"stMartinName":"St. Martin","stLeopold":true,"stLeopoldName":"St. Leopold","nikolaus":true,"nikolausName":"Nikolaus","mariaeEmpfaengnis":true,"mariaeEmpfaengnisName":"Mariä Empfängnis","advent1":true,"advent1Name":"1. Advent","advent2":true,"advent2Name":"2. Advent","advent3":true,"advent3Name":"3. Advent","advent4":true,"advent4Name":"4. Advent","heiligabend":true,"heiligabendName":"Heiligabend","weihnachten1":true,"weihnachten1Name":"Weihnachten","weihnachten2":true,"weihnachten2Name":"Stefanitag","silvester":true,"silvesterName":"Silvester","ownHoliday1":true,"ownHoliday1Day":"5","ownHoliday1Month":"9","ownHoliday1Name":"My Birthday","ownHoliday2":false,"ownHoliday2Day":"2","ownHoliday2Month":"2","ownHoliday2Name":"own Date 2","ownHoliday3":false,"ownHoliday3Day":"3","ownHoliday3Month":"3","ownHoliday3Name":"own Date 3","ownHoliday4":false,"ownHoliday4Day":4,"ownHoliday4Month":4,"ownHoliday4Name":"own Date 4","ownHoliday5":false,"ownHoliday5Day":5,"ownHoliday5Month":5,"ownHoliday5Name":"own Date 5","ownHoliday6":false,"ownHoliday6Day":6,"ownHoliday6Month":6,"ownHoliday6Name":"own Date 6","ownHoliday7":false,"ownHoliday7Day":7,"ownHoliday7Month":7,"ownHoliday7Name":"own Date 7","ownHoliday8":false,"ownHoliday8Day":8,"ownHoliday8Month":8,"ownHoliday8Name":"own Date 8","ownHoliday9":false,"ownHoliday9Day":9,"ownHoliday9Month":9,"ownHoliday9Name":"own Date 9","ownHoliday10":false,"ownHoliday10Day":10,"ownHoliday10Month":10,"ownHoliday10Name":"own Date 10","array":false,"dailyOutput":true,"x":410,"y":520,"wires":[["6f28eb5ceb0b1017"]]},{"id":"d66633274263f974","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"nextHoliday","payloadType":"str","x":170,"y":480,"wires":[["887936b22cd2a124"]]},{"id":"6f28eb5ceb0b1017","type":"debug","z":"d92a1f96.826db","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":590,"y":520,"wires":[]},{"id":"4c5cd698089e4da5","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"isTodayHoliday","payloadType":"str","x":160,"y":400,"wires":[["887936b22cd2a124"]]},{"id":"23a0805ed9c483df","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"nextThreeHolidays","payloadType":"str","x":150,"y":520,"wires":[["887936b22cd2a124"]]},{"id":"bd8d0aef5b1abe4c","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"all","payloadType":"str","x":190,"y":560,"wires":[["887936b22cd2a124"]]},{"id":"5dddf90cc0dfb031","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"isChristmasTime","payloadType":"str","x":160,"y":600,"wires":[["887936b22cd2a124"]]},{"id":"1abacaba131b898c","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"daysUntilNextHoliday","payloadType":"str","x":150,"y":640,"wires":[["887936b22cd2a124"]]},{"id":"09aa8f8c92d86c9f","type":"inject","z":"d92a1f96.826db","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"isTomorrowHoliday","payloadType":"str","x":150,"y":440,"wires":[["887936b22cd2a124"]]}]