Organizing Your Nerves Project

Before writing any code, it’s important to first understand the features that will be required for the weather station and how we can go about organizing the project structure. As you’ll shortly see, Nerves projects have their own special organization structure that makes it really convenient for embedded Elixir applications.

Planning the Features

Fundamentally, the weather station sensor hub project is composed of sensors, a REST API interface, and a firmware project to manage the application life cycle. Let’s be a bit more specific, though. Here are the individual features we need to build:

  • Each sensor will need to have its own GenServer and will be responsible for collecting its sensor’s measurements.

  • Our network-enabled ...

Get Build a Weather Station with Elixir and Nerves now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.