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

Homebridge as Service on windows #59

Closed
crbyxwpzfl opened this issue Jul 17, 2020 · 3 comments
Closed

Homebridge as Service on windows #59

crbyxwpzfl opened this issue Jul 17, 2020 · 3 comments

Comments

@crbyxwpzfl
Copy link

crbyxwpzfl commented Jul 17, 2020

hi im running homebridge on windows and keep getting this error.
how/where can i change the home directory?

Error: Cannot find module 'C:\Program Files\nodejs.homebridge\Cmd4Scripts\State.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

@crbyxwpzfl crbyxwpzfl changed the title homebridge on windows change expected directory homebridge on windows change home directory Jul 17, 2020
@ztalbot2000
Copy link
Owner

ztalbot2000 commented Jul 17, 2020 via email

@crbyxwpzfl
Copy link
Author

thanks for your quick response!

Okay in short my solution is just not run Homebridge as a service then State.js directory is as installation instructions state.

in detail when i run Homebridge as a Service on windows the plugin is looking for State.js in
'C:\Program Files\nodejs.homebridge\Cmd4Scripts\State.js'
And it wants to create the Cmd4States folder in 'C:\WINDOWS\system32\config\systemprofile.homebridge\Cmd4Scripts\Cmd4States'
(according to error messages)

I then tried to put the State.js as well as created the Cmd4States folder at the given locations.
But even after adjusting folder permissions the state_cmd still failed.

Is it possible to run Homebridge as a service on windows with this plugin by changing the expected home directory?

@crbyxwpzfl crbyxwpzfl changed the title homebridge on windows change home directory Homebridge as Service on windows Jul 17, 2020
@ztalbot2000
Copy link
Owner

ztalbot2000 commented Jul 17, 2020 via email

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