... | @@ -12,13 +12,13 @@ The light sensor is component U506 (see section 2.1 of [mangOH Yellow Hardware A |
... | @@ -12,13 +12,13 @@ The light sensor is component U506 (see section 2.1 of [mangOH Yellow Hardware A |
|
|
|
|
|
# Resource configuration
|
|
# Resource configuration
|
|
|
|
|
|
Now, let's configure light sensor handling in such a way that its value is sent to the cloud every two minutes:
|
|
Now, let's configure light sensor handling in such a way that its value is sent to the cloud every 30 seconds, on **DEVICE/Resources** page:
|
|
* **light/enable**: **true**
|
|
* **light/enable**: **true**
|
|
* **light/period**: **120**
|
|
* **light/period**: **30**
|
|
|
|
|
|
# Observation
|
|
# Observation
|
|
|
|
|
|
Create an observation for the light value, on the **Observations** page:
|
|
Create an observation for the light value, on the **DEVICE/Observations** page:
|
|
* click on **ADD OBSERVATION...**
|
|
* click on **ADD OBSERVATION...**
|
|
* for **Observed resource**, select **/light/value/**
|
|
* for **Observed resource**, select **/light/value/**
|
|
* for **Observation name**, you can keep the proposed default value, **light**
|
|
* for **Observation name**, you can keep the proposed default value, **light**
|
... | @@ -30,10 +30,18 @@ The newly created observation is added to the list of observations: |
... | @@ -30,10 +30,18 @@ The newly created observation is added to the list of observations: |
|
|
|
|
|
![light1-observation](uploads/ee388e7c6e4d3816ebee50f7b3a32d30/light1-observation.png)
|
|
![light1-observation](uploads/ee388e7c6e4d3816ebee50f7b3a32d30/light1-observation.png)
|
|
|
|
|
|
# Stream
|
|
# Device stream
|
|
|
|
|
|
Go to the **Streams** page. Click on the **light** stream that has been automatically created. All received values are displayed there:
|
|
Go to the **DEVICE/Streams** page. Click on the **light** stream that has been automatically created. All received values are displayed there:
|
|
|
|
|
|
![light1-stream](uploads/d4ce258fab7ef132f4c7e6be8fe5500b/light1-stream.png)
|
|
![light1-deviceStream](uploads/ae9d451c94d3a6666393f12228b80a20/light1-deviceStream.png)
|
|
|
|
|
|
(Don't pay attention to the strange name that appears in the stream path. [I renamed my device, but the path kept the original name](https://forum.sierrawireless.com/t/renaming-a-device/18171).) |
|
(Don't pay attention to the strange name that appears in the stream path. [I renamed my device, but the path kept the original name](https://forum.sierrawireless.com/t/renaming-a-device/18171).)
|
|
\ No newline at end of file |
|
|
|
|
|
# Cloud stream
|
|
|
|
|
|
|
|
As we created an observation that sends data to a cloud stream, related stream can be dislayed on **CLOUD/Streams** page:
|
|
|
|
|
|
|
|
![light1-cloudStream](uploads/b2965a4c478854c4215a172556f900a7/light1-cloudStream.png)
|
|
|
|
|
|
|
|
That's a mirror of related device stream. |
|
|
|
\ No newline at end of file |