You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **advanced chart widget** is used to display data from several IoT Cloud variables in a single chart. You can track the data in both real time, select from a specific time period while selecting the variables you want to display.
9
9
10
-
The **advanced chart widget** is used to display the data from several IoT Cloud variables in a single chart. You can track the data in both real time, or select from a specific time period.
This widget can very easily be added onto existing projects (if you are already tracking data), and is particularly interesting to use in projects such as:
13
-
- Weather station
14
-
- Environmental data
15
-
- Energy consumption
16
-
- Various science projects where data comparison is needed
12
+
This widget can be added onto existing projects (if you are already tracking data), and is particularly interesting to use in projects such as:
13
+
- Weather stations,
14
+
- Environmental data tracking,
15
+
- Energy consumption,
16
+
- Various science projects where data comparison is needed.
17
17
18
-
What is particularly interesting is that this new widget can use variables from **multiple things.** So you can monitor data from various devices and plot it all in one place.
18
+
This widget can use variables from **different Things**, so you can monitor data from various devices and plot it all in one place.
19
19
20
-
For example, you could set up a series of sensors around a city, and measure the CO2 emissions from your phone or laptop!
20
+
For example, you could set up a series of sensors around a city, and measure the CO2 emissions from your phone or laptop in a single chart!
- Cloud compatible boards, [see full list](https://docs.arduino.cc/arduino-cloud/getting-started/iot-cloud-getting-started#compatible-hardware).
26
26
27
-
***In this tutorial, we use the [MKR WiFi 1010]() and [MKR ENV Shield]() for environmental values. This is not a requirement, you can use any board for this tutorial.***
27
+
***In this tutorial, we use the [MKR WiFi 1010](/hardware/mkr-wifi-1010) and [MKR ENV Shield](/hardware/mkr-env-shield) for recording environmental values. This is not a requirement, you can use any board for this tutorial.***
28
28
29
29
## Setup & Configuration
30
30
@@ -42,7 +42,7 @@ To use the advanced widget, you will need to set up a Thing and some variables t
42
42
43
43
**3.** Link the variables you want to compare. In this case, we are using `temperature`, `humidity`, `pressure` and `light`.
44
44
45
-
![Link variables.]()
45
+

46
46
47
47
>You can use up to a maximum of 5 variables.
48
48
@@ -52,12 +52,100 @@ To use the advanced widget, you will need to set up a Thing and some variables t
52
52
53
53
**5.** Click on **"Done"** when finished selecting the variables. If your board is connected and is sending data to the cloud, you will see the widget's data update frequently.
54
54
55
+
## Example Code
56
+
57
+
The sketch of your project does not require much complexity. In your automatically generated code, simply add the sensor reading code inside of the loop. We are using the [Arduino_MKRENV](https://www.arduino.cc/reference/en/libraries/arduino_mkrenv/) library, and we only needed to add these following lines to the loop to read all sensors:
Hover over a line to see what the value of a variable was in a specific point in time. In this case, we choose to check only the temperature and the humidity.
115
+
116
+

117
+
118
+
### Specific Time Period
119
+
120
+
To see a specific time period, click on the calendar icon, where you can select the starting & end time & date.
121
+
122
+

123
+
124
+
As an example, the widget below shows the illuminance (LUX) recorded via the **MKR ENV Shield**, the `light` variable.
125
+
126
+
Here, we can see that sunset occured around 18.00 (6PM), and sunrise sometime around 07.00 (7AM).
127
+
128
+

129
+
130
+
## Limitations
131
+
132
+
The following variables are not supported in the advanced chart widget.
133
+
134
+
- Character String
135
+
- Schedule
136
+
- Location
137
+
- Color
138
+
- Custom Variable
139
+
- Colored Light
140
+
- Dimmed Light
141
+
- Contact Sensor
142
+
- Motion Sensor
143
+
- Television
144
+
- Boolean
145
+
- Light
146
+
- Smart Plug
147
+
- Switch
148
+
149
+
## Summary
150
+
151
+
The advanced chart widget can be used for **any** project that includes data monitoring. It is perfect for scientific projects when monitoring & comparing data over time is needed.
0 commit comments