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

20 lines
424 B
Markdown

# 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](serial2mqtt.rc) script to **/usr/local/etc/rc.d/serial2mqtt**.
Enable service:
```
echo 'serial2mqtt_enable="YES"' >> /etc/rc.conf
```