# Collecting RuuviTag measurements and displaying them with Grafana

**URL:** https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267
**Category:** 🇬🇧 Tell about your own use-case
**Created:** [7 April 2017 19:12 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267 "2017-04-07T19:12:26Z")
**Posts on this page:** 1
**Showing post:** 211

<div class="post-metadata">

### Author: ![dgerman](https://f.ruuvi.com/user_avatar/f.ruuvi.com/dgerman/32/154_2.png) [@dgerman](https://f.ruuvi.com/u/dgerman)
#### Post date: [24 March 2019 16:14 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/211 "2019-03-24T16:14:15Z")

</div>

The following script displays any ruuvi tags with hex values  
(There is an occasionally incorrectly formated fmt05 movement & seq# )

```
hcidump -t --raw | #include time stamps
grep --line-buffered --invert-match '\-\-' |               
sed --unbuffered "N ;s/\n//; s/ / /" |
grep --line-buffered '99 04' |
sed --unbuffered "s/04 3E .. 02 01 .. 01 \(..\) \(..\) \(..\) \(..\) \(..\) \(..\)/ \6:\5:\4:\3:\2:\1 /"| # pkt:Meta Event/" |
sed --unbuffered "s/1. 02 01 0. 1. FF 99 04//"|
sed --unbuffered "s/10 \(..\) 03 72 75 75 2E 76 69 2F 23 42/TX:\1 https:\/\/ruuvi\/#B/"|
sed --unbuffered "s/10 \(..\) 03 72 75 75 2E 76 69 2F 23 41/TX:\1 https:\/\/ruuvi\/#A/"|
sed --unbuffered "s/52 75 75 76 69 42 6F 6F 74/RuuviBoot\//"|

sed --unbuffered "s/ 03 \(..\) /fmt03: \1% /" |
sed --unbuffered "s/fmt03: \(...\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\)/fmt03:\1 \2.\3C \4\5kpa \6\7x \8\9y03/" |
sed --unbuffered "s/y03 \(..\) \(..\) \(..\) \(..\) 00 00 00 00 ../y \1\2z \3\4v /" |

sed --unbuffered "s/ 05 \(..\) \(..\) /fmt05: \1\2C /" |
sed --unbuffered "s/fmt05: \(....C\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\) \(..\)/fmt05:\1 \2\3% \4\5kpa \6\7x \8\9y05/" |
sed --unbuffered "s/y05 \(..\) \(..\) \(..\) \(..\)/y \1\2z \3\4vTX /" |
sed --unbuffered "s/vTX \(..\) \(..\) \(..\) \(..\)/vTX MV:\1 #\2\3 \4/"
```

---

_[View the full topic](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267)._
