查询
最新公告

使用Go实现家居自动化

English | 2024 | ISBN: 9798888651223 | 162 pages | EPUB | 3.62 MB

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.

中文|2024|ISBN:9798888651223|162页|EPUB|3.62 MB使用Go编程语言控制您的家和数据。使用高端企业计算环境中的相同工具,构建非凡而强大的家庭自动化解决方案,与更昂贵、更封闭的商业替代方案相媲美。畅销书《实用书架》的作者Ricardo Gerardi和Mike Riley展示了如何使用廉价的Raspberry Pi硬件和优秀的开源Go软件工具,如Prometheus和Grafana,创建自己的个人数据中心。使用本书中的分步示例,构建有用的家庭自动化项目,您可以将其用作自己自定义项目的蓝图。 只需一个Raspberry Pi和Go编程语言,就可以构建自己的个人数据中心,协调和管理您的家庭自动化,利用大型企业使用的高性能软件。本书中的项目易于组装,不需要焊接或电气工程专业知识。 构建一个温度监测器,当超过设定的阈值时,该监测器可以发送警报,并在基于时间的序列图上报告温度读数。更改灯光的颜色,以直观地指示当前的室外天气状态。创建一个网络运动检测器,在检测到运动时触发警报,例如门打开或关闭、宠物四处游荡、送货或访客到达前廊。甚至让这些触发器启动一个更复杂的基于Go的自动化序列。将一台小型高分辨率相机集成到喂鸟器中,每当有鸟栖息在喂鸟器上时,它都会拍摄出精美的近距离照片,并将其广播到您的Discord服务器上,您的家人和朋友可以在那里实时看到这些野生动物捕捉到的照片。 使用您配置的硬件控制您的家庭,并使用Go代码进行管理,您可以随时创建和修改Go代码来增强家庭自动化功能。 您需要什么 读者应该熟悉Go编程语言,并具备Linux的工作知识。免费的、开源的基于Go的库和实用程序可以从互联网上下载。读者还需要一个可用的Raspberry Pi 3+或更高版本,以及一个Pi Pico W微控制器。一些项目还需要其他几个廉价的电子部件(触摸传感器、运动探测器)。天气监测项目还需要飞利浦秀基础照明系统。
Download from free file storage


本站不对文件进行储存,仅提供文件链接,请自行下载,本站不对文件内容负责,请自行判断文件是否安全,如发现文件有侵权行为,请联系管理员删除。