Listen for every incoming data from Azure IoT Hub and re-emit it via websocket to dashboard & Windows 10 app.
Using nodemon (development)
APPENV=local [ENVIRONMENT_VARIABLES] nodemon app.jsUsing pm2 (production)
APPENV=production [ENVIRONMENT_VARIABLES] pm2 start app.js --name gallonw-watcher-wsYou can omit these variables by replacing their reference inside the configuration file.
APPENVenvironment variable is used to identify configuration file which is being used by the app. The possible values aredev.local,local, orproduction.SASKEYis a primary key of the IoT hub owner.EVENTHUBHOSTis an event hub host that is provided by your IoT hub.EVENTHUBNAMEis an event hub name that is provided by your IoT hub.IOT_CONNECTIONSTRis an IoT hub owner connection string.MANDRILLKEYis a Mandrill service key.TWILIO_SIDis your Twilio SID value.TWILIO_TOKENis your Twilio token value.TWILIO_NUMBERis your registered Twilio phone number.