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

mod: Remote Scheduling of Recordings

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by af123, Jul 1, 2011.

  1. af123

    af123 Administrator Staff Member

    Let's start investigating and discussing the possibility being able to schedule recordings remotely, either via the custom web interface or via some sort of subscription service on the Internet.

    There has been some investigation done previously by wiliam which I'll quote in the next post for reference.

    The epg package gives full access to the freeview EPG data which is cached on the box and is used by the webif package to display EPG data. It can give us the data we need to add entries to the scheduled recording table so we just need to address the problems that william found.
     
  2. af123

    af123 Administrator Staff Member

     
  3. af123

    af123 Administrator Staff Member

    The latest custom firmware provides hooks to allows the humaxtv process to be restarted without doing a full reboot of the operating system. It might be necessary to force this kind of soft reboot so that the humaxtv software picks up any scheduled recordings which have been added. With appropriate checks to make sure that nothing is being watched/recorded or about to be recorded this should be safe enough.

    I'm working on backup/restore of the scheduled recordings (and channel favourites) at the moment and then I will move onto the scheduling side so that more detailed testing can be done.
     
    rogdog and neilleeds like this.
  4. grahamlthompson

    grahamlthompson Well-Known Member

    You are aware that a new firmware is going ota early next month for both the HD and HDR boxes ?
     
  5. af123

    af123 Administrator Staff Member

    Yes. The latest custom firmware is based on 1.02.20 which is that OTA version, and also the one to which I have added the restart hooks.
     
  6. af123

    af123 Administrator Staff Member

    I've just successfully recorded something via remote scheduling :D

    I'm going to release a new version of the web interface later which has this feature in, although turned off by default as it isn't completely tested yet. Hopefully some of you can volunteer to experiment with it and we can work out a way of making it practical.
     
    Drutt likes this.
  7. keytouch

    keytouch Member

    :DCongratulations!!!

    Just looking forward to the full epg/remote scheduling iphone app now....
     
  8. Trevor Jasper

    Trevor Jasper Member

    Wow! Excellent! Will volunteer to give this a go.

    af123, is that through the webif interface?
     
  9. af123

    af123 Administrator Staff Member

    Ok, webif 0.6.1 has been uploaded which has support for remote scheduling. To enable it you need to create a file on the Humax disk called /mod/.schedule.testing. Without that file the interface will work but when you try and schedule a recording then it will fail with an error message saying 'Disabled during testing'.

    There are quite a few caveats with this and a lot more testing is needed.
    • No conflict checking is done at all - I have no idea yet what will happen if you schedule conflicting events;
    • Once a new entry has been added to the recording schedule, the Humax must be rebooted. Otherwise after a while the entry is removed by the running humaxtv process. Just restarting that works too but in that case the TSR buffer stops working. The web interface starts indicating that a reboot is required and provides a 'restart now' button. The button will not appear if the box is busy accessing something on the media filesystem (recording, playing back, copying);
    • The Humax won't wake itself up to record something added to the schedule this way unless another scheduled event has already occured. Once a scheduled event occurs, humaxtv appears to rescan the table to find the 'next event' and set the hardware timer appropriately.
    So, this is progress but not yet perfect by any means. However, I did manage to set a recording timer today from work by a convenient set of events:
    • My Humax is configured with a wake up timer at 3pm and a sleep timer at 3:15pm;
    • I can access my home network via a VPN from my iPhone;
    • Just after 3pm, I used the web interface to schedule recording of a 5 minute programme at 3:40pm and then I rebooted the box (again through the web interface);
    • At 3:15pm, the box turned itself off (sleep timer);
    • At 3:30pm the box turned itself on (wahay!);
    • The recording was successful and the box turned itself off afterwards.
    The fact that it woke up ready to do the recording a 3:30 indicates that it successfully configured the hardware timer and I'm supposing that this is as a result of the 3:15 power down event being triggered.

    I've got some ideas about how to make this more workable long term but for the moment, please play with it and see if we can gain some more insight into what's happening. I've added a new column to the end of the scheduled events list as well which is just a * if the event has been accepted by the Humax. This usually appears a couple of minutes after the reboot.
     
  10. Trevor Jasper

    Trevor Jasper Member

    af123, re-read first post and saw it is available through the web interface.

    Have upgraded to 0.6.1 of webif, and wow again! Works for me.

    Looked at recording an episode through the EPG and it goes through all the steps until it gives me the "Disabled during testing" message.

    I guess we need the firmware update to do the soft reboot?

    AAARRRRGGGGHHHH. You just beat me to it with a post! OK, I'll read it and give it a go...
     
  11. af123

    af123 Administrator Staff Member

    I'm hoping that by the end of the week the new remote scheduling system will be ready for beta testing so I'm looking for willing volunteers.

    At this stage, I'm only looking for a few people who are happy working on the command line and able to install a new mod version (1.11) which will be released in the next day or two.
    If you're interested in being a guinea pig, please PM me the MAC address of your Humax's ethernet interface.
     
  12. Wallace

    Wallace Slightly Pickled

    I would love to help but I am not too confident at the command line. I have/do use PuTTy, but usually just copy commands in.
    If you simply want me to type commands 'verbatim' then I am OK with that.
     
  13. af123

    af123 Administrator Staff Member

    That would be fine - it shouldn't require too much command line work, just the initial setup which isn't yet web driven and the odd bit of troubleshooting as required.
     
  14. oijonesey

    oijonesey Hummy.tv SEO Guru

    Does this need VPN or anything like that? I would like to do my bit to help but I can't access my Hummy remotely as I don't leave a PC on at home to run VPN on.
     
  15. af123

    af123 Administrator Staff Member

    No, it doesn't need a VPN. As long as your Humax is connected to the Internet in some way that's enough.
     
  16. Kev_w

    Kev_w Member

    Count me in! I'll grab my MAC address when i'm home...

    Looking forward to seeing how this works.
     
  17. oijonesey

    oijonesey Hummy.tv SEO Guru

    Erm sorry if this is obvious but how do I PM you with my mac address?:confused:
     
  18. Wallace

    Wallace Slightly Pickled

    Sorry. I won't be able to give you the MAC address until tomorrow as I am not at home at the moment.
     
  19. Brian

    Brian Administrator Staff Member

    Use the conversation feature. One way is to click on a members name alongside a post, and a pop up box will appear. There is an option to start a conversation.:)
     
  20. oijonesey

    oijonesey Hummy.tv SEO Guru

    af123 - Just started a conversation with you with my mac address (thanks Brian for your help)