Skip to content

Commit

Permalink
Updated binding XML file format
Browse files Browse the repository at this point in the history
  • Loading branch information
cdjackson committed Aug 28, 2013
1 parent 87367cb commit c558a27
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 108 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local.properties
.classpath
.settings/
.loadpath
.idea

# External tool builders
.externalToolBuilders/
Expand Down
111 changes: 15 additions & 96 deletions openhab/owserver.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- Binding configuration for the SNMP binding in openHAB -->
<binding>
<!-- Binding configuration settings -->
<binding.config>
<setting>
<name>cache</name>
Expand Down Expand Up @@ -30,6 +32,8 @@
<maximum>10000</maximum>
<values></values>
</setting>

<!-- The following lines specify the communications interface settings. These may be repeated multiple times -->
<setting>
<name>.host</name>
<label>IP Address</label>
Expand All @@ -52,32 +56,36 @@
</setting>
</binding.config>

<!-- Item binding configuration -->
<binding.items>
<binding.io>
<type>Input (GET)</type>
<type>Input</type>
<description></description>
<parameters>
<parameter>
<name>Address</name>
<description>Sets the IP address of the SNMP device.</description>
<name>interface</name>
<label>Communications Interface</label>
<description>Set the symbolic name of the communication interface.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>Community</name>
<description>Sets the SNMP community for the GET request.</description>
<name>romid</name>
<label>ROM ID</label>
<description>Set the ROM ID of the One Wire device.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>OID</name>
<description>Sets the Object ID for the SNMP GET.</description>
<name>parameter</name>
<label>Parameter Name</label>
<description>Sets the Parameter Name from the One Wire device.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
Expand All @@ -95,94 +103,5 @@
</parameter>
</parameters>
</binding.io>
<binding.io>
<type>Input (TRAP)</type>
<description></description>
<parameters>
<parameter>
<name>Address</name>
<description>Sets the IP address of the SNMP device.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>Community</name>
<description>Sets the SNMP community for the GET request.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>OID</name>
<description>Sets the Object ID for the SNMP GET.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
</parameters>
</binding.io>
<binding.io>
<type>Output (SET)</type>
<description></description>
<parameters>
<parameter>
<name>Command String</name>
<description>Sets the command string that will appear in the openHAB GUI.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>Address</name>
<description>Sets the IP address of the SNMP device.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>Community</name>
<description>Sets the SNMP community for the SET request.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>OID</name>
<description>Sets the Object ID for the SNMP SET.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
<parameter>
<name>Value</name>
<description>Sets the command value for the SNMP SET.</description>
<optional>false</optional>
<default></default>
<minimum></minimum>
<maximum></maximum>
<values></values>
</parameter>
</parameters>
</binding.io>
</binding.items>
</binding>





39 changes: 27 additions & 12 deletions openhab/snmp.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- Binding configuration for the EDS One Wire Server binding in openHAB -->
<binding>
<!-- Binding configuration settings -->
<binding.config>
<setting>
<name>port</name>
Expand Down Expand Up @@ -46,13 +48,15 @@
</setting>
</binding.config>

<!-- Item binding configuration -->
<binding.items>
<binding.io>
<type>Input (GET)</type>
<description></description>
<parameters>
<parameter>
<name>Address</name>
<name>address</name>
<label>IP Address</label>
<description>Sets the IP address of the SNMP device.</description>
<optional>false</optional>
<default></default>
Expand All @@ -61,7 +65,8 @@
<values></values>
</parameter>
<parameter>
<name>Community</name>
<name>community</name>
<label>SNMP Community</label>
<description>Sets the SNMP community for the GET request.</description>
<optional>false</optional>
<default></default>
Expand All @@ -70,7 +75,8 @@
<values></values>
</parameter>
<parameter>
<name>OID</name>
<name>oid</name>
<label>Object ID</label>
<description>Sets the Object ID for the SNMP GET.</description>
<optional>false</optional>
<default></default>
Expand All @@ -79,7 +85,8 @@
<values></values>
</parameter>
<parameter>
<name>Polling period</name>
<name>period</name>
<label>Polling period</label>
<description>Sets polling period (in milliseconds between each request.</description>
<optional>false</optional>
<default>5000</default>
Expand All @@ -94,7 +101,8 @@
<description></description>
<parameters>
<parameter>
<name>Address</name>
<name>address</name>
<label>IP Address</label>
<description>Sets the IP address of the SNMP device.</description>
<optional>false</optional>
<default></default>
Expand All @@ -103,7 +111,8 @@
<values></values>
</parameter>
<parameter>
<name>Community</name>
<name>community</name>
<label>SNMP Community</label>
<description>Sets the SNMP community for the GET request.</description>
<optional>false</optional>
<default></default>
Expand All @@ -112,7 +121,8 @@
<values></values>
</parameter>
<parameter>
<name>OID</name>
<name>oid</name>
<label>Object ID</label>
<description>Sets the Object ID for the SNMP GET.</description>
<optional>false</optional>
<default></default>
Expand All @@ -127,7 +137,8 @@
<description></description>
<parameters>
<parameter>
<name>Command String</name>
<name>command</name>
<label>Command String</label>
<description>Sets the command string that will appear in the openHAB GUI.</description>
<optional>false</optional>
<default></default>
Expand All @@ -136,7 +147,8 @@
<values></values>
</parameter>
<parameter>
<name>Address</name>
<name>address</name>
<label>IP Address</label>
<description>Sets the IP address of the SNMP device.</description>
<optional>false</optional>
<default></default>
Expand All @@ -145,7 +157,8 @@
<values></values>
</parameter>
<parameter>
<name>Community</name>
<name>community</name>
<label>SNMP Community</label>
<description>Sets the SNMP community for the SET request.</description>
<optional>false</optional>
<default></default>
Expand All @@ -154,7 +167,8 @@
<values></values>
</parameter>
<parameter>
<name>OID</name>
<name>oid</name>
<label>Object ID</label>
<description>Sets the Object ID for the SNMP SET.</description>
<optional>false</optional>
<default></default>
Expand All @@ -163,7 +177,8 @@
<values></values>
</parameter>
<parameter>
<name>Value</name>
<name>value</name>
<label>Value</label>
<description>Sets the command value for the SNMP SET.</description>
<optional>false</optional>
<default></default>
Expand Down

0 comments on commit c558a27

Please sign in to comment.