This project deploys the The Things Stack LoRaWAN Network Server (Open Source Edition), Basics™ Station packet forwarder and other services using Docker or Balena.io. It runs on a PC, a Raspberry Pi 3/4, Compute Module 3/4 or balenaFin with SX1301, SX1302 or SX1303 LoRa concentrators (e.g. RAK831, RAK833, RAK2245, RAK2247, RAK2287, RAK5146, Seeed WM1302 and IMST iC880a among others).
This is a Work In Progress. This is NOT meant for production environments but it should work just fine for local (LAN) deployments.
Deploy a Standalone LoRaWAN Gateway running the Basics™ Station Semtech Packet Forwarder and The Things Stack LoRaWAN Network Server in a docker container or as a balena.io fleet.
Main features:
Components used:
Check the differents repos for specific configuration options.
You have two options here:
Running this project is as simple as deploying it to a balenaCloud application. You can do it in just one click by using the button below:
Follow instructions, click Add a Device and flash an SD card with that OS image dowloaded from balenaCloud. Enjoy the magic ?Over-The-Air?!
If you are a balena CLI expert, feel free to use balena CLI. This option lets you configure in detail some options, like adding new services to your deploy or configure de DNS Server to use.
Configuring the domain section below.While the device boots (it will eventually show up in the Balena dashboard) we will prepare de services:
cd ~/workspace
git clone https://github.com/xoseperez/standalone-lorawan-gateway-balena
cd standalone-lorawan-gateway-balena
docker-compose.yml filebalena push <application-name>Now a special container in the device will be notified of the new services to download and install. This will take a few minutes and the services will reboot 2 or 3 times until configuration is complete.
The different services expose different ports, these are the default ports and credentials to access them. Check the documentation for each of them to know how to change them using variables.
| Service | Port | Username | Password |
|---|---|---|---|
| The Things Stack | 443 (https) | admin | changeme |
| Node-RED | 1880 | balena | balena |
| InfluxDB | 8086 | ||
| Grafana | 3000 | admin | admin |