# 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:** 20
**Page:** 12

<div class="post-metadata">

### Author: ![Scrin](https://f.ruuvi.com/user_avatar/f.ruuvi.com/scrin/32/326_2.png) [@Scrin](https://f.ruuvi.com/u/Scrin)
#### Post date: [9 December 2019 05:10 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/229 "2019-12-09T05:10:09Z")

</div>

What hardware are you using? The fact that it works out of the box on another distro sounds like usable drivers for your bluetooth dongle are not bundled in vanilla Ubuntu/Debian (either no drivers at all, or a version which doesn’t work properly)

---

<div class="post-metadata">

### Author: ![puuteknikko](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/p/3be4f8/32.png) [@puuteknikko](https://f.ruuvi.com/u/puuteknikko)
#### Post date: [10 December 2019 07:17 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/230 "2019-12-10T07:17:57Z")

</div>

This is a bit of a newbie question, but probably someone else is also interested in the answer. So, what kind of changes would be required to make the Pi just collect data and send it to an InfluxDB database which is located on a different computer on the same LAN? I’d like to do this to avoid the possible problems with SD cards wearing out and I have a desktop computer already running 24/7.

---

<div class="post-metadata">

### Author: ![otso](https://f.ruuvi.com/user_avatar/f.ruuvi.com/otso/32/1651_2.png) [@otso](https://f.ruuvi.com/u/otso)
#### Post date: [10 December 2019 07:46 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/231 "2019-12-10T07:46:38Z")

</div>

