This shows you the differences between two versions of the page.
webserviceinterface21 [2014/09/10 08:57] mysmartgrid |
webserviceinterface21 [2015/04/09 11:56] (current) paalsteek added port as optional sensor setting |
||
---|---|---|---|
Line 185: | Line 185: | ||
ip: <string(15) - iff protocol is static>, | ip: <string(15) - iff protocol is static>, | ||
netmask: <string(15) - iff protocol is static>, | netmask: <string(15) - iff protocol is static>, | ||
- | gateway: <string(15) - iff protocol is static> | + | gateway: <string(15) - iff protocol is static>, |
+ | nameserver: <string(15) - iff protocol is static> | ||
}, | }, | ||
wifi: (optional) { | wifi: (optional) { | ||
Line 195: | Line 196: | ||
ip: <string(15) - iff protocol is static>, | ip: <string(15) - iff protocol is static>, | ||
netmask: <string(15) - iff protocol is static>, | netmask: <string(15) - iff protocol is static>, | ||
- | gateway: <string(15) - iff protocol is static> | + | gateway: <string(15) - iff protocol is static>, |
+ | nameserver: <string(15) - iff protocol is static> | ||
} | } | ||
} | } | ||
Line 226: | Line 228: | ||
ip: <string(15) - iff protocol is static>, | ip: <string(15) - iff protocol is static>, | ||
netmask: <string(15) - iff protocol is static>, | netmask: <string(15) - iff protocol is static>, | ||
- | gateway: <string(15) - iff protocol is static> | + | gateway: <string(15) - iff protocol is static>, |
+ | nameserver: <string(15) - iff protocol is static> | ||
}, | }, | ||
wifi: (optional) { | wifi: (optional) { | ||
Line 235: | Line 238: | ||
ip: <string(15) - iff protocol is static>, | ip: <string(15) - iff protocol is static>, | ||
netmask: <string(15) - iff protocol is static>, | netmask: <string(15) - iff protocol is static>, | ||
- | gateway: <string(15) - iff protocol is static> | + | gateway: <string(15) - iff protocol is static>, |
+ | nameserver: <string(15) - iff protocol is static> | ||
} | } | ||
}, | }, | ||
Line 333: | Line 337: | ||
{ | { | ||
config : { | config : { | ||
- | device: <string(32) - device id>, | + | device: <string(32) - device id>, |
- | externalid: <string(64) - sensor id given by the client>, | + | externalid: <string(64) - sensor id given by the client>, |
- | function: <string(16) - sensor name>, | + | function: <string(16) - sensor name>, |
- | unit: <string(16) - sensor unit>, | + | class: <string(10) - sensor class (either analog or pulse)>, |
- | class: <string(10) - sensor class (either analog or pulse)>, | + | voltage: <integer - sensor voltage in Volts (only if class is analog)>, |
- | voltage: <integer - sensor voltage in Volts (only if class is analog)>, | + | current: <integer - sensor current in Amperes (only if class is analog)>, |
- | current: <integer - sensor current in Amperes (only if class is analog)>, | + | constant: <integer - sensor constant in pulses/kWh (only if class is pulse)>, |
- | constant: <integer - sensor constant in pulses/kWh (only if class is pulse)>, | + | description: <string(64) - a user defined description of the sensor>, |
- | description: <string(64) - a user defined description of the sensor> | + | unit (optional): <string(16) - sensor unit>, |
+ | port (optional): <integer - physical port of the sensor> | ||
} | } | ||
} | } | ||
Line 364: | Line 369: | ||
{ | { | ||
config : { | config : { | ||
- | device: <string(32) - device id>, | + | device: <string(32) - device id>, |
- | externalid: <string(64) - sensor id given by the client>, | + | externalid: <string(64) - sensor id given by the client>, |
- | function: <string(16) - sensor name>, | + | function: <string(16) - sensor name>, |
- | unit: <string(16) - sensor unit>, | + | unit: <string(16) - sensor unit>, |
- | class: <string(10) - sensor class (one of analog, pulse)>, | + | class: <string(10) - sensor class (one of analog, pulse)>, |
- | voltage: <integer - sensor voltage (iff class is analog and type is electricity)>, | + | voltage: <integer - sensor voltage (iff class is analog and type is electricity)>, |
- | current: <integer - sensor current (iff class is analog and type is electricity)>, | + | current: <integer - sensor current (iff class is analog and type is electricity)>, |
- | constant: <integer - sensor constant (iff class is pulse)>, | + | constant: <integer - sensor constant (iff class is pulse)>, |
- | type: <string(16) - sensor type (one of electricity, water, gas)>, | + | type: <string(16) - sensor type (one of electricity, water, gas)>, |
- | description: <string(64) - a user defined description of the sensor> | + | description: <string(64) - a user defined description of the sensor>, |
+ | port (optional): <integer - physical port of the sensor> | ||
} | } | ||
} | } |