I'm personally amazed by the LPWAN networks and the possibility to use public LoRaWAN networks with tiny low power devices. However I also find fascinating to run your own private LoRaWAN network for specific use cases. And now you can run it with a Raspberry Pi in a really simple way.
This solution uses The Things Stack LoRaWAN Network Server Open Source Edition using containers on balena.
What is The Things Stack
If you don't know it The Things Stack is an example of a LoRaWAN network server. Previously know as The Things Network or TTN. Now The Things Stack is running on the The Things Industries clusters that are distributed worldwide. However, if you want to manage your own data without sharing it with any cloud provider, the data collected can’t leave your country, or other similar requirements, then the solution is to deploy The Things Stack LoRaWAN Network Server using balena on a Raspberry Pi.
Deploy the The Things Stack Network Server
To deploy the The Things Stack Network Server on your Pi go to the balenaHub project TTS-network-server
here and click Fork this fleet
.
You also can visit the project repo and click Deploy with balena
Clicking any of these deploy buttons, it will create a fleet on balenaCloud with all the necessary code to deploy your The Things Stack network server.
Click the Device online to see the services running.
Once the three services all running (postgresql
, redis
and stack
), copy the local IP address of the Raspberry Pi and introduce it into your favourite browser with https. You also can use the balenaCloud Public Device URL
.
Then the The Things Stack login page should appear.
To access The Things Stack use admin
and as a password changeme
.
Now you can Register gateways and create LoRaWAN applications into your private The Things Stack network server running on a Raspberry Pi with balena.
Please share the projects you build with this :-)
Comments