Skip to content

pleft/puckjs_ruuvitag_scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

puckjs_ruuvitag_scanner

Puck.js scanner for Ruuvitag beacons

Use your Puck.js bluetooth beacon to scan and get info from nearby Ruuvitag bluetooth beacons.

Hardware prerequisites

As the name of the project implies, you need to have one Puck.js beacon and one or more Ruuvitag beacons.

Instructions

  • Have your Puck.js and Ruuvitag beacons in range.
  • Upload file PuckjsRuuvitagScanner.js in you Puck.js beacon.
  • Once uploaded, Puck.js will start to scan for Ruuvitag beacons and display info about them (Blue led will flash each time a scan is taking place).

Commands

The command to start scanning and show info is:

RuuviTagScanner.startScanning(function(tags) { console.log(tags); });

Output will have the format (if two Ruuvitag beacons are in range):

  RuuviTag {
    "macAddress": "f6:8c:ac:03:a6:73",
    "name": "f6:8c:ac:03:a6:73",
    "temperature": 21, 
    "humidity": 52, 
    "pressure": 996 },
  RuuviTag {
    "macAddress": "e4:b0:90:c7:12:a9",
    "name": "e4:b0:90:c7:12:a9",
    "temperature": 21, 
    "humidity": 52, 
    "pressure": 996 }
 ]

Of course the callback function in startScanning method can be changed as per user desires.

The command to stop scanning is:

RuuviTagScanner.stopScanning();

Acknowledgements

Temperature, humidity and pressure data decoding algorithms have been sourced from another great github project ruuvitag-sensor

About

Puck.js scanner for Ruuvitag beacons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published