AntonioMeireles / homebridge-vieramatic

Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Apache License 2.0
43 stars 9 forks source link

How to have child bridge automatically restart every night to fix current issues? #123

Closed jat80 closed 2 months ago

jat80 commented 3 months ago

This plugin seems to have a lot of issues that need resolving for it to work properly but it appears that there are not many updates recently or help regarding these issues.

I have it running somewhat fine (with some tweaking in the manual config) except for the fact it stops responding after a couple of days and I need to restart the child bridge for it to start working again.

Does anyone know how to automate this process so I can set it up to restart the child bridge every night at a certain time? This will fix my one last issue with this plugin.

I'm using homebridge on a raspberry pi via homebridge UI.

Many thanks.

jat80 commented 2 months ago

Ok have figured this out. Bare in mind I'm running homebridge UI on a raspberry pi.

I created and saved a shell script to restart this plugin which is running as a child bridge and made the script executable.

I then setup a cronjob to run the shell script every morning at 4am (can set it to whatever time/frequency you want).

So now it's fully working. Posting here as may help someone else with similar issues.