openhab-docs icon indicating copy to clipboard operation
openhab-docs copied to clipboard

Configuration: Add a link to the "demo" example configuration

Open ThomDietrich opened this issue 7 years ago • 20 comments

https://github.com/openhab/openhab-distro/tree/master/features/distro-resources/src/main/resources

Even if the user didn't select the Demo starting package, he/she might want to look at the example files at some point. There should be a link to them somewhere in configuration.

How about http://docs.openhab.org/configuration/index.html and/or http://docs.openhab.org/configuration/packages.html

Better ideas?

@BClark09 for many Linux packages (*) it is common to provide example configuration files through some location under /usr/share. Wdyt?

ThomDietrich avatar Nov 27 '17 17:11 ThomDietrich

How about http://docs.openhab.org/configuration/index.html and/or http://docs.openhab.org/configuration/packages.html

I would vote for and

Confectrician avatar Nov 27 '17 17:11 Confectrician

Providing them through the Linux packages would make sense! And I'd agree that /usr/share/openhab2 ($OPENHAB_HOME) would be the most appropriate place for them.

The "how" gets a little tricky. Since they're not automatically contained in a zipfile for the gradle script to chew on.

BClark09 avatar Nov 27 '17 18:11 BClark09

Fine with me. @kaikreuzer wdyt?

ThomDietrich avatar Nov 27 '17 18:11 ThomDietrich

I even wonder if we should move them to the docs completely and remove the demo packaging - especially one we have the home builder merged, which should then become the starting point for new setups (while currently people probably often choose the demo setup as a start).

kaikreuzer avatar Nov 28 '17 11:11 kaikreuzer

@kaikreuzer let's do that! I never really liked the demo package with it's quirks and all too often users realize that they want to check out the demo files after they were able to decide that.

With "to the docs" you mean out of the distro into the docs repository? Having them available in docs sounds good to me but as we also need them for @BClark09 and many users will still like to access them directly, how about https://github.com/openhab/openhab-conf-demo

ThomDietrich avatar Nov 28 '17 11:11 ThomDietrich

Hm, good questions. I think for @BClark09 it would probably be ideal if they are still part of the distro (as this is the input for the apt packaging) - we could package them in runtime/demofiles or somewhere else; Then every user would have them available without having to do a git clone or something similar technical... I would want to avoid creating a new repo for that.

kaikreuzer avatar Nov 28 '17 11:11 kaikreuzer

Adding them to runtime/demofiles would be perfect. It would copy over in apt/yum automatically.

BClark09 avatar Nov 28 '17 12:11 BClark09

Fine with me. Imho "demofiles" is a bit unspecific. Consider something with "conf", "config" or "example".

I'll leave this issue open till after the change, then work on appropriate docs changes.

ThomDietrich avatar Nov 28 '17 13:11 ThomDietrich

Ok, so let's first get the home builder merged & documented and the demo packaging removed.

Consider something with "conf", "config" or "example".

Anything is fine for me, please name your favorite :-)

kaikreuzer avatar Nov 28 '17 13:11 kaikreuzer

"example" has my vote. openhab/runtime/conf/ and openhab/runtime/config/ imply they have some sort of functionality.

BClark09 avatar Nov 28 '17 14:11 BClark09

+1 for example.

I agree with bclark. conf or config could be misunderstood.

Confectrician avatar Nov 28 '17 15:11 Confectrician

+1 example

bgilmer77 avatar Nov 28 '17 16:11 bgilmer77

I expected @ThomDietrich to mean democonf/democonfig instead of demofiles as he said "with". So it was about replacing the word "files", not about the absolute name. "example" by itself is not telling much either - I'd rather go for "sampleconfig" or similar.

kaikreuzer avatar Nov 28 '17 16:11 kaikreuzer

Ah - I missed that part Kai. I would prefer sampleconf or sample-conf (or sample_conf?).

bgilmer77 avatar Nov 28 '17 16:11 bgilmer77

@kaikreuzer Thank you. Yes 😄

(sample|example|demo)[-_ ](conf(ig|))

Any combination is fine with me. The word "demo" is by now maybe not the best fit. "example" or "sample" would both fit, however in the community we already eastablished the term "example". For the second part I'd have liked "config" better but as the distribution is served with the "conf" folder, that might be the better choice. Hence my vote goes to: example-conf

ThomDietrich avatar Nov 28 '17 16:11 ThomDietrich

Ah, glad to see that we sometimes do NOT misunderstand each other ;-)

example-conf sounds good to me.

kaikreuzer avatar Nov 28 '17 17:11 kaikreuzer

+1 example-conf

bgilmer77 avatar Nov 28 '17 17:11 bgilmer77

+1 example-conf , sounds good and logic.

iceburg1991 avatar Dec 09 '17 22:12 iceburg1991

move them to the docs completely and remove the demo packaging

I didn't really make it to address this in time and I feel that removing the demo package now is too risky and will render many screenshots outdated immediately. So I hope you do not mind if I leave it in place in the 2.2 release after all; let's do the change in 2.3.0-SNAPSHOT then.

What I'd like to add though is the Home Builder to some package. I think the "Standard" package is the only candidate as "Simple" does not support items&sitemaps anyhow and "expert" is rather for people who anyhow already have their full setup. Would you agree?

kaikreuzer avatar Dec 14 '17 23:12 kaikreuzer

You can simply vote on https://github.com/openhab/openhab-distro/pull/609 :-)

kaikreuzer avatar Dec 14 '17 23:12 kaikreuzer