Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodic polling for changes in sitemap/items? #30

Open
jayekub opened this issue Apr 21, 2016 · 2 comments
Open

periodic polling for changes in sitemap/items? #30

jayekub opened this issue Apr 21, 2016 · 2 comments

Comments

@jayekub
Copy link

jayekub commented Apr 21, 2016

i find myself restarting homebridge whenever i update my openhab config, because it doesn't seem to pickup changes automatically. is there some way to make it periodically refresh from OH?

@digiltd
Copy link

digiltd commented Jun 28, 2016

I use executeCommandLine in a rule to restart the homebridge service when i restart OpenHAB.

Not a perfect solution, but it works ok. I also have the same command bound to a switch so I restart by pressing a button in the ui.

rule "OpenHAB startup"
when
    System started
then
    executeCommandLine("sudo systemctl restart homebridge");
    logWarn("SystemStart", "Restarting Homebridge")
end

@jayekub
Copy link
Author

jayekub commented Jun 29, 2016

thanks Sam. this is also what i ended up doing--works pretty well

On Tue, Jun 28, 2016 at 04:00:28PM -0700, Sam Turner wrote:

I use executeCommandLine in a rule to restart the homebridge service when i restart OpenHAB.

Not a perfect solution, but it works ok. I also have the same command bound to a switch so I restart by pressing a button in the ui.

rule "OpenHAB startup"
when
  System started
then

  executeCommandLine("sudo systemctl restart homebridge");
  logWarn("SystemStart", "Restarting Homebridge")
end

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#30 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants