Skip to content

far-edge/mqtt-random-data-publisher

Repository files navigation

This is a random number generator that publishes the values it generates to an MQTT topic.

REQUIREMENTS

  • Node.js >= 10.1.0
  • npm >= 5.6.0
  • Any message broker that implements the MQTT protocol version 3.1.x or later.

CLONE

git clone [email protected]:far-edge/mqtt-random-data-publisher.git

CONFIGURE

Create .env based on .env.example.

cp .env.example .env

Edit .env.

CREATE THE VIRTUAL ENVIRONMENT

cd mqtt-random-data-publisher
nodeenv -n 10.1.0 --prebuilt env

ACTIVATE THE VIRTUAL ENVIRONMENT

. env/bin/activate

INSTALL THE DEPENDENCIES

npm install

RUN

npm start

DEACTIVATE THE VIRTUAL ENVIRONMENT

deactivate_node

LINT

npm run lint

About

Random numeric data publisher for MQTT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published