Ruuvitag-logger and viewer on Raspberry Pi 3


Log RuuviTags data to SQLite database and and show charts on the RPi’s website

Charts demo:

Used elements

Sources and instructions:

Fixed chartJS’s height problem.


Having trouble with the script resulting in error when checking if database exists before creating it.
Any suggestions on how to resolve?

pi@raspi:~/ruuvitag $ ./
Traceback (most recent call last):
File “./”, line 50, in
if cursor.fetchone()[0] != “sensors”:
TypeError: ‘NoneType’ object is not subscriptable

Test of humidity in closed versus open enclosure

My bad. Thanks for reporting.

I’ve repaired it now and github source updated.

Or you can replace this line

	if cursor.fetchone()[0] != "sensors":

with these:

	row = cursor.fetchone()	
	if row is None:


it want to install your project but have problems finding out the MAC adresses of my RuuviTags.
Tried with nFConnect but there it shows “Adress not available”.
Do you have any hint how to find my MACs?

Best regards


Are you using iOS or Andriod as a scanner?
I think iOS might hide the MAC in some cases.


iOS, iPad and iPhone the same


I just reviewed 22 iPhone apps I have and none of them show MAC.
DO you have access to an android device? Or know someone who has an android phone/tablet?
My favorite iPhone app is BLE scanner by BluepixelTechnologies. It does not show MAC on iPhone.
Apparently the version is different on an android device and there it DOES show the MAC. Best advice is to use a android or find someone who has one.


I want to setup the project of this topic and the configuration needs the MAC adress…


ok, thanks. But where do I get the MAC in order to configure the project? Any idea?


thanks for help, seems to be the easiest way to look for an android…


I’ve heard that iOS BLE stack does not give MAC address to applications for privacy reasons, maybe this is the case here?

@Axel If you have a Raspberry Pi you can use one of the RasPi examples to find MAC addresses of your tags


Thanks for all the tips. I could read out the MAC under Android…


I am running the readymade image on raspberry pi 3 and reading the ruuvi.local on desktop att the same local network. Among other things i need to get this setup off the local network and in to a server. Ill work on that more later. This Grafana seems to be a wonderous thing. It may very well prove to be just the thing for my beehive sensors. (…If it can do a notification if temp rises suddenly)

I noticed that grafana updates the graphs immediately after i do hcitool lescan on the Pi (im not sure if it does update ever if I don`t do a scan, May just be my impatience :slight_smile: )


Has anyone else tried running the current ruuviberry image on a pi 3 B+ . I have had no problems with that image on a 3 B, but cannot boot successfully on the 3 B+. I flash the card with Etcher and have tried both flashing using Windows and flashing on a Mac.


The image is made on 3B, and since it is a binary image it is probably not compatible with 3B+


OK thanks for the quick reply. That makes some sense. I’ll pick up another 3B and use this 3B+ for something else.


I guess you can make it work by replacing start.elf on the card with one copied from latest Raspbian. At least that’s how it usually works.

Oh, and you might need a new kernel too to support the USB and Ethernet ports (the new chip).

Collecting RuuviTag measurements and displaying them with Grafana

My Rasp is Raspberry Pi 3 Model B V 1.2 and ruuviberry started fine from the latest image - ruuviberry_2018_04_18.img.
But the WLAN seems to be totally missing. The OS can’t even find any adapters. othervise the OS seems to be OK. Is this a bug or a feature?


This is a feature, the Raspberry should advertise itself as a “RuuviGW” hotspot. You can remove br0 which bridges the Ethernet and WiFi together.


Sorry, I’m a newby in Rasbian world. Where exactly I ought to remove br0? Removing it from etc/network/interfaces make no difference and there are 416 files or directories named br0?