You can configure the server [here](https://github.com/Scrin/RuuviCollector/blob/master/ruuvi-collector.properties.example)

---

<div class="post-metadata">

### Author: ![alex](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://f.ruuvi.com/u/alex)
#### Post date: [14 December 2019 21:04 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/232 "2019-12-14T21:04:07Z")

</div>

> [@Scrin](#):
>
> What hardware are you using? The fact that it works out of the box on another distro sounds like usable drivers for your bluetooth dongle are not bundled in vanilla Ubuntu/Debian (either no drivers at all, or a version which doesn’t work properly)

Hello Scrin,  
Sorry for so late reply. Yes, you were right, it was an driver issue. My BT card is Intel AC9260 and turns out to be a bug in the package linux-firmware. The trick was that the BT was working, but not BLE 😉 Especially server distros are using older packages and to apply the new firmware the computer must be shut down, restart was not enough…

Thank you so much for pointing me in the right direction, you have saved a few hours of my life 😉

---

<div class="post-metadata">

### Author: ![Olli\_Raatikainen](https://f.ruuvi.com/user_avatar/f.ruuvi.com/olli_raatikainen/32/1951_2.png) [@Olli\_Raatikainen](https://f.ruuvi.com/u/Olli_Raatikainen)
#### Post date: [2 February 2020 14:26 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/233 "2020-02-02T14:26:07Z")

</div>

Hi all. I just found this cool looking ready-made image. However, I’m not able to login 😕 Could someone post the username:password combos for ssh and Grafana?

Using this image: ruuvicollector\_2020-01-30.minimal.img.zip on a rpi3b+.

At least admin:admin does not work for Grafana, I guess it should? Weird.

Thanks!

---

<div class="post-metadata">

### Author: ![otso](https://f.ruuvi.com/user_avatar/f.ruuvi.com/otso/32/1651_2.png) [@otso](https://f.ruuvi.com/u/otso)
#### Post date: [2 February 2020 15:06 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/234 "2020-02-02T15:06:39Z")

</div>

Hello,

[https://blog.ruuvi.com/rpi-gateway-6e4a5b676510](https://blog.ruuvi.com/rpi-gateway-6e4a5b676510) has details on the setup, default password on Grafana is admin/ruuviberry

---

<div class="post-metadata">

### Author: ![Olli\_Raatikainen](https://f.ruuvi.com/user_avatar/f.ruuvi.com/olli_raatikainen/32/1951_2.png) [@Olli\_Raatikainen](https://f.ruuvi.com/u/Olli_Raatikainen)
#### Post date: [2 February 2020 17:33 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/235 "2020-02-02T17:33:07Z")

</div>

Hi otso, thank you, now I got in 🙂 I managed to create dashboard and queries, but all the graphs say “Data points outside time range”. I then checked time/date, and they were really off. Ran raspi-config and set time zone accordingly, but it didn’t help at all. So, for same reason the rpi time and date are wrong and also the dns seems not to work at all, e.g. apt-get update does not work for starters. I’ve got some experience with pi’s and generally had no problems ever with the network/date/time. I really don’t understand why this installation is not willing to access internet at all. I can access the rpi with putty just fine ans ifconfig shows all is ok.  
Is this a known feature, or something else?

Sorry, must be a stupid question 😕

---

<div class="post-metadata">

### Author: ![otso](https://f.ruuvi.com/user_avatar/f.ruuvi.com/otso/32/1651_2.png) [@otso](https://f.ruuvi.com/u/otso)
#### Post date: [2 February 2020 17:47 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/236 "2020-02-02T17:47:12Z")

</div>

Hello,

Sounds a bit strange, as my Pis work just fine on the internet. Are you using wired Ethernet connection or WiFi configured through the RPi hotspot?

---

<div class="post-metadata">

### Author: ![Olli\_Raatikainen](https://f.ruuvi.com/user_avatar/f.ruuvi.com/olli_raatikainen/32/1951_2.png) [@Olli\_Raatikainen](https://f.ruuvi.com/u/Olli_Raatikainen)
#### Post date: [2 February 2020 17:57 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/237 "2020-02-02T17:57:33Z")

</div>

Its connected with ethernet, which works with another sd card (and version of Raspbian) just fine. Weird.

---

<div class="post-metadata">

### Author: ![otso](https://f.ruuvi.com/user_avatar/f.ruuvi.com/otso/32/1651_2.png) [@otso](https://f.ruuvi.com/u/otso)
#### Post date: [2 February 2020 18:02 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/238 "2020-02-02T18:02:09Z")

</div>

It’s probably this issue: [https://github.com/jasbur/RaspiWiFi/issues/65](https://github.com/jasbur/RaspiWiFi/issues/65)

I’m traveling until 10th of February so I can’t check the fix, but please let me know if you try the fix in that issue and if it works.

The root problem is that RaspiWiFi redirects DNS queries to itself while hotspot is active if I understood correctly.

---

<div class="post-metadata">

### Author: ![Olli\_Raatikainen](https://f.ruuvi.com/user_avatar/f.ruuvi.com/olli_raatikainen/32/1951_2.png) [@Olli\_Raatikainen](https://f.ruuvi.com/u/Olli_Raatikainen)
#### Post date: [2 February 2020 18:13 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/239 "2020-02-02T18:13:49Z")

</div>

Worked straight away. Thank you soo much otso 🙂

---

<div class="post-metadata">

### Author: ![Lemminkyinen](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@Lemminkyinen](https://f.ruuvi.com/u/Lemminkyinen)
#### Post date: [22 March 2020 18:03 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/240 "2020-03-22T18:03:57Z")

</div>

Could anyone help me? I have Raspberry Pi 4 and I have installed Grafana, InfluxDB, Telegraf, Chronograf, Kapacitor and ruuvicollector. I am using latest releases. My wifi is not working properly after starting ruuvicollector.service.

---

<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: [22 March 2020 19:55 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/241 "2020-03-22T19:55:34Z")

</div>

1. What do you mean “properly”? Intermittent connectivity? No connectivity?
2. Was it working before installing Grafana and TICK stack?
3. Have you examined /etc/wpa\_supplicant/wpa\_supplicant.conf? Is the modification date what you expect?
4. Are there any messages in /var/log that are be related?
5. Have you physically moved the Pi ? Can you move it closer to your router.

---

<div class="post-metadata">

### Author: ![Lemminkyinen](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@Lemminkyinen](https://f.ruuvi.com/u/Lemminkyinen)
#### Post date: [23 March 2020 16:49 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/242 "2020-03-23T16:49:36Z")

</div>

1. Internet download speed is dropping to 0.01Mbps. Without the service running it’s more like 40Mbps.
2. I am not sure. I can do OS reinstall and install ruuvicollector first.
3. wpa\_supplicant.conf includes only my Wifi properties and they are correct.
4. What should I be looking for? I didn’t see anything related to ruuvicollector.
5. Pi has been at the same place all time.

Is Java 11 good for ruuvicollector? I saw some guides and they were installing Java 8.

I really appreciate the help.

---

<div class="post-metadata">

### Author: ![Scrin](https://f.ruuvi.com/user_avatar/f.ruuvi.com/scrin/32/326_2.png) [@Scrin](https://f.ruuvi.com/u/Scrin)
#### Post date: [24 March 2020 10:32 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/243 "2020-03-24T10:32:02Z")

</div>

> [@Lemminkyinen](#):
>
> Is Java 11 good for ruuvicollector? I saw some guides and they were installing Java 8.

Yes. Java 8 is the minimum required version (which was also the latest LTS version at the time RuuviCollector was initially developed). Java 11 will work equally well, and 11 is actually the version I’m using on my own setup at the moment. Though I use a RPi3 as I don’t have a RPi4 yet, but that shouldn’t matter for the collector.

---

<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 2020 20:27 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/244 "2020-03-24T20:27:09Z")

</div>

1c) How are you timing download speed?  
2c) No need to reinstall (yet)  
6) sudo systemctl stop grafana # and do speed test  
7) sudo systemctl stop ruuvicollector # and do speed test  
8) sudo systemctl stop influxdb # and do speed test  
9) Use `top` to look for unexpected processes and memory and swap usage.  
10) How are you connected to pi HDMI monitor/USB keyboard/mouse or ssh?

