Skip to content

Commit ab48e9a

Browse files
authored
Add new codelabs (#3763)
1 parent e052e3c commit ab48e9a

File tree

9 files changed

+134
-10
lines changed

9 files changed

+134
-10
lines changed

.codespellignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SME
22
AbsoluteY
33
DOUT
4-
tread
4+
tread
5+
ToBot

assets/js/tutorials.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ search.start();
231231
search.addWidgets([{
232232
init: function(options) {
233233
options.helper.toggleRefinement('resource', 'tutorial');
234-
options.helper.toggleRefinement('resource', 'blogpost');
235234
}
236235
}]);
237236
search.on("render", function () {
@@ -280,15 +279,15 @@ search.on("render", function () {
280279
document.getElementById("filter-level").textContent = "Level";
281280
}
282281
if (
283-
search.helper.state.facetsRefinements.platformarea &&
284-
search.helper.state.facetsRefinements.platformarea.length
282+
search.helper.state.disjunctiveFacetsRefinements.resource &&
283+
search.helper.state.disjunctiveFacetsRefinements.resource.length
285284
) {
286-
document.getElementById("filter-platformarea").textContent =
287-
"Areas (" +
288-
search.helper.state.facetsRefinements.platformarea.length +
285+
document.getElementById("filter-resources").textContent =
286+
"Content Types (" +
287+
search.helper.state.disjunctiveFacetsRefinements.resource.length +
289288
")";
290289
} else {
291-
document.getElementById("filter-platformarea").textContent = "Platform Areas";
290+
document.getElementById("filter-resources").textContent = "Content Types";
292291
}
293292
if (
294293
search.helper.state.facetsRefinements &&

docs/tutorials/projects/apriltag.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Use an AprilTag scanner"
3+
linkTitle: "Use an AprilTag scanner"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/apriltag/index.html"
7+
tags: ["APIs", "python"]
8+
description: "Learn how to detect and decode AprilTags using a Viam module. We'll leverage the apriltag and OpenCV Python libraries to process images from a camera and extract information encoded in AprilTags."
9+
images: ["https://codelabs.viam.com/guide/apriltag/img/a5b18406088a80fa.png"]
10+
imageAlt: "apriltag demo"
11+
authors: ["Joyce Lin"]
12+
languages: []
13+
viamresources: ["camera", "vision"]
14+
platformarea: ["core"]
15+
level: "Intermediate"
16+
date: "2024-12-09"
17+
updated: "2024-12-09"
18+
cost: "0"
19+
resource: "codelab"
20+
---

docs/tutorials/projects/elastic.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Use Sensor Data with Webhooks and Elastic Cloud"
3+
linkTitle: "Use Sensor Data with Webhooks and Elastic Cloud"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/monitoring-automation-elastic/index.html"
7+
tags: ["APIs", "python"]
8+
description: "Learn how to continually index sensor data from Viam into Elasticsearch and display an alert in the real world."
9+
images:
10+
[
11+
"https://codelabs.viam.com/guide/monitoring-automation-elastic/img/aa78ebe437bc2401.png",
12+
]
13+
imageAlt: "architecture diagram"
14+
authors: ["Joyce Lin"]
15+
languages: []
16+
viamresources: ["sensor", "board", "movement_sensor", "data_manager"]
17+
platformarea: ["core"]
18+
level: "Intermediate"
19+
date: "2024-12-09"
20+
updated: "2024-12-09"
21+
cost: "0"
22+
resource: "codelab"
23+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Set up people detection notifications in Home Assistant"
3+
linkTitle: "Set up people detection notifications in Home Assistant"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/home-assistant/index.html"
7+
tags: ["APIs", "python"]
8+
description: "Learn how to install the integration through the Home Assistant Community Store (HACS) and use a vision service to detect people from a camera connected to Home Assistant."
9+
images:
10+
["https://codelabs.viam.com/guide/home-assistant/img/a630d5dcaf9e11c7.png"]
11+
imageAlt: "person detection"
12+
authors: ["Nick Hehr"]
13+
languages: []
14+
viamresources: ["mlmodel", "vision", "camera"]
15+
platformarea: ["core"]
16+
level: "Intermediate"
17+
date: "2024-12-09"
18+
updated: "2024-12-09"
19+
cost: "0"
20+
resource: "codelab"
21+
---

docs/tutorials/projects/qr-code.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Use a QR code scanner"
3+
linkTitle: "Use a QR code scanner"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/qrcode/index.html"
7+
tags: ["APIs", "python"]
8+
description: "Learn how to use a QR code scanner to detect and decode QR codes using a Viam module. We'll leverage the pyzbar and OpenCV Python libraries to process images from a camera and extract information encoded in QR codes."
9+
images: ["https://codelabs.viam.com/guide/qrcode/img/d26bc88909306225.png"]
10+
imageAlt: "qr code demo"
11+
authors: ["Joyce Lin"]
12+
languages: []
13+
viamresources: ["camera", "vision"]
14+
platformarea: ["core"]
15+
level: "Intermediate"
16+
date: "2024-12-09"
17+
updated: "2024-12-09"
18+
cost: "0"
19+
resource: "codelab"
20+
---
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Dip apples in honey with Shana ToBot"
3+
linkTitle: "Dip apples in honey with Shana ToBot"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/shana-tobot/index.html"
7+
tags: ["APIs", "python"]
8+
description: "This tutorial will walk you through making your own vending machine from scratch, along with a web application that allows you to operate your machine from any device."
9+
images: ["https://codelabs.viam.com/guide/shana-tobot/img/686d2a32f40cc254.jpg"]
10+
imageAlt: "sticker machine"
11+
authors: ["Natalia Jacobowitz"]
12+
languages: []
13+
viamresources: ["arm"]
14+
platformarea: ["core"]
15+
level: "Intermediate"
16+
date: "2024-12-09"
17+
updated: "2024-12-09"
18+
cost: "0"
19+
resource: "codelab"
20+
---
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Make your own sticker vending machine"
3+
linkTitle: "Make your own sticker vending machine"
4+
type: "docs"
5+
layout: "empty"
6+
canonical: "https://codelabs.viam.com/guide/sticker-wizard/index.html"
7+
tags: ["APIs", "python"]
8+
description: "This tutorial will walk you through making your own vending machine from scratch, along with a web application that allows you to operate your machine from any device."
9+
images:
10+
["https://codelabs.viam.com/guide/sticker-wizard/img/ef0f6732d21efc33.jpeg"]
11+
imageAlt: "sticker machine"
12+
authors: ["Nick Hehr"]
13+
languages: []
14+
viamresources: ["servo", "motor", "board"]
15+
platformarea: ["core"]
16+
level: "Intermediate"
17+
date: "2024-12-09"
18+
updated: "2024-12-09"
19+
cost: "0"
20+
resource: "codelab"
21+
---

layouts/docs/tutorials.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ <h4 class="alert-heading">Missing the filtering UI?</h4>
5757
<div class="filter" id="filter-components" aria-expanded="false" data-toggle="collapse" data-target="#components-list">Components</div>
5858
<div class="filter" id="filter-services" aria-expanded="false" data-toggle="collapse" data-target="#services-list">Services</div>
5959
<div class="filter" id="filter-level" aria-expanded="false" data-toggle="collapse" data-target="#level-list">Level</div>
60-
<div class="filter" id="filter-platformarea" aria-expanded="false" data-toggle="collapse" data-target="#platformarea-list">Platform Areas</div>
61-
<div class="filter" id="filter-resources" aria-expanded="false" data-toggle="collapse" data-target="#resource-list">Content Type</div>
60+
<div class="filter" id="filter-resources" aria-expanded="false" data-toggle="collapse" data-target="#resource-list">Content Types</div>
6261
</div>
6362
<div class="accordion-group search-panel__filters show-on-wide lozad" id="tutorial-filter-items">
6463
<div id="languages-list" class="search-facets collapse" data-parent="#tutorial-menu"></div>

0 commit comments

Comments
 (0)