NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker arm32v7 v
1 2 Next »
Update EPG on Startup

 
  • 0 Vote(s) - 0 Average
Update EPG on Startup
HioWerBji
Offline

Junior Member

Posts: 12
Threads: 4
Joined: May 2018
#1
2020-10-31, 10:50 AM
Is there an easy way for NextPvr to update EPG on startup.

I have set up NextPvr on Rapsberrypi4 in a docker container in  LibreElec.

Since the system is not running all the time, and EPG is schedule to update once a day when the system may not be running, I am trying to have nextpvr update EPG on startup.  I have try to use PreStartup.sh but LibreElec will not allow script to execute on it file system.

Any suggestion?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#2
2020-10-31, 01:07 PM
What is your tuner type? Some updates will be very slow and this is not an ideal scenario.

Martin
HioWerBji
Offline

Junior Member

Posts: 12
Threads: 4
Joined: May 2018
#3
2020-10-31, 01:42 PM
I have a HDHomerun Extend and use ScheduleDirect EPG, so it is very fast to update.

running NScriptHelper.dll -updateepg could be a solution, however there is no way to do it from outside the docker container.

Is there a way to make a http call to NextPvr to update EPG? If so it would be easy to setup.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#4
2020-10-31, 02:03 PM
Ok you'd probably want to script it to only do it once a day anyway maybe not even daily.

You can run NScriptherhelper in docker.

You can't run NScripthelper in PreStartup because, if it isn't obvious the the server hasn't started.

If you run it in I'd script it to PostStartup but time it so you don't collide with the initial channel listing load. Even without a delay you will not be able to schedule recordings from the guide until you clear the database it is never advisable to use NextPVR during the EPG update.

In Matrix I added logic to reload the channels when the EPG updates from a new API from sub but thinking about that now I was basically thinking that would be in quiet times so I have to put a change in.


Martin
HioWerBji
Offline

Junior Member

Posts: 12
Threads: 4
Joined: May 2018
#5
2020-10-31, 03:14 PM
Thank for the advice,

I will work it out.

The Docker container point to a usb HDD so in order to have the scripts working I need to remount the usb HDD to exec since libreelect mount usb HDD to noexec before the docker container is started.
Also I delay the start of KODI after NextPVR is active with the autostart.sh script
/bin/sh -c 'until curl -f http://localhost:8866/; do sleep 3; done;'
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#6
2020-10-31, 03:22 PM
My point is you should delay until the EPG is loaded you can use some kind of flag in PostUpdateEPG.sh I guess.

Martin
HioWerBji
Offline

Junior Member

Posts: 12
Threads: 4
Joined: May 2018
#7
2020-10-31, 07:52 PM
Thank you for you help I got it to work.

I use PostStartup.sh to load new EPG and Kodi start a few second after.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Update arm32v7 image on Docker Hub GlowTube 6 911 2025-03-19, 05:02 PM
Last Post: calande
  EPG Update on start up thecubasekid 13 4,872 2021-02-15, 07:22 PM
Last Post: thecubasekid
  Not working after update joshskey 19 7,658 2019-09-16, 11:31 PM
Last Post: KyleC_USA

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode