This repository contains all the code accompanying my blog post on Brewing beer with LoRaWAN.
In the client directory you will find the code that runs on the embedded LoPy4 device.
In the server directory is a small FastAPI application that receives requests from the KPN Things Network, parses the payload and sends it to InfluxDB and Brewfather.
- Clone this repo
- In both the
clientandserverdirectories, renamesecrets.sample.txttosecrets.txtand fill in all the necessary fields. - Upload the
clientcode to your LoPy4 device using your tool of choice. I used the Pymakr VSCode plugin. - Run the
servercode on a publicly accessible network. ADockerfileis included.
You will have to connect the client and server yourself by configuring KPN Things. If you want to use TTN you might need to modify the payload parsing on the server side but the client code should be exactly the same.