anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

platform-export not populating - windows #87

Open senadman opened 6 years ago

senadman commented 6 years ago

Homebridge-cbus running on windows server 2016.

Issue is with the "platform-export" file is not populating with cgate data.

Any idea?

DarylMc commented 6 years ago

On my raspberry pi I needed to do this. Specify a location in config.json for the file myplatform.json Create a file in that location called myplatform.json Probably not relevant for windows but in Linux I had to add permissions for the user who is running homebridge or the file would not write. Allow a bit of time after boot before opening myplatform.json to allow it to be written.

`

senadman commented 6 years ago

I tried the full windows path before posting here, but it crashed homebridge on startup.

So just for giggles I tried that again, but instead of using backslashes (windows) in the full path I used forward slashes instead and strangely it worked.

Hope that helps someone