Skip to content

heyAyushh/RocketBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mqtt ChatBot Sample

mqtt.js

JavaScript Style Guide

BOT Framework

HitCount

This is a sample chatbot that can toggle a switch or relay ( MQTT Powered Device ). IT first Subscribes to the same topic as the Relay/Switch and Publishes as the Chatbot recieve Instructions.

Installation

Deploy

or install and run it Locally

git clone https://github.com/heyAyushh/RocketBOT cd RocketBOT && npm install
node index.js

Register the bot on Azure portal

https://dev.botframework.com/

Set Environment Variables

MQTThost // This is the IP of MQTT Broker
MQTTport // The port number of MQTT process
MQTTusername // The username of MQTT config, Leave it empty if you don't have one
MQTTpassword // The password of MQTT config, Leave it empty if the above
MQTTtopic // MQTT topic on which the key is subscribed MICROSOFT_APP_ID // Microsoft APP ID from Registration portal
MICROSOFT_APP_PASSWORD Microsoft APP secret from Registration Portal

<-----------------KUDOS-------------------------------------->

About

A chatbot that enables toggling of a Switch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published