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
client
andserver
directories, renamesecrets.sample.txt
tosecrets.txt
and fill in all the necessary fields. - Upload the
client
code to your LoPy4 device using your tool of choice. I used the Pymakr VSCode plugin. - Run the
server
code on a publicly accessible network. ADockerfile
is 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.