# Option to set a delay before and after sunrise and sunset

**URL:** <https://community.gladysassistant.com/t/possibilite-de-parametrage-dun-delai-avant-et-apres-les-lever-et-coucher-du-soleil/7850>\
**Category:** Demandes livrées\
**Tags:** feature-core, scene, scene-action, scene-trigger\
**Created:** [January 17, 2023, 5:22pm UTC](https://community.gladysassistant.com/t/possibilite-de-parametrage-dun-delai-avant-et-apres-les-lever-et-coucher-du-soleil/7850 "2023-01-17T17:22:19Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [November 26, 2023, 1:27am UTC](https://community.gladysassistant.com/t/possibilite-de-parametrage-dun-delai-avant-et-apres-les-lever-et-coucher-du-soleil/7850/16 "2023-11-26T01:27:48Z")

</div>

> [@b3n.0](#):
>
> Thanks for sharing! I’m going to try to set myself the challenge of really getting into it during the year-end holidays.

you’ll see it’s not that complicated, especially after watching Neodyme’s tutorials (he’s a professor at the University of Liège) and Node-RED is great for interacting with everything if you check the documentation or look for flows on the web (there are quite a few ready-made ones that help you get familiar with it). Having an interaction between Node-RED and Gladys currently fills in what isn’t yet implemented in Gladys or what won’t be if the need is too specific.

I’ve added a mini-tutorial that should help you 😊

> [@Mini-tuto Pour ajouter au dashboard les valeurs de l'API suncalc via nore-red et Mqtt](https://community.gladysassistant.com/t/mini-tutu-pour-ajouter-au-dashboard-les-valeurs-de-lapi-suncalc-via-nore-red-et-mqtt/8532):
>
> via ce mini-tuto vous allez pouvoir ajouter les valeurs de l’API suncalc dans le dahboard via un appel https vers l’API [https://api.sunrise-sunset.org/](https://api.sunrise-sunset.org/) qui retourne un JSON sous ce format [image] pour cela il faut importer le flow du message suivant dans node-red (ca dépasse 32000 caractères) Vous aurez normalement ce flow chaque node 'function" envoie la valeur voulue en payload à 00h00 mais également après x minutes après minuit ce qui permet de générer un message Mqtt au moment …

---

_[View the full topic](https://community.gladysassistant.com/t/possibilite-de-parametrage-dun-delai-avant-et-apres-les-lever-et-coucher-du-soleil/7850)._
