Skip to main content
4-Participant
July 26, 2022
Question

Turn off Scheduler timer

  • July 26, 2022
  • 3 replies
  • 1322 views

Hello I'm trying to disable the Automatically Enable Timer on Startup checkbox via a service I tried with the DisableTimer() function but it doesn't seem to be a function for SchedulerThing, any idea how I could do this? 

MO_10216552_0-1658823552409.png

 

3 replies

15-Moonstone
July 26, 2022

@MO_10216552 You will have to use the 'SetConfigurationTable' service (you can use the snippet for this service in the other service code) on your scheduler thing and use the 'Settings' table for it. Please see below screenshot:

abjain_0-1658826125638.png

For the 'configurationTable' parameter in the above service, you will have to create a data shape first as below:

abjain_1-1658826287673.png

 

 

Community Manager
August 18, 2022

Hi @MO_10216552.

 

Can you explain why you have the option enabled if you don't wish to use it?  Maybe we're not understanding your use case, so if you can provide more information, that would be helpful.

 

Regards.

 

--Sharon

Rocko
19-Tanzanite
March 28, 2024

This worked for me with the info from @abjain:

 let t = Things["YourScheduler"];
 t.DisableScheduler();
 let ct=t.GetConfigurationTable({tableName:"Settings"});
 ct.rows[0].enabled=false;
 t.SetConfigurationTable({tableName:"Settings", configurationTable:ct, persistent:true});