User Tools

Site Tools


webserviceinterface21

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

webserviceinterface21 [2014/03/20 10:56]
paalsteek I mixed up hearbeat request and response.
webserviceinterface21 [2015/04/09 11:56] (current)
paalsteek added port as optional sensor setting
Line 61: Line 61:
 | 479             | Invalid Sensor External Id | The request cannot be fulfilled because it contains invalid sensor external id. Please check the message structure. If the problem persists, the id might be taken. In this case, please inform a new one. | | 479             | Invalid Sensor External Id | The request cannot be fulfilled because it contains invalid sensor external id. Please check the message structure. If the problem persists, the id might be taken. In this case, please inform a new one. |
 | 480             | Invalid Characters  | The request cannot be fulfilled because it contains a string with non-printable characters. | | 480             | Invalid Characters  | The request cannot be fulfilled because it contains a string with non-printable characters. |
 +| 481             | Invalid Network Configuration | The request cannot be fulfilled because it contains invalid network configuration properties. Please check the message structure. |
 +| 499             | Client Closed Request | The connection has been closed by client while the server is still processing its request, making server unable to send a status code back. |
 | 500             | Internal Server Error | The request was aborted due to an unspecified error on the server. This incident has been reported to the mySmartGrid team. | | 500             | Internal Server Error | The request was aborted due to an unspecified error on the server. This incident has been reported to the mySmartGrid team. |
 | 501             | Not Implemented       | The server does not provide the requested operation. Please check the X-Version header and the URL structure.  | | 501             | Not Implemented       | The server does not provide the requested operation. Please check the X-Version header and the URL structure.  |
Line 180: Line 182:
         lan:        (optional) {         lan:        (optional) {
           enabled:  <integer>,           enabled:  <integer>,
-          protocol: <string(6) - either static or dhcp>,+          protocol: <string(6)  - either static or dhcp>,
           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) {
 +          enabled:  <integer>,
           essid:    <string(60)>,           essid:    <string(60)>,
-          enc:      <string(5) - one of open,wpa,wpa2>, +          enc:      <string(5)  - one of open,wep,wpa,wpa2>, 
-          psk:      <string(60) - iff enc is wpa or wpa2>, +          psk:      <string(60) - iff enc is wep, wpa or wpa2>, 
-          protocol: <string(6) - either static or dhcp>,+          protocol: <string(6)  - either static or dhcp>,
           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 220: Line 225:
         lan:        (optional) {         lan:        (optional) {
           enabled:  <integer>,           enabled:  <integer>,
-          protocol: <string(6) - either static or dhcp>,+          protocol: <string(6)  - either static or dhcp>,
           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) {
           essid:    <string(60)>,           essid:    <string(60)>,
-          enc:      <string(5) - one of open,wpa,wpa2>,+          enc:      <string(5)  - one of open,wpa,wpa2>,
           psk:      <string(60) - iff enc is wpa or wpa2>,           psk:      <string(60) - iff enc is wpa or wpa2>,
-          protocol: <string(6) - either static or dhcp>,+          protocol: <string(6)  - either static or dhcp>,
           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 258: Line 265:
   {   {
     description:  <string(60) - the device description>,     description:  <string(60) - the device description>,
 +    type:         <the device type (flukso2, vzlogger, libklio, raspberrypi)>,
     sensors: [     sensors: [
       { meter:    <string(32) - sensor id>,       { meter:    <string(32) - sensor id>,
Line 329: 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- deprecated field, currently being ignored by the server>, +       voltage:         <integer    - sensor voltage in Volts (only if class is analog)>, 
-       voltage:     <integer    - deprecated field, currently being ignored by the server>, +       current:         <integer    - sensor current in Amperes (only if class is analog)>, 
-       current:     <integer    - deprecated field, currently being ignored by the server>, +       constant       <integer    - sensor constant in pulses/kWh (only if class is pulse)>, 
-       phase      <integer    - deprecated field, currently being ignored by the server>, +       description    <string(64) a user defined description of the sensor>, 
-       constant   <integer    deprecated field, currently being ignored by the server>, +       unit (optional): <string(16) - sensor unit>, 
-       type       <string(16) - deprecated field, currently being ignored by the server>, +       port (optional): <integer    - physical port of the sensor>
-       enable     <integer    - deprecated field, currently being ignored by the server>+
     }     }
   }   }
Line 362: 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) - deprecated fieldcurrently being ignored by the server>, +       class:           <string(10) - sensor class (one of analogpulse)>, 
-       voltage:     <integer    - deprecated field, currently being ignored by the server>, +       voltage:         <integer    - sensor voltage (iff class is analog and type is electricity)>, 
-       current:     <integer    - deprecated field, currently being ignored by the server>, +       current:         <integer    - sensor current (iff class is analog and type is electricity)>, 
-       phase      <integer    - deprecated field, currently being ignored by the server>, +       constant       <integer    - sensor constant (iff class is pulse)>, 
-       constant   <integer    deprecated fieldcurrently being ignored by the server>, +       type           <string(16) sensor type (one of electricitywater, gas)>, 
-       type       <string(16) - deprecated field, currently being ignored by the server>, +       description    <string(64) - a user defined description of the sensor>, 
-       enable     <integer    deprecated field, currently being ignored by the server>+       port (optional): <integer - physical port of the sensor>
     }     }
   }   }
Line 450: Line 457:
   unit       = <the unit in which the measurement results will be shown>   unit       = <the unit in which the measurement results will be shown>
   interval   = <an alternative way of representing a period of time that ends right now   interval   = <an alternative way of representing a period of time that ends right now
-               (minute, 15min, day, week)>+               (15min, hour, day, week)>
 | |
 ^ Response Body |  ^ Response Body | 
webserviceinterface21.1395309360.txt.gz · Last modified: 2014/03/20 10:56 by paalsteek