---

<div class="post-metadata">

### Author: ![makkan](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@makkan](https://f.ruuvi.com/u/makkan)
#### Post date: [3 April 2020 07:13 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/245 "2020-04-03T07:13:01Z")

</div>

I have tried to setup everything manually since I don’t have a Pi3 available. I have Influxdb, Grafana and Ruuvi collector running. I can see data in Influxdb so up to that point everything is working.  
I can login to Grafana but how do I create the dashboard towards Influxdb so that I can see the data?

---

<div class="post-metadata">

### Author: ![Scrin](https://f.ruuvi.com/user_avatar/f.ruuvi.com/scrin/32/326_2.png) [@Scrin](https://f.ruuvi.com/u/Scrin)
#### Post date: [3 April 2020 07:47 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/246 "2020-04-03T07:47:14Z")

</div>

First you need to [add the InfluxDB instance as a Datasource in Grafana](https://grafana.com/docs/grafana/latest/features/datasources/influxdb/), after that you can start creating dashboards and adding panels to them that use the datasource you added.

If you set the datasource as default when adding it, new panels will automatically use it by default. If you already created some panels on a dashboard you’d like to use, you can change the datasource from the panel editor if it doesn’t get set automatically.

---

<div class="post-metadata">

### Author: ![makkan](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@makkan](https://f.ruuvi.com/u/makkan)
#### Post date: [3 April 2020 13:36 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/247 "2020-04-03T13:36:23Z")

</div>

I added InfluxDB as default, created a dashboard and added a panel but I get “Expected response data to be array, got undefined”

---

<div class="post-metadata">

### Author: ![makkan](https://f.ruuvi.com/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@makkan](https://f.ruuvi.com/u/makkan)
#### Post date: [3 April 2020 18:14 UTC](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267/248 "2020-04-03T18:14:06Z")

</div>

It is working now. I was using the incorrect port in the data sources settings.

[Previous page](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267.md?page=11)

[Next page](https://f.ruuvi.com/t/collecting-ruuvitag-measurements-and-displaying-them-with-grafana/267.md?page=13)
