Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set leds offline when the hour is non-workable #36

Open
rodritwm opened this issue Sep 2, 2023 · 2 comments
Open

Set leds offline when the hour is non-workable #36

rodritwm opened this issue Sep 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rodritwm
Copy link

rodritwm commented Sep 2, 2023

hello is it possible to add a little function that gets the time and if the time is no between 9am and 18hs the leds are offline? Thanks!

@toblum
Copy link
Owner

toblum commented Sep 2, 2023

Hi @rodritwm,

time controlled functions wouldn't be too easy because the ESP isn't aware of the time and has no built-in clock.

What do you want to accomplish? Setting your status to on-/offline at this times? This might be something you could accomplish using PowerAutomate.
If you just want to turn the LEDs off, I would go with a simple time-controlled socket, because that would save also power.

Greetings
Tobias

@toblum toblum self-assigned this Sep 2, 2023
@toblum toblum added the enhancement New feature or request label Sep 2, 2023
@bertenvdb
Copy link

Alternativly, you could get the time by doing a GET request on e.g. http://worldtimeapi.org/api/ip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants