marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
127 stars 47 forks source link

homebridge -I mode #21

Closed DanielWeeber closed 7 years ago

DanielWeeber commented 7 years ago

Hey,

I need to run homebridge with -I flag for accessing the HTTP API of Homebridge. run.sh revealed, that this is not possible. Can you add a new flag?

"production-http" or something like that, which runs "homebridge -I ;;"?

Greets

marcoraddatz commented 7 years ago

What exactly does this command? (Sorry, cannot check it on my own right now)

DanielWeeber commented 7 years ago

run the homebridge in an unsecure mode, meaning the HTTP Api is enabled. So I can access the protocol via HTTP requests. You can get the status of all characteristics/platforms (and set it!) via HTTP. Maybe call it "insecure" instead of "production-http" so it is clear.

marcoraddatz commented 7 years ago

Would it make sense to also include it for "development" (homebridge -I -P $plugin_folder ;;)? What do you think?

DanielWeeber commented 7 years ago

yeah, why not. The execution itself stays the same, just the HTTP Api is enabled in background. Just tested it. Or add a new flag "development-insecure"?

I can also create a PR if we decided what to do, if you like.

marcoraddatz commented 7 years ago

What do you think about two new flags? production_insecure and development_insecure?

DanielWeeber commented 7 years ago

Would be perfect!

See PR #24

marcoraddatz commented 7 years ago

Looks good! Thanks! Shall we use "development_insecure" or "development-insecure"? Accidently wrote "development_insecure" above but meant "development-insecure", which might be more obvious. 🙄 What do you prefer?

marcoraddatz commented 7 years ago

And another small thing: Current development_insecure is the debug mode. Shall we add this as a third option?

DanielWeeber commented 7 years ago

Like this? (See PR) Sounds good to me.

marcoraddatz commented 7 years ago

Looks awesome!