This repository contains a proof of concept for using wit.ai's HTTP API and mqtt .
Currently in the wit.ai
service we configured 2 entities, which the service can recognize in spoken sentences:
light entity
: {Lookup strategy:free-text & keywords
}wit$on_of
: {Built-in toggle}
Turn the Lights.
Turn the lights off/on.
Turn the light off/on.
Run mqtt broker for example: mosquitto
git clone https://github.com/imiklos/wit-mqtt.git
cd wit-mqtt
yarn
Set desired IP/Port in the src/MQTTclient.js
For example:
MQTT.connect('mqtt://127.0.0.1', {port: 1883,clientId:"mqttjs"})
yarn start