This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var upmBuzzer = require("jsupm_buzzer"); | |
var mBuzzer = new upmBuzzer.Buzzer(3); //Buzzer for sound notification | |
var app = require('express')(); //Express Library | |
var server = require('http').Server(app); //Create HTTP instance | |
var io = require('socket.io')(server); //Socket.IO Library | |
var mraa = require('mraa'); | |
var LCD = require ('jsupm_i2clcd'); //LCD to display price & color notification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script> | |
<script src="https://cdn.socket.io/socket.io-1.2.1.js"></script> | |
<script> | |
$(function(){ | |
var socket = io.connect('http://10.10.104.191:3000'); | |
$('#mainan').on('input change',function(){ |