summaryrefslogtreecommitdiff
path: root/README.md
blob: 63be914179b13d8bb991d974e610856d8f86adfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## ina260-zmq-publisher

A ZeroMQ-based power monitoring publisher for the ina260 chip. This repository provides:

- `logger`: that collects power measurements from the ina260 using the dedicated driver
- `publisher`: that continuously publish using the ZeroMQ pub/sub communication pattern
- `subscriber`: a client that collect the measurements from the publishers (broker, frontend etc...)

*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*

### Compilation
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, the following will generate all the executables:

    $ make

### Deployment
1. Update `config.mk` according to your needs \*\***IMPORTANT**\*\*
2. On the nodes equiped with the ina260 chips run `make publish`
3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe`

### Notes
- Message format used in ZeroMQ exchanges:

    1: <ZMQ_TOKEN>
    2: <KEY>
    3: <CLIENT>
    4: <INTERVAL>
    5-n:<CSV-DATA>