I would like to measure the temperature (and humidity) inside the gateway enclosure. I have thought about DHT11 or DHT22 directly connected to the R-Pi pins (https://tutorials-raspberrypi.com/raspberry-pi-measure-humidity-temperature-dht11-dht22/). A workaround is to have a LoRaWAN node inside the enclosure to transmit these measurements but I see it overkill.
My intention is to monitor Gateway vital signs and so temperature/humidity would be one of them.
My wild guess:
feature the code to support DHT11/22.
To pass on these values to the Gateway simulating they are sent from a sort of “virtual LoRaWAN node”
Please search the forum for comparable ideas as this subject pops up every few months.
Don’t bother, you have a multitasking OS, use a second process to gather the information. You can even reuse existing code available on the internet that way.
This requires extensive changes to the packet forwarder and the implementation of a fully LoRaWAN compliant node stack. As the gateway runs a tcp/ip stack anyway there are easier and better ways to transfer the data. MQTT comes to mind.
Or even a few days ago, and despite the gravity of the responses, ie the experience of the respondees as well as the prior discussions on here, it didn’t go well and ended up tying up three moderators time.
I’d be happy to talk about how I do it by simulating a WebHook submission to the exact same end point I use for the WebHook on the console. But not how to hack (subvert) both a LoRaWAN stack & a packet forwarder to try to stuff it through TTS.
Within Basics Station there is a feature to send messages using the “Event” function.
As an example, in the linked post below is a solar powered gateway where the associated parameters are sent from time to time. In this case a cron job creates this file and Basics Station picks it up and forwards its contents
Before Basics Station was available and while developing my gateway which is rated for outdoors in direct sun at 45C ambient I ran MQTT to a server to log and display some gateway data. I can confirm MQTT is a good solution.