arduino-sensors-toolkit/freebsd
Julien Riou 53758081d8 Initial code
Signed-off-by: Julien Riou <julien@riou.xyz>
2020-07-24 15:56:59 +02:00
..
README.md Initial code 2020-07-24 15:56:59 +02:00
serial2mqtt.rc Initial code 2020-07-24 15:56:59 +02:00

Installation on FreeBSD

Install the following packages:

  • py37-pyserial
  • py37-paho-mqtt

Then git clone this repository to /usr/local/share/arduino-sensors-toolkit.

Create the system user:

pw user add -n serial2mqtt -s /usr/sbin/nologin -G dialer

Copy serial2mqtt.rc script to /usr/local/etc/rc.d/serial2mqtt.

Enable service:

echo 'serial2mqtt_enable="YES"' >> /etc/rc.conf