Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Running in background

Stephan van Rooij edited this page Oct 18, 2017 · 1 revision

To run this application in the background I would suggest to use PM2.

Running this application with PM2

  1. Install PM2 see this guide
  2. Start xiaomi2mqtt.
# Without config parameters.
pm2 start xiaomi2mqtt

# With config parameters.
pm2 start xiaomi2mqtt -x -- [regular-options-here]
pm2 start xiaomi2mqtt -x -- -d /home/pi/device-list.json -g gatewaypass -m mqtt://xiaomi:password@127.0.0.1:1883
Clone this wiki locally