forwards data from ttn nodes to luftdaten and madavi.
- Knowledge how to work with docker and have it installed.
- Have a Lora Wan node sending PM10 and PM2.5 to the TheThingsNetwork.
- You need to have a TTN application configured and your sensor Node (Device) connected to it. You'll need the "Application ID" which you can find in the yellow/orange box in the https://console.thethingsnetwork.org/applications page and you'll need the access key which you find at the bottom of the https://console.thethingsnetwork.org/applications/###yourapplicationID### page. (The default key will do)
- You need to decide a prefix. Preferably starting with TTN and ending with a place code. For example: TTNBXL = TheThingsNetworkBrussels
- Your TTN application should output a json object like this
{"pm10":19,"pm25":18,"temperature":16,"humidity":74}
temperature and humidity are not required. You can achief this by writing a decoder function at this page: https://console.thethingsnetwork.org/applications/###yourapplicationID###/payload-formats that returns an object with the given properties.
Fill in the xxx parts
docker run --env appID=xxx --env accessKey=xxx --env prefix=xxx cinezaster/ttn2luftdaten_forwarder:latest
I run it via docker cloud on a digital ocean node