primaeval / service.webgrabplus

0 stars 0 forks source link

cron, system.d & Kodi/Python timer methods to control frequency/time job(s) run #1

Open Mike-KL opened 7 years ago

Mike-KL commented 7 years ago

@primaeval believe I have now reasonably understood how to make required changes to System.d files currently provided by awiouy in LibreELEC webgrabplus addon. I added what I did in following post.

https://forum.libreelec.tv/thread-1102-post-15006.html#pid15006

After running for 24hrs I am reasonably sure that we do NOT need to start or enable the service.webgrabplus.service (as this will immediately start a webgrab run and also immediately start a webgrab run after reboot)

At the moment if I run following commands in ssh, this is what my rpi2 tells me (service = inactive timer = active)

LibreELEC:~ # systemctl is-active service.webgrabplus.service inactive LibreELEC:~ # systemctl is-active service.webgrabplus.timer active

Will see if job is run early tomorrow morning

Get impression that awiouy would like someone to offer changes to be made to addon?

Mike-KL commented 7 years ago

So now we have examples of either cron or systemd method to control frequency of an epg grab using the LibreELEC webgrabplus addon.

cron timer https://forum.libreelec.tv/thread-1102-post-13539.html#pid13539 systemd timer https://forum.libreelec.tv/thread-1102-post-15006.html#pid15006

Mike-KL commented 7 years ago

Move scheduling from system.d to Kodi/Python?