# Gestion jour ferrier / Iron day management

**URL:** <https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392>\
**Category:** General\
**Created:** [27 May 2020 22:38 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392 "2020-05-27T22:38:18Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [30 May 2020 07:53 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/21 "2020-05-30T07:53:45Z")

</div>

The difference between holidays and special days depends on your use case.

From the tech side for Holidays are more information generated like is today a day between a holiday and weekend and if on the same day a holiday and a special day, the holiday has a higher priority. From all other they are similar.

By my self I using the holidays for days where I don't have to go to work and special days are days which are important, but normal working days (e.g. birthdays, religion days, time shifting days, ...). So the holidays are used for control something (e.g. open blinds on weekend and holidays to other times as on normal working days) and special days for information purpose (show on a display if the day is a special day).

---

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [30 May 2020 09:02 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/22 "2020-05-30T09:02:14Z")

</div>

For the calculation normally the local time is used. But its the time settings of the server, where your node-red installation is running, not the side of the client (Browser). On some systems the local time is not the same as the time on the client side.

---

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [30 May 2020 09:05 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/23 "2020-05-30T09:05:10Z")

</div>

> [@971JMD](#):
>
> I can't create a function for,
> 
> if(msg.payload.today.isHoliday === "true"){  
> msg.payload = ("54=ON");
> 
> }
> 
> return msg;

The `msg.payload.today.isHoliday` is a boolean. If you comare this to `"true"`with the three `===` (type and value must match), it will not work. You has to compare this with only two `==`(do a typecasting) or to a boolean ` === true`.

```auto
if(msg.payload.today.isHoliday == "true"){
msg.payload = ("54=ON");

}
return msg;

```

or

```auto
if(msg.payload.today.isHoliday === true){
msg.payload = ("54=ON");

}
return msg;

```

should work both

In the end the simplest would be:

```auto
if(msg.payload.today.isHoliday){
msg.payload = ("54=ON");

}
return msg;

```

last but not least:  
I have created and already implemented a [feature request](https://github.com/rdmtc/node-red-contrib-german-holidays/issues/10) to the node. It add an additional input for a holiday or a special day. If the holiday or special day is reached it sends the additional data as `msg.payload.data` to the output. This make it more easy to send additional data by different days.

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [30 May 2020 19:12 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/24 "2020-05-30T19:12:00Z")

</div>

> [@Hypnos](#):
>
> For the calculation normally the local time is used. But its the time settings of the server, where your node-red installation is running, not the side of the client (Browser). On some systems the local time is not the same as the time on the client side

node-red est sur rapberry, comment vérifier en ssh l'heure exacte ?

node-red is on rapberry, how to check the exact time in ssh?

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [30 May 2020 20:22 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/25 "2020-05-30T20:22:55Z")

</div>

Ça ne fonctionne pas trop mal, mais je ne comprends toujours pas trop le décalage

It doesn't work too bad, but I still don't understand the lag too much  
!

 ![oli09](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad9dd5e6813b8ff60d28088721e7bf807c36940b.jpeg)

---

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [31 May 2020 07:59 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/26 "2020-05-31T07:59:52Z")

</div>

Could be the lag in your timezone to UTC time?

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [31 May 2020 10:19 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/27 "2020-05-31T10:19:31Z")

</div>

Salut

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b237504dc88793907bf7eb621b9845ce2c8d84df.jpeg)

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [31 May 2020 10:28 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/28 "2020-05-31T10:28:39Z")

</div>

and this module does not work

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/949124994b37684e186b6b54f8e9453884d78426.jpeg)

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [1 June 2020 04:10 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/29 "2020-06-01T04:10:23Z")

</div>

j'ai une question très importante, comment désactivée un FLOW en depuis le SSH

I have a very important question, how to deactivate a FLOW in from SSH

thank you

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [1 June 2020 14:23 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/30 "2020-06-01T14:23:51Z")

</div>

Please start a new thread for a new question so people can help you.

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [1 June 2020 14:36 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/31 "2020-06-01T14:36:18Z")

</div>

Yes soory

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [1 June 2020 14:37 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/32 "2020-06-01T14:37:39Z")

</div>

Otherwise I still haven't figured out why it's jet lag

 ![oli09](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad9dd5e6813b8ff60d28088721e7bf807c36940b.jpeg)

---

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [2 June 2020 18:58 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/33 "2020-06-02T18:58:13Z")

</div>

I need more time for testing. This will maybe on the weekend.

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [2 June 2020 19:12 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/34 "2020-06-02T19:12:57Z")

</div>

ok merci 👌

---

<div class="post-metadata">

**Author:** ![971JMD](https://avatars.discourse-cdn.com/v4/letter/9/b77776/32.png) [@971JMD](https://discourse.nodered.org/u/971JMD)\
**Post date:** [2 June 2020 20:08 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/35 "2020-06-02T20:08:09Z")

</div>

si vous avez un petit moment, je suis bloquée sur :  
if you have a little while I'm stuck on:

[https://discourse.nodered.org/t/change-the-time-from-the-dashboard-bigtimer-eztimer/27630/26?u=971jmd](https://discourse.nodered.org/t/change-the-time-from-the-dashboard-bigtimer-eztimer/27630/26)

---

<div class="post-metadata">

**Author:** ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)\
**Post date:** [8 June 2020 20:48 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/36 "2020-06-08T20:48:32Z")

</div>

I have released a new Beta Version, but only as beta Version, because additional tests needed if there are some side effects.  
It changes from internal UTC to local time. I think it works wrong if the time-zone has a negative offset, which not occurs for timezone with positive offset.  
To thus it can currently only installed from command line.

If anyone is interested into testing, try from the Node-Red installation directory:  
`npm install node-red-contrib-german-holidays@beta`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 June 2020 20:48 UTC](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392/37 "2020-06-22T20:48:33Z")

</div>

Closed on 22 June 2020 20:48 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/gestion-jour-ferrier-iron-day-management/27392.md?page=1)
