Home
The Smartylighting Streetlights API allows you to remotely manage the city lights.
- Turn a specific streetlight on/off 🌃
- Dim a specific streetlight 😎
- Receive real-time information about environmental lighting conditions 📈
URL | Protocol | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.mosquitto.org:{port} | mqtt | Test broker | ||||||||||||||||||||||||
URL Variables
|
||||||||||||||||||||||||||
Security Requirements
|
The topic on which measured values may be produced and consumed.
The ID of the streetlight.
Name | Type | Description | Accepted values |
---|---|---|---|
streetlightId |
|
Any |
Inform about environmental lighting conditions of a particular streetlight.
Name | Type | Description | Accepted values |
---|---|---|---|
my-app-header |
|
Any |
{
"my-app-header": 0
}
Name | Type | Description | Accepted values |
---|---|---|---|
lumens |
|
Light intensity measured in lumens. |
Any |
sentAt |
|
Date and time when the message was sent. |
Any |
{
"lumens": 0,
"sentAt": "2019-09-17T20:45:51Z"
}
The ID of the streetlight.
Name | Type | Description | Accepted values |
---|---|---|---|
streetlightId |
|
Any |
Command a particular streetlight to turn the lights on or off.
Name | Type | Description | Accepted values |
---|---|---|---|
my-app-header |
|
Any |
{
"my-app-header": 0
}
Name | Type | Description | Accepted values |
---|---|---|---|
command |
|
Whether to turn on or off the light. |
on , off
|
sentAt |
|
Date and time when the message was sent. |
Any |
{
"command": "on",
"sentAt": "2019-09-17T20:45:51Z"
}
The ID of the streetlight.
Name | Type | Description | Accepted values |
---|---|---|---|
streetlightId |
|
Any |
Command a particular streetlight to turn the lights on or off.
Name | Type | Description | Accepted values |
---|---|---|---|
my-app-header |
|
Any |
{
"my-app-header": 0
}
Name | Type | Description | Accepted values |
---|---|---|---|
command |
|
Whether to turn on or off the light. |
on , off
|
sentAt |
|
Date and time when the message was sent. |
Any |
{
"command": "on",
"sentAt": "2019-09-17T20:45:51Z"
}
The ID of the streetlight.
Name | Type | Description | Accepted values |
---|---|---|---|
streetlightId |
|
Any |
Command a particular streetlight to dim the lights.
Name | Type | Description | Accepted values |
---|---|---|---|
my-app-header |
|
Any |
{
"my-app-header": 0
}
Name | Type | Description | Accepted values |
---|---|---|---|
percentage |
|
Percentage to which the light should be dimmed to. |
Any |
sentAt |
|
Date and time when the message was sent. |
Any |
{
"percentage": 0,
"sentAt": "2019-09-17T20:45:51Z"
}