Skip to content
gfieni edited this page Jul 21, 2017 · 16 revisions

Preamble

This project works well with Linux.

For more support, contact us.

Prerequisites

[REQUIRED]

To be able to use the PowerSpy powermeter, you need to install the bluezand libbluetooth-dev libraries 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, 1234 for the second version.
  • Restart the bluetooth service => service bluetooth restart

How to use?

As a program

  • Get our launcher
  • Unzip the archive, edit the configuration files in ./conf if needed
  • Run the script ./bin/powerspy-app [OPTIONS] ${POWERSPY}
  • For more details, use `./bin/powerspy-app --help``
  • Example: ./bin/powerspy-app 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 for using the core package

With SBT

libraryDependencies += "fr.inria.powerspy" % "powerspy-core_2.11" % "1.2"

With Maven

<dependency>
  <groupId>fr.inria.powerspy</groupId>
  <artifactId>powerspy-core_2.11</artifactId>
  <version>1.2</version>
</dependency>