[mythtv-users] mythfilldatabase run manually

Jim Abernathy jfabernathy at gmail.com
Thu Jan 9 11:17:06 UTC 2020


On 1/8/20 9:27 PM, Stephen Worthington wrote:
> On Wed, 8 Jan 2020 14:30:03 -0500, you wrote:
>
>> I have a mobile combo mythtv FE/BE on a RPi4 in my RV.  So it only have an internet connection when I turn my phone into a hotspot and the wireless AP/router bridge reestablishes a connection to the hotspot. As a result when mythfilldatabase runs it usually doesn’t succeed.
>>
>> So  what I do now is:
>> 1.  Turn on phone hotspot.
>> 2.  Open terminal and ‘sudo su mythtv’ then ‘mythfilldatabase’
>> 3.  Turn off phone hotspot.
>>
>> Anyone have a more automated way of doing this or is this the best I can hope for??
>>
>> Jim A
> It is possible to get a script to run when a network connection comes
> up - see /etc/network/if.up.  The system uses this, but it is possible
> to add your own scripts also.  I presume an RPi also works this way -
> it is a Debian and Debian based thing.  So you could have
> mythfilldatabase run when a network connection comes up the first time
> each day after the time it would normally be run.

So it looks like I could add a post-up option to /etc/network/interfaces.

However, I'm not familiar with a way to insure that mythfilldatabase 
only runs once a day in case the mobile hotspot comes on more than once 
a day? Sometimes I turn on the hotspot so my laptop can connect.  As 
soon as it's up the AP/router in client/bridge mode would also connect 
and trigger any post-up script on the RPi4 as well.

Jim A




More information about the mythtv-users mailing list