command exist for timezone ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

command exist for timezone ?

#1 Post by bledad » 26 Mar 2023, 15:15

hello ,
Is there a command for timezone as for example ?

http://192.168.1.10/?cmd=timezone:120
thank you

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: command exist for timezone ?

#2 Post by chromo23 » 26 Mar 2023, 18:00

There exists a pretty nice and extensive documentation: https://espeasy.readthedocs.io/en/latest/

It will answer your question.
See: https://espeasy.readthedocs.io/en/lates ... l-commands
(The syntax for sending this command via http is at the beginning of this page)

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: command exist for timezone ?

#3 Post by bledad » 26 Mar 2023, 18:55


User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: command exist for timezone ?

#4 Post by chromo23 » 26 Mar 2023, 19:08

I see..
The workaround is to enable rules and make an event:

Code: Select all

On SetTZ Do
  TimeZone,%eventvalue%
Endon
Then the http command would be:
http://192.168.1.10/control?cmd=Event,SetTZ=120

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: command exist for timezone ?

#5 Post by TD-er » 26 Mar 2023, 22:06

The reason it might not work directly and thus needs an event for it is because it is a system command which is set to be "restricted".
This means it cannot be called directly from any origin.

There are other restricted commands, like the one to reset to factory defaults. For that one it is perfectly clear why that one should be restricted :)
Typically, commands which change system settings are restricted and thus can only be called from the serial port or the rules.

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: command exist for timezone ?

#6 Post by bledad » 27 Mar 2023, 08:58

thank you chromo23 for the tip,
I will be able to make a script to send on several at each time change

i understand the restricted TD-er , thank you for this presision

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: command exist for timezone ?

#7 Post by iron » 27 Mar 2023, 11:46

Why do you want to change time zones manually ?
The nodes do not have Access to the internet ?
-D

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests