Skip to content

Commit 962ea7f

Browse files
committed
improve inspector activity
1 parent ec56419 commit 962ea7f

6 files changed

Lines changed: 80 additions & 13 deletions

File tree

‎docs/activities.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,11 @@ <h5 class="no-anchor card-title listing-title">
640640
</div>
641641
</div></a>
642642
</div>
643-
<div class="g-col-1" data-index="9" data-categories="UHVibGljJTIwSGVhbHRoJTJDRGF0YSUyMFNjaWVuY2UlMkNTcHJlYWRzaGVldHM=" data-listing-file-modified-sort="1782793967587" data-listing-reading-time-sort="3" data-listing-word-count-sort="493">
643+
<div class="g-col-1" data-index="9" data-categories="UHVibGljJTIwSGVhbHRoJTJDRGF0YSUyMFNjaWVuY2UlMkNTcHJlYWRzaGVldHM=" data-listing-file-modified-sort="1782921379653" data-listing-reading-time-sort="4" data-listing-word-count-sort="701">
644644
<a href="./projects/inspector.html" class="quarto-grid-link">
645645
<div class="quarto-grid-item card h-100 card-left">
646646
<p class="card-img-top">
647-
<img loading="lazy" src="./img/co2.png" class="thumbnail-image card-img" style="height: 150px;">
647+
<img loading="lazy" src="./img/temtopPM.jpg" class="thumbnail-image card-img" style="height: 150px;">
648648
</p>
649649
<div class="card-body post-contents">
650650
<h5 class="no-anchor card-title listing-title">

‎docs/img/temtopPM.jpg‎

21 KB
Loading

‎docs/projects/inspector.html‎

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,35 @@
7070
}
7171
}</script>
7272

73+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
74+
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
75+
76+
<script type="text/javascript">
77+
const typesetMath = (el) => {
78+
if (window.MathJax) {
79+
// MathJax Typeset
80+
window.MathJax.typeset([el]);
81+
} else if (window.katex) {
82+
// KaTeX Render
83+
var mathElements = el.getElementsByClassName("math");
84+
var macros = [];
85+
for (var i = 0; i < mathElements.length; i++) {
86+
var texText = mathElements[i].firstChild;
87+
if (mathElements[i].tagName == "SPAN" && texText && texText.data) {
88+
window.katex.render(texText.data, mathElements[i], {
89+
displayMode: mathElements[i].classList.contains('display'),
90+
throwOnError: false,
91+
macros: macros,
92+
fleqn: false
93+
});
94+
}
95+
}
96+
}
97+
}
98+
window.Quarto = {
99+
typesetMath
100+
};
101+
</script>
73102

74103
<link rel="stylesheet" href="../styles.css">
75104
</head>
@@ -146,6 +175,7 @@ <h2 id="toc-title">On this page</h2>
146175
<li><a href="#sensors" id="toc-sensors" class="nav-link active" data-scroll-target="#sensors">Sensors</a></li>
147176
<li><a href="#task-1.-create-a-spreadsheet-and-collect-the-data" id="toc-task-1.-create-a-spreadsheet-and-collect-the-data" class="nav-link" data-scroll-target="#task-1.-create-a-spreadsheet-and-collect-the-data">Task #1. Create a spreadsheet and collect the data</a></li>
148177
<li><a href="#task-2.-spreadsheet-skills" id="toc-task-2.-spreadsheet-skills" class="nav-link" data-scroll-target="#task-2.-spreadsheet-skills">Task #2. Spreadsheet skills</a></li>
178+
<li><a href="#thresholds-for-the-sensor-results" id="toc-thresholds-for-the-sensor-results" class="nav-link" data-scroll-target="#thresholds-for-the-sensor-results">Thresholds for the sensor results</a></li>
149179
<li><a href="#task-3.-conditional-formatting" id="toc-task-3.-conditional-formatting" class="nav-link" data-scroll-target="#task-3.-conditional-formatting">Task #3. Conditional formatting</a></li>
150180
<li><a href="#interesting-article" id="toc-interesting-article" class="nav-link" data-scroll-target="#interesting-article">Interesting article</a></li>
151181
</ul>
@@ -180,7 +210,7 @@ <h1 class="title">Building Inspector</h1>
180210

181211
<div class="quarto-figure quarto-figure-center">
182212
<figure class="figure">
183-
<p><img src="../img/co2.png" class="img-fluid quarto-figure quarto-figure-center figure-img" width="400"></p>
213+
<p><img src="../img/temtopPM.jpg" class="img-fluid quarto-figure quarto-figure-center figure-img" width="400"></p>
184214
</figure>
185215
</div>
186216
<p>Take some sensors and explore your building</p>
@@ -203,12 +233,21 @@ <h2 class="anchored" data-anchor-id="task-1.-create-a-spreadsheet-and-collect-th
203233
<section id="task-2.-spreadsheet-skills" class="level2">
204234
<h2 class="anchored" data-anchor-id="task-2.-spreadsheet-skills">Task #2. Spreadsheet skills</h2>
205235
<p>In the bottom left of the spreadsheet there should be a little + button to create a new sheet within your spreadsheet. This is kind of like creating a new tab except that the tab is a spreadsheet. <b>Create three new tabs, one for each of the sensors.</b></p>
206-
<p>Instead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a “cross-sheet reference” like in <a href="https://www.youtube.com/watch?v=F5Y9cuTb5Iw">this video</a>. Ultimately you will want to write things like <code>=Sheet1!A1</code> to get the values from the first sheet into the other sheets.</p>
236+
<p>Instead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a “cross-sheet reference” like in <a href="https://www.youtube.com/watch?v=F5Y9cuTb5Iw">this video</a>. Ultimately you will want to write things like <code>=Sheet1!A1</code> to get the values from the first sheet into the other sheets. To accomplish the same task, you can also click a cell in Sheet1 and presss Control + C and then go to the next sheet and click a cell and press Control + V.</p>
237+
</section>
238+
<section id="thresholds-for-the-sensor-results" class="level2">
239+
<h2 class="anchored" data-anchor-id="thresholds-for-the-sensor-results">Thresholds for the sensor results</h2>
240+
<p>The CO2 and PM2.5 sensors both have a specific range for what is “good” (labeled as green), “fair” (labeled as yellow) and “poor” (labeled as red) air quality.</p>
241+
<p>The CO2 sensor labels 0 - 1000 ppm as good (green), 1001 - 1500 ppm as fair (yellow), and 1501 ppm and above as poor.</p>
242+
<p>The PM2.5 sensor labels 0 - 12 <span class="math inline">\(\mu\)</span>g/m<span class="math inline">\(^3\)</span> as good (green), 12.1 - 55.4 <span class="math inline">\(\mu\)</span>g/m<span class="math inline">\(^3\)</span> as fair (yellow) and greater than 55.5 <span class="math inline">\(\mu\)</span>g/m<span class="math inline">\(^3\)</span> as poor (red).</p>
243+
<p>There is no universally adopted range what is considered good, fair and poor sound intensity, but most references would definitely label &gt; 120 decibels as dangerously high for human hearing, and arguably the threshold should be lower than that (perhaps &gt; 110 decibels would make more sense). It is up to you to decide!</p>
207244
</section>
208245
<section id="task-3.-conditional-formatting" class="level2">
209246
<h2 class="anchored" data-anchor-id="task-3.-conditional-formatting">Task #3. Conditional formatting</h2>
210-
<p>In principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called “conditional formatting” that can do this.</p>
211-
<p>Use conditional formatting so that the values turn the same color as the indicators. For sound just make a guess about what would make sense.</p>
247+
<p>We want each cell with a measurement in it to light up with the color that corresponds to what the sensor would indicate (as discussed in the previous section).</p>
248+
<p>In principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called “conditional formatting” that can do this in both <a href="https://www.w3schools.com/excel/excel_conditional_formatting.php">Excel</a> and <a href="https://support.google.com/docs/answer/78413">Google Sheets</a></p>
249+
<p>Use conditional formatting so that the values turn the same color as the indicators.</p>
250+
<p>For sound just make your own judgement about what would make sense, as discussed in the previous section.</p>
212251
</section>
213252
<section id="interesting-article" class="level2">
214253
<h2 class="anchored" data-anchor-id="interesting-article">Interesting article</h2>

‎docs/search.json‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,14 +1593,14 @@
15931593
"href": "projects/inspector.html#task-2.-spreadsheet-skills",
15941594
"title": "Building Inspector",
15951595
"section": "Task #2. Spreadsheet skills",
1596-
"text": "Task #2. Spreadsheet skills\nIn the bottom left of the spreadsheet there should be a little + button to create a new sheet within your spreadsheet. This is kind of like creating a new tab except that the tab is a spreadsheet. Create three new tabs, one for each of the sensors.\nInstead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a “cross-sheet reference” like in this video. Ultimately you will want to write things like =Sheet1!A1 to get the values from the first sheet into the other sheets."
1596+
"text": "Task #2. Spreadsheet skills\nIn the bottom left of the spreadsheet there should be a little + button to create a new sheet within your spreadsheet. This is kind of like creating a new tab except that the tab is a spreadsheet. Create three new tabs, one for each of the sensors.\nInstead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a “cross-sheet reference” like in this video. Ultimately you will want to write things like =Sheet1!A1 to get the values from the first sheet into the other sheets. To accomplish the same task, you can also click a cell in Sheet1 and presss Control + C and then go to the next sheet and click a cell and press Control + V."
15971597
},
15981598
{
15991599
"objectID": "projects/inspector.html#task-3.-conditional-formatting",
16001600
"href": "projects/inspector.html#task-3.-conditional-formatting",
16011601
"title": "Building Inspector",
16021602
"section": "Task #3. Conditional formatting",
1603-
"text": "Task #3. Conditional formatting\nIn principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called “conditional formatting” that can do this.\nUse conditional formatting so that the values turn the same color as the indicators. For sound just make a guess about what would make sense."
1603+
"text": "Task #3. Conditional formatting\nWe want each cell with a measurement in it to light up with the color that corresponds to what the sensor would indicate (as discussed in the previous section).\nIn principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called “conditional formatting” that can do this in both Excel and Google Sheets\nUse conditional formatting so that the values turn the same color as the indicators.\nFor sound just make your own judgement about what would make sense, as discussed in the previous section."
16041604
},
16051605
{
16061606
"objectID": "projects/inspector.html#interesting-article",
@@ -2315,5 +2315,19 @@
23152315
"title": "WeTeach_CS 2025 Summer Teacher Training Schedule",
23162316
"section": "Week 2, Wednesday",
23172317
"text": "Week 2, Wednesday\n\nAny extra questions about activities covered, or activities we did not have time to go over (1 hour)\nZoom breakouts / check ins / individual plans to do more data science and CS in their classes + any extra questions about any activities covered (2.5 hours)"
2318+
},
2319+
{
2320+
"objectID": "projects/inspector.html#ranges-for-the-sensor-results",
2321+
"href": "projects/inspector.html#ranges-for-the-sensor-results",
2322+
"title": "Building Inspector",
2323+
"section": "Ranges for the sensor results",
2324+
"text": "Ranges for the sensor results\nThe CO2 and PM2.5 sensors both have a specific range for what is “good” (labeled as green), “fair” (labeled as yellow) and “poor” (labeled as red) air quality.\nThe CO2 sensor labels 0 - 1000 ppm as good (green), 1001 - 1500 ppm as fair (yellow), and 1501 ppm and above as poor.\nThe PM2.5 sensor labels 0 - 12 \\(\\mu\\)g/m\\(^3\\) as good (green), 12.1 - 55.4 \\(\\mu\\)g/m\\(^3\\) as fair (yellow) and greater than 55.5 \\(\\mu\\)g/m\\(^3\\) as poor (red).\nThere is no universally adopted range what is considered good, fair and poor sound intensity, but most references would definitely label &gt; 120 decibels as dangerously high for human hearing, and arguably the threshold should be lower than that (perhaps &gt; 110 decibels would make more sense). It is up to you to decide!"
2325+
},
2326+
{
2327+
"objectID": "projects/inspector.html#thresholds-for-the-sensor-results",
2328+
"href": "projects/inspector.html#thresholds-for-the-sensor-results",
2329+
"title": "Building Inspector",
2330+
"section": "Thresholds for the sensor results",
2331+
"text": "Thresholds for the sensor results\nThe CO2 and PM2.5 sensors both have a specific range for what is “good” (labeled as green), “fair” (labeled as yellow) and “poor” (labeled as red) air quality.\nThe CO2 sensor labels 0 - 1000 ppm as good (green), 1001 - 1500 ppm as fair (yellow), and 1501 ppm and above as poor.\nThe PM2.5 sensor labels 0 - 12 \\(\\mu\\)g/m\\(^3\\) as good (green), 12.1 - 55.4 \\(\\mu\\)g/m\\(^3\\) as fair (yellow) and greater than 55.5 \\(\\mu\\)g/m\\(^3\\) as poor (red).\nThere is no universally adopted range what is considered good, fair and poor sound intensity, but most references would definitely label &gt; 120 decibels as dangerously high for human hearing, and arguably the threshold should be lower than that (perhaps &gt; 110 decibels would make more sense). It is up to you to decide!"
23182332
}
23192333
]

‎img/temtopPM.jpg‎

21 KB
Loading

‎projects/inspector.qmd‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "Building Inspector"
3-
image: ../img/co2.png
3+
image: ../img/temtopPM.jpg
44
categories:
55
- Public Health
66
- Data Science
77
- Spreadsheets
88
---
99

10-
![](../img/co2.png){width=400 fig-align="center"}
10+
![](../img/temtopPM.jpg){width=400 fig-align="center"}
1111

1212
Take some sensors and explore your building
1313

@@ -33,13 +33,27 @@ Collect data from the three sensors in each room and fill in the table in the sp
3333

3434
In the bottom left of the spreadsheet there should be a little + button to create a new sheet within your spreadsheet. This is kind of like creating a new tab except that the tab is a spreadsheet. <b>Create three new tabs, one for each of the sensors.</b>
3535

36-
Instead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a "cross-sheet reference" like in [this video](https://www.youtube.com/watch?v=F5Y9cuTb5Iw). Ultimately you will want to write things like <code>=Sheet1!A1</code> to get the values from the first sheet into the other sheets.
36+
Instead of making a list of rooms with measurements as different columns, take each new sheet and write down the rooms in a pattern that makes sense for your building. To fill in the data into this sheet DO NOT just enter the numbers again. Insead use a "cross-sheet reference" like in [this video](https://www.youtube.com/watch?v=F5Y9cuTb5Iw). Ultimately you will want to write things like <code>=Sheet1!A1</code> to get the values from the first sheet into the other sheets. To accomplish the same task, you can also click a cell in Sheet1 and presss Control + C and then go to the next sheet and click a cell and press Control + V.
37+
38+
## Thresholds for the sensor results
39+
40+
The CO2 and PM2.5 sensors both have a specific range for what is "good" (labeled as green), "fair" (labeled as yellow) and "poor" (labeled as red) air quality.
41+
42+
The CO2 sensor labels 0 - 1000 ppm as good (green), 1001 - 1500 ppm as fair (yellow), and 1501 ppm and above as poor.
43+
44+
The PM2.5 sensor labels 0 - 12 $\mu$g/m$^3$ as good (green), 12.1 - 55.4 $\mu$g/m$^3$ as fair (yellow) and greater than 55.5 $\mu$g/m$^3$ as poor (red).
45+
46+
There is no universally adopted range what is considered good, fair and poor sound intensity, but most references would definitely label > 120 decibels as dangerously high for human hearing, and arguably the threshold should be lower than that (perhaps > 110 decibels would make more sense). It is up to you to decide!
3747

3848
## Task #3. Conditional formatting
3949

40-
In principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called "conditional formatting" that can do this.
50+
We want each cell with a measurement in it to light up with the color that corresponds to what the sensor would indicate (as discussed in the previous section).
51+
52+
In principle you could click each cell and click to assign a color to it to indicate how safe or concerning each value is. But it would be better if the color could be assigned automatically. Good news: there is a spreadsheet function called "conditional formatting" that can do this in both [Excel](https://www.w3schools.com/excel/excel_conditional_formatting.php) and [Google Sheets](https://support.google.com/docs/answer/78413)
53+
54+
Use conditional formatting so that the values turn the same color as the indicators.
4155

42-
Use conditional formatting so that the values turn the same color as the indicators. For sound just make a guess about what would make sense.
56+
For sound just make your own judgement about what would make sense, as discussed in the previous section.
4357

4458

4559
## Interesting article

0 commit comments

Comments
 (0)