Skip to content
mcolmant edited this page Dec 22, 2014 · 16 revisions

Preamble

This project works well with Linux.

For more support, contact us via the mailing list.

Prerequisites

[REQUIRED]

To be able to use the PowerSpy powermeter, you need to install the libbluetooth-dev library on your system.

[OPTIONAL]

If you want to pair the powermeter automatically, follow these steps:

  • Get your mac address => hcitool dev (DEVICE)
  • Get the PowerSpy's mac address => hcitool scan (POWERSPY)
  • Create/edit the file /var/lib/bluetooth/${DEVICE}/pincodes by adding the line ${POWERSPY} ${PIN}. The PIN is 0000 for PowerSpy v1, 1111 for the second version.
  • Restart the bluetooth service => sudo restart bluetooth

How to use?

As a program

  • Get our launcher
  • Unzip the archive, run the script ./bin/powerspy-scala [OPTIONS] ${POWERSPY}
  • For more details, use `./bin/powerspy-scala --help``
  • Example: ./bin/powerspy-scala 00:0b:ce:07:1e:9b

The launcher can be stopped by using the option [-t ${SECONDS}] or by using CTRL+C.

As a dependency

With SBT

libraryDependencies += "fr.inria.powerspy" %% "powerspy-scala" % "1.0.0"

With Maven

<dependency>
  <groupId>fr.inria.powerspy</groupId>
  <artifactId>powerspy-scala_2.11</artifactId>
  <version>1.0.0</version>
</dependency>
Clone this wiki locally