This specification is intended to define a standardized way of communicating with lighting systems for real-time monitoring and control and to allow data collection between control systems and / or peripheral devices.
NOTE: need to add API to query last-known update...identify what was done and when (and by whom?)
The scope of this document is limited to providing a payload structure and endpoint type definitions to allow basic control and data acquisition. The addition of product specific features is left to the implementer, but to be in compliance the product must support the basic set of features specified below.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
GET http://[domain:port]/agroapi/[version]/lights/sensors/[sensorid]/info
Returns Info
GET http://[domain:port]/agroapi/[version]/lights/sensors/[sensorid]/version
Returns Version
GET http://[domain:port]/agroapi/[version]/lights/sensors/[sensorid]/location
Returns Location
GET http://[domain:port]/agroapi/[version]/lights/sensors/[sensorid]/ppf
Returns Light PPF
GET http://[domain:port]/agroapi/[version]/lights/sensors/[sensorid]/ppfd
Returns Light PPFD
GET http://[domain:port]/agroapi/[version]/lights/sensors/info
Returns an array of Info
GET http://[domain:port]/agroapi/[version]/lights/sensors/version
Returns an array of Version
GET http://[domain:port]/agroapi/[version]/lights/sensors/location
Returns an array of Location
GET http://[domain:port]/agroapi/[version]/lights/sensors/ppf
Returns an array of Light PPF
GET http://[domain:port]/agroapi/[version]/lights/sensors/ppfd
Returns an array of Light PPFD
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/info
Returns an array of Info
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/version
Returns an array of Version
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/location
Returns an array of Location
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/ppf
Returns an array of Light PPF
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/sensors/ppfd
Returns an array of Light PPFD
Name | Description | Unit |
---|---|---|
id | Unique id of the device | uid |
timestamp | UTC timestamp of the measurement | datetime |
red | Level of red spectrum light | PPF |
blue | Level of blue spectrum light | PPF |
green | Level of green spectrum light | PPF |
uv | Level of ultraviolet light | PPF |
infrared | Level of infrared light | PPF |
par | Level of absorbable light | PPF |
light | Level of all spectrums of light | PPF |
Name | Description | Unit |
---|---|---|
id | Unique id of the device | uid |
timestamp | UTC timestamp of the measurement | datetime |
red | Level of red spectrum light | PPFD |
blue | Level of blue spectrum light | PPFD |
green | Level of green spectrum light | PPFD |
uv | Level of ultraviolet light | PPFD |
infrared | Level of infrared light | PPFD |
par | Level of absorbable light | PPFD |
light | Level of all spectrums of light | PPFD |
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/info
Returns Info
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/version
Returns Version
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/location
Returns Location
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/config
Returns Fixture Configuration
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/power
Returns Fixture Power
GET http://[domain:port]/agroapi/[version]/lights/fixtures/info
Returns an array of Info
GET http://[domain:port]/agroapi/[version]/lights/fixtures/version
Returns an array of Version
GET http://[domain:port]/agroapi/[version]/lights/fixtures/location
Returns an array of Location
GET http://[domain:port]/agroapi/[version]/lights/fixtures/config
Returns an array of Fixture Configuration
GET http://[domain:port]/agroapi/[version]/lights/fixtures/power
Returns an array of Fixture Power
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/info
Returns an array of Info
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixture/[fixtureid]/version
Returns an array of Version
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/location
Returns an array of Location
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/config
Returns an array of Fixture Configuration
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/power
Returns an array of Fixture Power
Name | Description | Unit |
---|---|---|
id | Unique id of the fixture | uid |
channels | array of channel configurations | Channel Configuration |
Name | Description | Unit |
---|---|---|
id | Unique id of the channel | uid |
lower | Lower boundary of the frequency range | nm |
upper | Upper boundary of the frequency range | nm |
intensity | Light intensity | % |
Name | Description | Unit |
---|---|---|
id | Unique id of the fixture | uid |
status | The active state of the lights | "on" or "off" |