Skip to content

Instantly share code, notes, and snippets.

@ThomDietrich
Last active February 3, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomDietrich/6461de591a1fd687f7951638e57c5e46 to your computer and use it in GitHub Desktop.
Save ThomDietrich/6461de591a1fd687f7951638e57c5e46 to your computer and use it in GitHub Desktop.
Diff
diff --git i/addons/bindings.md w/addons/bindings.md
index 87cc88d..7211ef3 100644
--- i/addons/bindings.md
+++ w/addons/bindings.md
@@ -7,20 +7,23 @@ title: Bindings
# Bindings
-Bindings connect your smart home's devices and technologies to openHAB.
+Bindings connect your smart home's devices and technologies to openHAB.
-<table>
+<table id="bindings-select" class="striped">
<tbody>
<tr>
<td width="20%">
<p>
<input type="checkbox" class="filled-in" id="oh2-checkbox" checked="checked" />
- <label for="oh2-checkbox"><img src="{{base}}/images/tag-oh2.svg"></label></label>
+ <label for="oh2-checkbox"><img src="{{base}}/images/tag-oh2.svg"></label>
</p>
</td>
<td>
<p>
- Bindings developed for openHAB 2.x use the <a href="https://www.eclipse.org/smarthome/" target="_blank">Eclipse SmartHome</a> APIs. They support <a href="{{base}}/concepts/things.html">things and channels</a>, and many support automatic discovery of things. These newer bindings can be the easiest to use.
+ Bindings developed for openHAB 2.x use the <a href="https://www.eclipse.org/smarthome/" target="_blank">Eclipse SmartHome</a> APIs.
+ They support <a href="{{base}}/concepts/things.html">things and channels</a>, and many support automatic discovery of things.
+ These newer bindings can be the easiest to use.
+ </p>
</td>
</tr>
<tr>
@@ -32,7 +35,8 @@ Bindings connect your smart home's devices and technologies to openHAB.
</td>
<td>
<p>
- Most bindings developed for openHAB 1.x can also be used in openHAB 2. These bindings are connected directly to items by editing text files.
+ Most bindings developed for openHAB 1.x can also be used in openHAB 2.
+ These bindings are connected directly to items by editing text files.
</p>
</td>
</tr>
@@ -45,7 +49,9 @@ Bindings connect your smart home's devices and technologies to openHAB.
</td>
<td>
<p>
- A binding is considered legacy when another binding obsoletes it. For many 1.x bindings, there is a new 2.x binding to replace it. In order to install legacy bindings, enable "Include Legacy 1.x Bindings" through either the Paper UI or in the file <code>services/addons.cfg</code>.
+ A binding is considered legacy when another binding obsoletes it.
+ For many 1.x bindings, there is a new 2.x binding to replace it.
+ In order to install legacy bindings, enable "Include Legacy 1.x Bindings" through either the Paper UI or in the file <code>services/addons.cfg</code>.
</p>
</td>
</tr>
@@ -58,7 +64,11 @@ Bindings connect your smart home's devices and technologies to openHAB.
</td>
<td>
<p>
- Many openHAB 1.x bindings have not yet completed validation for inclusion in the distribution; however, they may indeed work properly under openHAB 2. All openHAB 1.x addons can be downloaded in a <a href="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F1.9.0%2Fopenhab-1.9.0-addons.zip">zip file</a>. We need your help testing them so that they may be easily installed in a future distribution. Please see the <a href="{{base}}/developers/development/compatibilitylayer.html#how-to-use-openhab-1x-add-ons-that-are-not-part-of-the-distribution">compatibility layer documentation</a> and also search the <a href="https://community.openhab.org">openHAB community forum</a> for the latest information and steps for manual installation.
+ Many openHAB 1.x bindings have not yet completed validation for inclusion in the distribution; however, they may indeed work properly under openHAB 2.
+ All openHAB 1.x addons can be downloaded in a <a href="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F1.9.0%2Fopenhab-1.9.0-addons.zip">zip file</a>.
+ We need your help testing them so that they may be easily installed in a future distribution.
+ Please see the <a href="{{base}}/developers/development/compatibilitylayer.html#how-to-use-openhab-1x-add-ons-that-are-not-part-of-the-distribution">compatibility layer documentation</a>
+ and also search the <a href="https://community.openhab.org">openHAB community forum</a> for the latest information and steps for manual installation.
</p>
</td>
</tr>
@@ -71,36 +81,35 @@ Bindings connect your smart home's devices and technologies to openHAB.
{% assign oh1addons = site.data.oh1addons %}
{% assign legacyaddons = site.data.legacyaddons %}
-<table class="bordered responsive-table">
+<table id="bindings-overview" class="bordered">
<thead>
<tr>
- <th data-field="label">Name</th>
+ <th data-field="label" width="20%">Name</th>
<th data-field="description">Description</th>
</tr>
</thead>
<tbody>
-{% for binding in sorted_bindings %}
- {% assign install = "auto" %}
- {% if binding.source == "oh1" %}
- {% assign install = "manual" %}
- {% for oh1addon in oh1addons %}
- {% if oh1addon.category == "binding" and oh1addon.id contains binding.id %}
- {% assign install = "auto" %}
- {% break %}
- {% endif %}
- {% endfor %}
- {% for legacyaddon in legacyaddons %}
- {% if legacyaddon.category == "binding" and legacyaddon.id contains binding.id %}
- {% assign install = "legacy" %}
- {% break %}
- {% endif %}
- {% endfor %}
- {% endif %}
- <tr class="install-{{install}} source-{{binding.source}}">
- <td><h4><a href="{{base}}/addons/bindings/{{ binding.source }}/{{ binding.id }}/readme.html">{{ binding.label }}</a></h4><img src="{{base}}/images/tag-{{binding.source}}.svg"><br/>
- <img src="{{base}}/images/tag-install-{{install}}.svg"></td>
- <td>{{ binding.description | markdownify }}</td>
- </tr>
-{% endfor %}
+ {% for binding in sorted_bindings %}
+ {% assign install = "auto" %}
+ {% if binding.source == "oh1" %}
+ {% assign install = "manual" %}
+ {% for oh1addon in oh1addons %}
+ {% if oh1addon.category == "binding" and oh1addon.id contains binding.id %}
+ {% assign install = "auto" %}
+ {% break %}
+ {% endif %}
+ {% endfor %}
+ {% for legacyaddon in legacyaddons %}
+ {% if legacyaddon.category == "binding" and legacyaddon.id contains binding.id %}
+ {% assign install = "legacy" %}
+ {% break %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ <tr class="install-{{install}} source-{{binding.source}}">
+ <td>
+ <h4><a href="{{base}}/addons/bindings/{{ binding.source }}/{{ binding.id }}/readme.html">{{ binding.label }}</a></h4>
+ <img src="{{base}}/images/tag-{{binding.source}}.svg"> <img src="{{base}}/images/tag-install-{{install}}.svg">
+ </td>
+ <td>{{ binding.description | markdownify }}</td>
+ </tr>
+ {% endfor %}
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment