# Decoding Ruuvi Gateway data model?

**URL:** https://f.ruuvi.com/t/decoding-ruuvi-gateway-data-model/5114
**Category:** 🇬🇧 RuuviTag & RuuviTag Pro sensors
**Created:** [18 October 2021 14:56 UTC](https://f.ruuvi.com/t/decoding-ruuvi-gateway-data-model/5114 "2021-10-18T14:56:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jaylingo](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jaylingo](https://f.ruuvi.com/u/Jaylingo)
#### Post date: [18 October 2021 14:56 UTC](https://f.ruuvi.com/t/decoding-ruuvi-gateway-data-model/5114/1 "2021-10-18T14:56:15Z")

</div>

Hi there! Just got my gateway and trying things out locally.

Could someone point me to the right direction so I can decode the ruuvi data that comes out from the gateway?

I noticed that the hex shorter than the python [parser](https://github.com/ttu/ruuvitag-sensor#parse-data) understands by default.

Trying to get the data part decoded:

```auto
"tags": {
    "12:23:34:45:56:67": {
        "rssi": -50,
        "timestamp": "1634567013",
        "data": "0201061BFF99040503597B0EC3F403B801F80024949678D40ACD433EB1FA40"
    }
}

```

---

<div class="post-metadata">

### Author: ![io53](https://f.ruuvi.com/user_avatar/f.ruuvi.com/io53/32/430_2.png) [@io53](https://f.ruuvi.com/u/io53)
#### Post date: [18 October 2021 16:43 UTC](https://f.ruuvi.com/t/decoding-ruuvi-gateway-data-model/5114/2 "2021-10-18T16:43:34Z")

</div>

Have a look here for a working example [How to decode the raw value in MQTT? - #2 by io53](https://f.ruuvi.com/t/how-to-decode-the-raw-value-in-mqtt/4955/2)  
Basically you have to split the string at the Ruuvi company id before you pass is to the decoder.

Edit: Noticed that another library is in use in my link, but I think the same applies to ruuvitag-sensor 🙂

---

<div class="post-metadata">

### Author: ![Jaylingo](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jaylingo](https://f.ruuvi.com/u/Jaylingo)
#### Post date: [18 October 2021 21:01 UTC](https://f.ruuvi.com/t/decoding-ruuvi-gateway-data-model/5114/3 "2021-10-18T21:01:44Z")

</div>

Thanks! 👍🏻
