Forcing mythfilldatabase from Kodi
#1
I would like to run mythfilldatabase to update the Channel listings from Schedules Direct from within Kodi.

Most of the time, the mythbackend updates every 24 hours and that works, but occasionally, like today, I see a lot of sports programming not right, so I fixed it by ssh'ing to the backend and running it manually. But I had to exit Kodi, get out the keyboard to do the ssh. I'd love to be able to force this within Kodi using my remote.

Any ideas?
Reply
#2
SSH can be scripted, so what I would do is write an add-on that ran a short python script to SSH into the backend and run mythfilldatabase. You'd need to set up password less login via keys.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
In fact I have never written an add-on and may have a play.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#4
(2016-01-12, 06:41)nickr Wrote: SSH can be scripted, so what I would do is write an add-on that ran a short python script to SSH into the backend and run mythfilldatabase. You'd need to set up password less login via keys.

Are there references to writing scripts in python for Kodi laying around? I wouldn't mind experimenting with it. I need a project since I've already solved all the rest of the world's problems Blush
Reply
#5
Wouldn't it be better to have the automatic run of mythfilldatabase closer to the time were most sport events are? I understand that if mythfilldatabase runs in the middle of the night that the times maybe change a bit for later that day. But if you run mythfilldatabase during the afternoon or something, maybe the times would be more correct?
Don't know when most sport is, but I'm guessing afternoon/evening.

I think it is always nice to have a system that manages itself. Otherwise, if you setup a recording rule to record something and you are not at home and can update the EPG manually you would maybe miss the beginning/end.
Reply
#6
You could also use cron to schedule it whenever you like, even every 15 minutes, although I am not sure whether SD imposes any limits or quotas.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#7
Thanks for all the help. I think I'll start with forcing the updates automatically at a better time for me.
Reply

Logout Mark Read Team Forum Stats Members Help
Forcing mythfilldatabase from Kodi0