This flow tracks newly registered gateways to the The Things Network and sends the data to a Telegram chat.
After copying the flow to a clean tab in your Node-RED instance, you will have to configure several bits:
-
Zone requests. Two example requests are inicluded: a zone-based (latitude, longitude and radius) and a country request. Change them depending on your needs.
-
Change the file where EUIs are persisted in the
read
andsave
nodes. This will depend on your OS. -
The flow uses the Open Caged Data geocoding API based on OpenStreetMaps. You will need to create an account to get an access key. It is free up to 2500 requests per day. Use your key in the
geocoding url
node. You can also change the output language there using the 2-char ISO code. -
Create a telegram bot (using the @BotFather) and configure the token in the telegram configuration node.
-
Edit the
message
node and change the two chatId codes to target your chat. To get the chatId use another bot like @my_id_bot.