0
0
SCADA systemsdevops~30 mins

Energy management reporting in SCADA systems - Mini Project: Build & Apply

Choose your learning style9 modes available
Energy Management Reporting
📖 Scenario: You work in a factory that uses a SCADA system to monitor energy consumption of different machines. You want to create a simple report that shows the energy usage of each machine and highlights those that consume more than a certain threshold.
🎯 Goal: Build a small program that stores energy consumption data for machines, sets a threshold for high usage, filters machines exceeding that threshold, and prints a report listing those machines.
📋 What You'll Learn
Create a dictionary with machine names and their energy consumption values
Add a threshold variable to define high energy usage
Use a loop or comprehension to find machines exceeding the threshold
Print a clear report listing high energy usage machines
💡 Why This Matters
🌍 Real World
Factories and plants use SCADA systems to monitor energy consumption of machines to save costs and improve efficiency.
💼 Career
DevOps and operations engineers often write scripts to analyze and report system metrics like energy usage for better resource management.
Progress0 / 4 steps
1
Create energy consumption data
Create a dictionary called energy_usage with these exact entries: 'Pump1': 120, 'Conveyor2': 85, 'Furnace3': 200, 'Compressor4': 95, 'Mixer5': 130
SCADA systems
Need a hint?

Use curly braces to create a dictionary with the exact machine names as keys and their energy values as integers.

2
Set high usage threshold
Create a variable called high_usage_threshold and set it to 100 to define the energy consumption limit for high usage.
SCADA systems
Need a hint?

Just assign the number 100 to the variable named high_usage_threshold.

3
Find machines exceeding threshold
Create a dictionary called high_usage_machines using a dictionary comprehension that includes only machines from energy_usage with values greater than high_usage_threshold.
SCADA systems
Need a hint?

Use a dictionary comprehension with for machine, usage in energy_usage.items() and filter with if usage > high_usage_threshold.

4
Print high usage report
Write a print statement that outputs the string "High energy usage machines:" and then a for loop that prints each machine and its usage from high_usage_machines in the format "Machine: usage kWh".
SCADA systems
Need a hint?

Print the header first, then loop over high_usage_machines.items() and print each machine and usage using an f-string.