NodeRED: is it night time yet? Playing with time and sun

preview_player
Показать описание
INFO:
Learning how to interact with time, date, sun info and timezone data.

Tutorial: 6:00
Easier Way: 15:00

Supported by Patreon:
Elle S, Marc W, RT, Natasha, Marta H, Joseph C, Mikhail T, Martin A, Marcus K, GregMa

Extra thanks for the February supporters:
James C,

SUPPORT ME:

Social media:

BUSINESS ENQUIRIES:

MUSIC:
Licensed under Creative Commons: By Attribution 3.0
Рекомендации по теме
Комментарии
Автор

maybe Peter could add those infos as additional output on his BigTimer, try contact him :)
i just sent this video to him, let's see :)

squalazzo
Автор

hey Matt, I've loaded up your flow but i can't see where to inject my long and latt as the first node is "true" rather than a field to add in long and latt
Thanks!

HellHound
Автор

Good morning, I can't download the file, will you have the link?

drsistemas
Автор

any chance you can make this flow available ?

georgelza
Автор

Another awesome tutorial man! :D Do you plan on doing any more on your home heating system?

odrlmc
Автор

Great video, but my god! What a lot of crap to get sunrise and sunset... Why are you using Node Red over the bass HASS automation conditions?

liminalnetworks
Автор

hi.. how to achieve this
12:00AM - 12:00PM - Good Morning!
12:00PM - 6:00PM - Good Afternoon!
6:00PM - 12:00AM - Good Evening!
in funtions and make it speak to alexa

boopeshkumarprabhakaran
Автор

First of all, thank you for all your good stuff on this channel. But in this video, I do not understand the point of all your calculations. In javascript, a Date object is in UTC so there is no need to try to convert a date for a particular TZ (if node-red knows your TZ via TZ=Europe/Paris for example). Take the API information as-is (UTC), create a date object from the string (for example, const sunrise = new Date and compare it directly with date.Now() will work. Like date.Now() or new Date() will also return a date in UTC (and not a CEST date or whatever), there is no need to do all of these calculations wherever you live. But maybe i'm missing something....

gypheusg.