Ruuvitag-logger and viewer on Raspberry Pi 3


#1

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

Charts demo: https://dima.fi/ruuvitag-logger/

Used elements

Sources and instructions: https://github.com/dimamedia/RuuviTag-logger

Changelog:
3.4.2017
Fixed chartJS’s height problem.


#2

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

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


Test of humidity in closed versus open enclosure
#3

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:

#4

Hi,
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
Axel


#5

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


#6

iOS, iPad and iPhone the same


#7

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.


#8

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


#10

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


#14

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


#15

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


#16

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


#17

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: )


#18

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.


#19

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


#21

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


#22

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
#23

Hi,
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?


#24

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


#25

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?