Build a Weather Station with Elixir and Nerves: Visualize Your Sensor Data with Phoenix and Grafana

Build a Weather Station with Elixir and Nerves: Visualize Your Sensor Data with Phoenix and Grafana

作者: Koutmos Alexander Tate Bruce Hunleth Frank
出版社: Pragmatic Bookshelf
出版在: 2022-02-15
ISBN-13: 9781680509021
ISBN-10: 1680509020
裝訂格式: Quality Paper - also called trade paper
總頁數: 92 頁





內容描述


The Elixir programming language has become a go-to tool for creating reliable, fault-tolerant, and robust server-side applications. Thanks to Nerves, those same exact benefits can be realized in embedded applications. This book will teach you how to structure, build, and deploy production grade Nerves applications to network-enabled devices. The weather station sensor hub project that you will be embarking upon will show you how to create a full stack IoT solution in record time. You will build everything from the embedded Nerves device to the Phoenix backend and even the Grafana time-series data visualizations.
Elixir as a programming language has found its way into many different software domains, largely in part to the rock-solid foundation of the Erlang virtual machine. Thanks to the Nerves framework, Elixir has also found success in the world of embedded systems and IoT. Having access to all of the Elixir and OTP constructs such as concurrency, supervision, and immutability makes for a powerful IoT recipe. Find out how to create fault-tolerant, reliable, and robust embedded applications using the Nerves framework.
Build and deploy a production-grade weather station sensor hub using Elixir and Nerves, all while leveraging the best practices established by the Nerves community for structuring and organizing Nerves applications. Capture all of your weather station sensor data using Phoenix and Ecto in a lightweight server-side application. Efficiently store and retrieve the time-series weather data collected by your device using TimescaleDB (the Postgres extension for time-series data). Finally, complete the full stack IoT solution by using Grafana to visualize all of your time-series weather station data. Discover how to create software solutions where the underlying technologies and techniques are applicable to all layers of the project.
Take your project from idea to production ready in record time with Elixir and Nerves.
What You Need:
To complete the Nerves weather station project in this book, you will need the following:

A Linux, MacOS, or Windows computer to build and deploy Nerves firmware images
A Raspberry Pi Zero W or any other Nerves supported target (https://hexdocs.pm/nerves/targets.html#supported-targets-and-systems)
A VEML6030 light sensor
An BME680 environmental sensor
An SGP30 air quality sensor
Qwiic connect cables for weather sensors


作者介紹


Alexander Koutmos has been writing software professionally for almost a decade and has been working primarily with Elixir since 2016. He currently maintains a few Elixir libraries on Hex and also runs a software consultancy (www.stagira.com).
Bruce Tate is a kayaker, programmer, and father of two from Chattanooga, Tennessee. The author of more than 10 books has been around Elixir from the beginning. He is the founder of Groxio, a company that trains Elixir developers.
Frank Hunleth is an embedded systems programmer, OSS maintainer, and Nerves core team member. When not in front of a computer, he loves running and spending time with his family.




相關書籍

Windows Server 2022 Active Directory 建置實務

作者 戴有煒

2022-02-15

ASP.NET 4.6 網頁製作徹底研究 - 使用Visual Basic

作者 陳會安

2022-02-15

C#程序設計基礎入門與實戰(微課版)

作者 文傑書院

2022-02-15