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

[Developer - Settings Panel] Get homebridge host name in settings panel #661

Closed
normen opened this issue May 3, 2020 · 3 comments
Closed

Comments

@normen
Copy link

normen commented May 3, 2020

Is your feature request related to a problem? Please describe:
Nope

Describe the solution you'd like:
It would be nice if one could get a placeholder for the hostname of the homebridge instance in config.schema.json. Some of my, and I suppose some other, plugins require the user to open a web page supplied by the plugin. If there was a placeholder variable one could have a link to that right in the settings panel. Something like this:

"headerDisplay" : "To set up the server please visit http://%HOSTNAME%:8888/setup-server"

Describe alternatives you've considered:
I looked around if there was something like this already but didn't really find anything. Sorry if this is already existing in some way.

Cheers,
Normen

@oznu
Copy link
Member

oznu commented May 5, 2020

Done in the next release.

https://github.com/oznu/homebridge-config-ui-x/wiki/How-To-Test-Upcoming-Changes.

"headerDisplay" : "To set up the server please visit http://${{HOSTNAME}}:8888/setup-server"

hostname is the same value as location.hostname.

@oznu oznu closed this as completed May 5, 2020
@mkormendy
Copy link

Is your feature request related to a problem? Please describe:
Nope

Describe the solution you'd like:
It would be nice if one could get a placeholder for the hostname of the homebridge instance in config.schema.json. Some of my, and I suppose some other, plugins require the user to open a web page supplied by the plugin. If there was a placeholder variable one could have a link to that right in the settings panel. Something like this:

"headerDisplay" : "To set up the server please visit http://%HOSTNAME%:8888/setup-server"

Describe alternatives you've considered:
I looked around if there was something like this already but didn't really find anything. Sorry if this is already existing in some way.

Cheers,
Normen

Do you have a snapshot of what this looks like now? Can you attach to this thread?

@normen
Copy link
Author

normen commented May 8, 2020

It looks as if you just put the URL in there:
"headerDisplay": "Go to [http://${{HOSTNAME}}:8999](http://${{HOSTNAME}}:8999) to enter the PIN when your TV displays it"
->
Bildschirmfoto 2020-05-08 um 19 17 35

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

No branches or pull requests

3 participants