# A Logger for F-Plug

Continuously reporting data from Fujitsu's
[fplug](http://www.fujitsu.com/jp/group/bsc/services/f-plug/).

## Dependencies
  - python-serial
  - [pyfplug](https://github.com/hasegaw/pyfplug)

## Install with Docker

```sh
$ docker pull jkawamoto/fplug-logger
```

For Raspberry Pi,

```sh
$ docker pull jkawamoto/rpi-fplug-logger
```

## Useage
```
$ docker run -d -v /dev/rfcomm0:/dev/rfcomm0 \
    jkawamoto/fplug-logger [--interval INTERVAL] [--output OUTPUT] [path]
```
where
* positional arguments:
  * path: Path to an RFCOMM device. (default: /dev/rfcomm0)
* optional arguments:
  * --interval INTERVAL: Interval seconds of reporting. (default: 60sec)
  * --output OUTPUT: Output. (default: stdout)

If you run this on Raspberry Pi, use `jkawamoto/rpi-fplug-logger` instead of `jkawamoto/fplug-logger`.

## License
This software is released under the MIT License, see LICENSE.

# A Logger for F-Plug

Continuously reporting data from Fujitsu's
[fplug](http://www.fujitsu.com/jp/group/bsc/services/f-plug/).

## Dependencies
  - python-serial
  - [pyfplug](https://github.com/hasegaw/pyfplug)

## Install with Docker

```sh
$ docker pull jkawamoto/fplug-logger
```

For Raspberry Pi,

```sh
$ docker pull jkawamoto/rpi-fplug-logger
```

## Useage
```
$ docker run -d -v /dev/rfcomm0:/dev/rfcomm0 --privileged \
    jkawamoto/fplug-logger [--interval INTERVAL] [--output OUTPUT] [path]
```
where
* positional arguments:
  * path: Path to an RFCOMM device. (default: /dev/rfcomm0)
* optional arguments:
  * --interval INTERVAL: Interval seconds of reporting. (default: 60sec)
  * --output OUTPUT: Output. (default: stdout)

If you run this on Raspberry Pi, use `jkawamoto/rpi-fplug-logger` instead of `jkawamoto/fplug-logger`.

## License
This software is released under the MIT License, see LICENSE.

Update readme because this container needs --privileged to run.
Update readme because this container needs --privileged to run.
