Automate Your Home Using Go: Build a Personal Data Center with Raspberry Pi, Docker, Prometheus, and Grafana

Gerardi, Ricardo, Riley, Mike

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2024-09-24
  • 售價: $1,680
  • 貴賓價: 9.5$1,596
  • 語言: 英文
  • 頁數: 162
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798888650509
  • ISBN-13: 9798888650509
  • 相關分類: DockerRaspberry Pi
  • 海外代購書籍(需單獨結帳)

商品描述

Take control of your home and your data with the power of the Go programming language. Build extraordinary and robust home automation solutions that rival much more expensive, closed commercial alternatives, using the same tools found in high-end enterprise computing environments. Best-selling Pragmatic Bookshelf authors Ricardo Gerardi and Mike Riley show how you can use inexpensive Raspberry Pi hardware and excellent, open source Go-based software tools like Prometheus and Grafana to create your own personal data center. Using the step-by-step examples in the book, build useful home automation projects that you can use as a blueprint for your own custom projects.

With just a Raspberry Pi and the Go programming language, build your own personal data center that coordinates and manages your home automation, leveraging the same high-powered software used by large enterprises. The projects in this book are easy to assemble, no soldering or electrical engineering expertise required.

Build a temperature monitor that can send alerts any time defined thresholds are exceeded and report the temperature readings on a time-based series chart. Change the color of lights to visually indicate the current outdoor weather status. Create a networked motion detector that triggers an alert any time motion is detected, such as a door opening or closing, a pet wandering around, or deliveries or visitors arriving on your front porch. Even have these triggers initiate a more complex Go-based automation sequence. Integrate a small, high-resolution camera into a bird feeder that takes excellent, up-close photos whenever a bird perches at the feeder, and broadcasts them to your Discord server where your family and friends can see these wildlife captures in real time.

Control your home with hardware you configure, and manage it with Go code that you create and modify any time you want to enhance your home automation capabilities.

What You Need:

Readers should be familiar with the Go programming language and have working knowledge of Linux. Free, open source Go-based libraries and utilities are available for download from the Internet. Readers will also need a working Raspberry Pi 3+ or higher, and a Pi Pico W microcontroller. Several other inexpensive electronic parts (touch sensors, motion detectors) are also needed for some of the projects. A Philips Hue base lighting system is also needed for the weather monitor project.

商品描述(中文翻譯)

掌控您的家居和數據,利用 Go 程式語言的力量。構建卓越且穩健的家居自動化解決方案,這些方案的性能可與更昂貴的封閉商業替代品相媲美,並使用在高端企業計算環境中找到的相同工具。暢銷書作者 Ricardo Gerardi 和 Mike Riley 展示了如何使用廉價的 Raspberry Pi 硬體和優秀的開源 Go 基礎軟體工具,如 Prometheus 和 Grafana,來創建您自己的個人數據中心。通過書中的逐步示例,構建有用的家居自動化項目,您可以將其作為自己定制項目的藍圖。

只需一個 Raspberry Pi 和 Go 程式語言,便可構建自己的個人數據中心,協調和管理您的家居自動化,利用大型企業使用的高效能軟體。本書中的項目易於組裝,無需焊接或電氣工程專業知識。

構建一個溫度監測器,當超過定義的閾值時可以發送警報,並在基於時間的系列圖表上報告溫度讀數。改變燈光顏色以直觀地顯示當前的戶外天氣狀況。創建一個網絡運動探測器,當檢測到運動時(例如門的開關、寵物徘徊或快遞或訪客到達您的門廊)觸發警報。甚至可以讓這些觸發器啟動更複雜的基於 Go 的自動化序列。將一個小型高解析度相機集成到鳥食器中,當鳥類停留在食器上時拍攝出色的特寫照片,並將其廣播到您的 Discord 伺服器,讓您的家人和朋友能夠實時查看這些野生動物的捕捉畫面。

使用您配置的硬體來控制您的家居,並使用您創建和修改的 Go 代碼來管理它,隨時增強您的家居自動化能力。

您需要的條件:
讀者應熟悉 Go 程式語言並具備 Linux 的基本知識。可以從互聯網上下載免費的開源 Go 基礎庫和工具。讀者還需要一個運行中的 Raspberry Pi 3+ 或更高版本,以及一個 Pi Pico W 微控制器。某些項目還需要幾個其他廉價的電子元件(觸摸傳感器、運動探測器)。天氣監測項目還需要一個 Philips Hue 基礎照明系統。