This Service is part of a collection running on a Raspberry Pi. It reads from a DHT22 sensor periodically and and publishes the response to a MQTT broker.
- Install dependencies:
npm i
- Build:
tsc -b
- Set Environnement settings by either creating
/.env
from/.example.env
or set with run command. - Run:
node .\build\src\main.js