Page 1 of 1

Scripts and scheduler

Posted: 19 Nov 2020 19:40
by phonic
Are scripts held in memory(cached), or landed before the scheduled programme is about to start?
The reason I ask is that I have an external software that makes updates to the script based on studio location, and wondering if scripts are preloaded in cache when ProppFrexx loads or only loaded when the scheduled show is about to start.

Re: Scripts and scheduler

Posted: 19 Nov 2020 19:45
by radio42
All is held in memory: media libs, scripts, scheduler data, meta data etc.
They are only reloaded manually, via the time based automation in the general setting or when triggered via a control-command eg. via an event.

Re: Scripts and scheduler

Posted: 19 Nov 2020 20:31
by phonic
radio42 wrote: 19 Nov 2020 19:45 All is held in memory: media libs, scripts, scheduler data, meta data etc.
They are only reloaded manually, via the time based automation in the general setting or when triggered via a control-command eg. via an event.
How do I force an update after a script is updated externally from ProppFrexx?

Re: Scripts and scheduler

Posted: 19 Nov 2020 20:33
by phonic
phonic wrote: 19 Nov 2020 20:31
radio42 wrote: 19 Nov 2020 19:45 All is held in memory: media libs, scripts, scheduler data, meta data etc.
They are only reloaded manually, via the time based automation in the general setting or when triggered via a control-command eg. via an event.
How do I force an update after a script is updated externally from ProppFrexx?
Just answering my own question, can I not also use "Reload Script before Start"? however sending a tcp command would be easier to ensure it plays the correct things. I'll check the manual to see if anything comes up.

Re: Scripts and scheduler

Posted: 19 Nov 2020 20:36
by phonic
I think I found it:
Modify script file and then send this command "SCHEDULER_REFRESH". Would this do the job?

Also, what affect would this have on a live system and currently playing script? Would it refresh then take on the new update after the current song is finished?

Re: Scripts and scheduler

Posted: 19 Nov 2020 21:19
by phonic
I've given SCHEDULER_REFRESH a go, and going back into the script in ProppFrexx show no change. so I guess it does not refresh the scripts?

Re: Scripts and scheduler

Posted: 19 Nov 2020 21:40
by phonic
Found the solution needed to add "MAIN_RELOAD_SCRIPTLIBRARY"

Re: Scripts and scheduler

Posted: 19 Nov 2020 22:16
by radio42
Yes, Reload Script before Start would force a reload of that script right before it will be used.

And no, SCHEDULER_REFRESH would reload the program scheduler, but not the scripts.

But no, a currently running script wouldn’t be changed right away, this is not possible, as I would lose all the info which script line is/was just in use. Thus changes will apply with its next use.

And yes, MAIN_RELOAD_SCRIPTLIBRARY is the related command for manually or event usage.

Re: Scripts and scheduler

Posted: 20 Nov 2020 01:58
by phonic
radio42 wrote: 19 Nov 2020 22:16 Yes, Reload Script before Start would force a reload of that script right before it will be used.

And no, SCHEDULER_REFRESH would reload the program scheduler, but not the scripts.

But no, a currently running script wouldn’t be changed right away, this is not possible, as I would lose all the info which script line is/was just in use. Thus changes will apply with its next use.

And yes, MAIN_RELOAD_SCRIPTLIBRARY is the related command for manually or event usage.
Thanks for confirming.

All working fine. :D