Skip to content

Commit

Permalink
Isolated the common structures for all devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jonginter committed Apr 25, 2018
1 parent 56f81b4 commit caea85d
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions versions/0.0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,26 @@ Returns an array of Crop Variety IDs
| y | y coordinate of this compartment within the facility | cm |
| z | z coordinate of this compartment within the facility | cm |

## Devices
Every device uses the same data structures to report its essential identify and location. Here are the structures that are returned in those cases.

#### Device Info
| Name | Description | Unit |
| ------- | ------------------------------------------ | ---- |
| id | unique id of the device | uid |
| make | Name of the company that makes this device | text |
| model | Model number of this device | text |
| version | Version number of this device | text |

#### Device Location
| Name | Description | Unit |
| ---- | ------------------------------------------- | ---- |
| id | Unique id of the device | uid |
| zone | ID of the zone containing this device | uid |
| x | x coordinate of this device within the zone | cm |
| y | y coordinate of this device within the zone | cm |
| z | z coordinate of this device within the zone | cm |

# Light
## Sensors
### URLS
Expand Down Expand Up @@ -303,21 +323,6 @@ GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/ppfd
Returns an array of [Light PPFD](https://github.com/open-ag-tech/api-spec/blob/master/versions/0.0.1.md#light-ppfd)

### Data structures
#### Device Info
| Name | Description | Unit |
| ------- | ------------------------------------------ | ---- |
| id | unique id of the device | uid |
| make | Name of the company that makes this device | text |
| model | Model number of this device | text |
| version | Version number of this device | text |
#### Device Location
| Name | Description | Unit |
| ---- | ------------------------------------------- | ---- |
| id | Unique id of the device | uid |
| zone | ID of the zone containing this device | uid |
| x | x coordinate of this device within the zone | cm |
| y | y coordinate of this device within the zone | cm |
| z | z coordinate of this device within the zone | cm |
#### Light PPF
| Name | Description | Unit |
| --------- | -------------------------------- | -------- |
Expand Down

0 comments on commit caea85d

Please sign in to comment.