1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is Multimode RTS aware?

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by TimK2015, Jan 10, 2018.

  1. TimK2015

    TimK2015 Member

    Hi Folks

    I have one machine recording radio progs and that one is set to pad recordings. My other machines which record TV progs are using Accurate Record. I just got another which I want to use for a mix of radio and TV progs. I have Multimode installed and all the radio station are in the 'padding' section and TV channels are in the 'leave alone' section. Do I need to restart to get Multimode to modify any scheduled radio recordings or is Multimode aware of Real Time sceduling and I'm not waiting long enough?

    Regards

    TimK
     
  2. MymsMan

    MymsMan Well-Known Member

    AFAIK RTS is compatible with MultiMode,

    Recordings I have scheduled on padding channels have had the correct padding applied,

    Edit: Correction - I was looking at recordings that had been scheduled for a while and had the padding applied at reboot, newly scheduled recordings do not have the padding.
     
    Last edited: Jan 10, 2018
  3. Black Hole

    Black Hole Felinos Monk

    I can't think of any reason it wouldn't be. "All" RTS does is promote alterations to the schedule database without needing a reboot to do it (I put "all" in quotes, because it was a huge effort to achieve that).
     
  4. MymsMan

    MymsMan Well-Known Member

    It would depend on when and how the padding/AR changes are applied to the schedule entries by multimode - I have never looked into how it works but there could be well be interactions
     
  5. Luke

    Luke Well-Knwon Member

    (Deleted as I'd miss-read RTS for RS)
     
  6. TimK2015

    TimK2015 Member

    Hi Folks

    Firstly, the machine is set to record using AR as default. Radio stations are in Multimode's 'padding' section. I'm scheduling via the WebIf with RTS enabled.

    What I've observed so far is that any radio recordings scheduled are set as 'AR' until the machine is restarted when they then become padded so perhaps I've answered my own question. I thought the change might happen without a reboot as I believe 'Newk' makes changes to the folder name without a restart.

    Regards

    TimK
     
    Last edited: Jan 10, 2018
  7. af123

    af123 Administrator Staff Member

    As you've found, multimode is not currently RTS enabled.
    I will have a look at what's required to change that.
     
  8. Black Hole

    Black Hole Felinos Monk

    How so? What do packages that manipulate the schedule database have to do differently?
     
  9. af123

    af123 Administrator Staff Member

    Well, it currently just runs at boot, before the Humax software starts.
    It will need to hook into the queue system and run periodically or be triggered by an event.
     
    Last edited: Jan 11, 2018
  10. Black Hole

    Black Hole Felinos Monk

    Aha! So it's not that it needs to be RTS-aware as such, more that RTS doesn't get the chance to work.
     
  11. af123

    af123 Administrator Staff Member

    Well, not just that... the current system directly updates the database on boot. The new one will need a mechanism to stage changes and have RTS process them. It should be possible though.
     
  12. Black Hole

    Black Hole Felinos Monk

    So how do you then align that for people who don't have RTS enabled? Does that mean every schedule-manipulating package has to read the RTS flag and act in two different ways accordingly?
     
  13. af123

    af123 Administrator Staff Member

    Working on my test box, I'll push an updated package tonight.
     
  14. af123

    af123 Administrator Staff Member

    Packages create a hook file called `rts.hook` which is used whenever a new schedule item is created in RTS mode - that gives the package a chance to make changes straight away.

    The second part is to enable periodic running which I do with an `auto.hook` something like this:

    Code:
    if {[rsv rtsched]} {
            ::auto::register multimode 995
    }
    
    the existing boot-time service persists too.
     
    MymsMan likes this.
  15. MymsMan

    MymsMan Well-Known Member

    Working for me :)
    Programs scheduled via webif are converted to padding immediately and those scheduled via the remote are converted at the next auto processing run.
     
    af123 likes this.
  16. prpr

    prpr Well-Known Member

    Did you mean to leave this in:
    /mod/webif/plugin/multimode/test
     
  17. af123

    af123 Administrator Staff Member

    Yes, there's one in `newk` too.
     
  18. TimK2015

    TimK2015 Member

    Working for me too.

    Thanks for your efforts.

    Cheers

    TimK