mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
565984ed49
commit
f98bd0db78
2 changed files with 4 additions and 9 deletions
11
README.md
11
README.md
|
@ -6,7 +6,7 @@ A ZeroMQ-based power monitoring publisher for the ina260 chip. This repository p
|
||||||
- `publisher`: that continuously publish using the ZeroMQ pub/sub communication pattern
|
- `publisher`: that continuously publish using the ZeroMQ pub/sub communication pattern
|
||||||
- `subscriber`: a client that collect the measurements from the publishers (broker, frontend etc...)
|
- `subscriber`: a client that collect the measurements from the publishers (broker, frontend etc...)
|
||||||
|
|
||||||
*Note: Nothing is stored locally! Everything that is published by the publisher is either receive by a subscriber or lost.*
|
*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*
|
||||||
|
|
||||||
### Compilation
|
### Compilation
|
||||||
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, the following will generate all the executables:
|
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, the following will generate all the executables:
|
||||||
|
@ -15,10 +15,5 @@ The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroM
|
||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
1. Update `config.mk` according to you needs
|
1. Update `config.mk` according to you needs
|
||||||
2. On the nodes equiped with the ina260 chips:
|
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`
|
||||||
$ make publish
|
|
||||||
|
|
||||||
3. One the node that collect the measurements (broker, frontend etc..):
|
|
||||||
|
|
||||||
$ make subscribe
|
|
|
@ -1,7 +1,7 @@
|
||||||
##### ZeroMQ
|
##### ZeroMQ
|
||||||
# ZMQ_PORT is the port used for all communications
|
# ZMQ_PORT is the port used for all communications
|
||||||
ZMQ_PORT=5556
|
ZMQ_PORT=5556
|
||||||
# SUBSCRIBER_ADDR is used by the publisher
|
# SUBSCRIBER_ADDR is used by the publishers
|
||||||
# to contact the subscriber
|
# to contact the subscriber
|
||||||
SUBSCRIBER_ADDR=localhost
|
SUBSCRIBER_ADDR=localhost
|
||||||
# ZMQ_TOKEN is used by ZeroMQ to detect
|
# ZMQ_TOKEN is used by ZeroMQ to detect
|
||||||
|
|
Loading…
Add table
Reference in a new issue