Setting Up Metrics & Decoders
This guide walks you through the practical steps of configuring decoders and measurements in ChirpStack. Before diving in, we recommend reading our Data Structure Planning Guide to understand how to organize your data effectively.
Prerequisites
Before starting, ensure you have:
- A MileSight AM319 device added to your ChirpStack.
- Basic understanding of ChirpStack console navigation.
Note: You can use any device you'd like, the AM319 is just the demo I have handy for this.
Step 1: Planning Your Data Structure
- Review the Data Structure Planning Guide
- Identify which measurements you need
- Decide on your tag structure
- Plan your field names and types
Step 2: Implementing in ChirpStack
Configuring Device Profiles
- Navigate to Device Profiles
- Add or modify codec based on your planned structure
- Configure measurements to match your data plan
Setting Up Measurements
- Define measurements using consistent naming from your plan
- Configure correct measurement types:
- Use
gaugefor continuous values (temperature, humidity) - Use
stringfor status values (occupancy) - Use
counterfor cumulative values
- Use