0
0
IOT Protocolsdevops~30 mins

IoT analytics and dashboards in IOT Protocols - Mini Project: Build & Apply

Choose your learning style9 modes available
IoT Analytics and Dashboards
📖 Scenario: You work for a smart home company. They collect temperature data from many sensors in different rooms. Your job is to help analyze this data and create a simple dashboard summary.
🎯 Goal: Build a small program that stores temperature readings, sets a threshold, filters readings above the threshold, and then displays the filtered results as a dashboard summary.
📋 What You'll Learn
Create a dictionary with room names as keys and temperature readings as values
Add a threshold variable to filter high temperatures
Use a dictionary comprehension to select rooms with temperatures above the threshold
Print the filtered dictionary as the dashboard output
💡 Why This Matters
🌍 Real World
IoT devices often send sensor data like temperatures. Analyzing this data helps monitor environments and trigger alerts.
💼 Career
DevOps engineers and IoT developers use such data filtering and dashboard summaries to maintain and improve smart systems.
Progress0 / 4 steps
1
Create temperature data dictionary
Create a dictionary called temperatures with these exact entries: 'Living Room': 22, 'Kitchen': 27, 'Bedroom': 20, 'Bathroom': 25, 'Garage': 18.
IOT Protocols
Need a hint?

Use curly braces {} to create the dictionary with keys and values separated by colons.

2
Set temperature threshold
Create a variable called threshold and set it to 23 to filter rooms with temperatures above this value.
IOT Protocols
Need a hint?

Just assign the number 23 to the variable threshold.

3
Filter rooms above threshold
Use a dictionary comprehension to create a new dictionary called high_temps that includes only rooms from temperatures with values greater than threshold. Use room and temp as the loop variables.
IOT Protocols
Need a hint?

Use {room: temp for room, temp in temperatures.items() if temp > threshold} to filter.

4
Display dashboard output
Print the high_temps dictionary to display the filtered rooms and their temperatures.
IOT Protocols
Need a hint?

Use print(high_temps) to show the filtered dictionary.