ChirpStack Python API to get objectJSON 5 keys

My setup is the latest version of ChirpStack gateway on a RAK Discover Kit + a WisBlock Node with Temp/Hum + Environment + Pressure Sensors using the Environment_Monitoring.ino

I’ve used this example here: Python examples - ChirpStack open-source LoRaWAN® Network Server and was able to get the correct resp.f_cnt value but now I’m trying to get the actual data such as Temp, Humidity etc from my Device Data that looks like this:

objectJSON: {} 5 keys

  • cnt:0
  • gas:18028
  • humidity:28.53
  • pressure:978.46
  • temperature:28.95

and can’t find any example or documentation related to the python section on how to get that data.

Hi @digib ,

It seems to me that what you are getting is a downlink frame counter in that example and not the uplink frame counter.

I suggest you post this inquiry as well on Chirpstack forum. They might be able to assist you better.

In my opinion, you can use that python library if you are familiar with gRPC and protobuf. Another option which is easier (I think) is to use MQTT Integration via Paho in Python
MQTT - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server