Lorawan Datenstation mit ELV-LoRIS-Modul Temp_Hum1 und Integration TTN mit ThingSpeak

Ulrich Engel on 25 Oct 2022 (Edited on 25 Oct 2022)
Latest activity Reply by Ulrich Engel on 31 Oct 2022

Hallo, ich bin Anfänger und beschäftige mich gerade mit dem ELV-Modulsystem mit dem man über Steckmodule eine Sensor-Datenstation aufbauen kann, die Temp und Hum misst . Die Daten gehen dann vom Modul zu TTN und werden dort dann in einer decodierten Payload ausgegeben. Mittels Webhook Integration zu ThingSpeak will ich die Daten dann in zwei Felder-Widget für Temp und Hum ausgeben/auswerten.
Der erste Teil funktioniert und die Payload wird ausgegeben. Die Daten darin sind vernünftig.
Nun habe ich in TTN eine Integration mit Webhook "ThingSpeak" erstellt und den Decoder um zwei Zeilen entsprechend erweitert in denen Die Temperatur-Variable in "field1"-Variable geschrieben wird und die Humidity in eine "field2"-Variable.
Leider wird aber nicht wie erwartet die Datenausgabe in ThingSpeak erledigt. Die Field-Widgets bleiben leer.
Kann mir jemand helfen? Was mache ich falsch?
Hello, I'm a beginner and I'm currently working with the ELV module system with which you can set up a sensor data station using plug-in modules that measures temp and hum. The data then goes from the module to TTN, where it is then output in a decoded payload. Using webhook integration with ThingSpeak, I then want to output/evaluate the data in two field widgets for Temp and Hum.
The first part works and the payload is output. The data in it is reasonable.
Now I have created an integration with the "ThingSpeak" webhook in TTN and extended the decoder by two lines in which the temperature variable is written in a "field1" variable and the humidity in a "field2" variable.
Unfortunately, the data output in ThingSpeak is not done as expected. The field widgets remain empty.
Can someone help me? What am I doing wrong? Thanks
Christopher Stapels
Christopher Stapels on 25 Oct 2022
Are you able to update your channel using a web browser? Use this format:
https://api.thingspeak.com/update?api_key=xxxxxxxxxxxxxxxx&field1=10
Although ThingSpeak upgraded our endpoint for the latest ThingsStack V3, the doc doesnt reflecrt this update completely. Here is a video I made that is up to date (though the video quality isnt awesome).
If this doenst help, please share more details about your webhook if possible.
Ulrich Engel
Ulrich Engel on 25 Oct 2022
Hello, I watched your video. As described there, I also set up a "THinkSpeak" webhook and a new channel for ThingSpeak with field1=temperature and field2=humidity.
TTN/TTS gives me the decoded payload:
"decoded_payload": {
"Supply_Voltage": 3914,
"TH_Sensor_Humidity": "62",
"TH_Sensor_Temperature": "23.2",
"TX_Reason": "App_Cycle_Event",
"Temperature_Sensor": "22.5"
},
Now I would like to display the sensor data in ThinkSpeak. Do I then have to replace the old decoder in TTN?
What does the decoder have to look like so that the data field1=temperature and field2=humidity are displayed in the two Thingspeak fields of my channel?
Ulrich Engel
Ulrich Engel on 31 Oct 2022
I solved the problem. I simply inserted three fields in the payload formatter, field1 for temp, field2 for hum and field3 for voltage, at the appropriate places and output them in the payload. These are then visualized in ThingSpeak.