Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
node-red-contrib-feiertage-germany
Advanced tools
NodeRED node to get german holidays and own special dates
The Node Red Feiertage Germany node is the ultimative node to get informations about german holidays.
Is there any holiday missing? Write an issue! I'm going to add this holiday for you.
This node was splitted out of the node-red-contrib-feiertage node. This Node only contains German holidays. To get this node for an other country read the point below.
country | node-red node |
---|---|
Germany | node-red-contrib-feiertage-germany |
Austria | node-red-contrib-feiertage-austria |
Switzerland | coming soon |
Or you want all in one node (Germany, Austria, Switzerland) | node-red-contrib-feiertage |
npm install node-red-contrib-feiertage-germany
At first, it's important to check that you have picked the rigth 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.
Here you can set your Local and Timezone. If your localisation is Germany chose de_DE.UTF-8 as your local and Europe --> Berlin as your timezone.
After you have finished setup click Finish. To make your changes valid reboot your pi.
sudo reboot
The input can be used to trigger special outputs. The keywords are listed below.
keyoword | output |
---|---|
isTodayHoliday | boolean wether today is holiday |
nextHoliday | information about next holiday |
nextThreeHolidays | informations about next 3 holidays |
all | informations about all holidays |
The output can be used to listen to automatic and user triggered events. Every day at 00:01 o'clock the node automaticly outputs a boolean value wether today is a holiday.
Holidays are always listed into an array[3].
index | output |
---|---|
0 | identifier |
1 | name |
2 | date (yyyy-mm-dd) |
3 | german date (dd.mm.yyyy) |
You can chose 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 febrary or the 31 april as date you wont't get an error message.
You can import this example into your Node Red flow.
[{"id":"6fcba4fe.4427cc","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"nextHoliday","payloadType":"str","x":270,"y":180,"wires":[["c5428b48.697978"]]},{"id":"71a2802f.2b76e","type":"debug","z":"f250d57e.bf23e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":200,"wires":[]},{"id":"6a07b5d.895004c","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"isTodayHoliday","payloadType":"str","x":260,"y":140,"wires":[["c5428b48.697978"]]},{"id":"e34ede47.a55998","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"nextThreeHolidays","payloadType":"str","x":250,"y":220,"wires":[["c5428b48.697978"]]},{"id":"c1e2557c.f9be9","type":"inject","z":"f250d57e.bf23e8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"all","payloadType":"str","x":290,"y":260,"wires":[["c5428b48.697978"]]},{"id":"c5428b48.697978","type":"feiertage","z":"f250d57e.bf23e8","name":"Feiertage","neujahr":true,"heiligeDreiKoenige":true,"weiberfastnacht":true,"valentinstag":true,"rosenmontag":true,"fastnachtsdienstag":true,"aschermittwoch":true,"gruendonnerstag":true,"karfreitag":true,"easterSunday":true,"easterMonday":true,"christiHimmelfahrt":true,"pfingstsonntag":true,"pfingstmontag":true,"fronleichnam":true,"mariaHimmelfahrt":true,"tagDerDeutschenEinheit":true,"halloween":true,"allerheiligen":true,"stMartin":true,"bussUndBettag":true,"nikolaus":true,"advent1":true,"advent2":true,"advent3":true,"advent4":true,"heiligabend":true,"weihnachten1":true,"weihnachten2":true,"silvester":true,"ownHoliday1":true,"ownHoliday1Day":"16","ownHoliday1Month":"5","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","x":480,"y":200,"wires":[["71a2802f.2b76e"]]}]
FAQs
NodeRED node to get german holidays and own special dates
The npm package node-red-contrib-feiertage-germany receives a total of 18 weekly downloads. As such, node-red-contrib-feiertage-germany popularity was classified as not popular.
We found that node-red-contrib-feiertage-germany demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.