Turn off Scheduler timer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Turn off Scheduler timer
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?
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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:
For the 'configurationTable' parameter in the above service, you will have to create a data shape first as below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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});
